Closed koaning closed 1 year ago
The CI is already configured for azure pipelines, so I don't see any reason to use github actions for this?
You'd need to add the dev requirements to requirements.txt
(mypy
and pytest
, at least) and then move the tests into weasel/tests
so the tests are installed with the package, which is our normal package setup.
The CI steps could be improved in a few minor ways (mainly cleaner tests of the package requirements), but the basics should all be working at this point.
Status report!
I've been able to run all commands locally except for the push
and pull
commands. I think I've copied the relevant utility methods over, but there are ample opportunities to clean up the repo. I just copied all the existing methods from spaCy, and I'm pretty sure we don't need everything the way it currently is.
There are a few things that we should discuss:
Config
object from Thinc, which I've replaced with confection for now. assets
command. We don't have to decide that now, I think?
That's true. But it'd be helpful if the person who cleans up spaCy is also involved with the effort here. Which is mainly why I mentioned it.
Remaining test failures are due to lack of Pathy support for 3.11, so I'll work on moving this to cloudpath
like in https://github.com/explosion/spaCy/pull/11750.
OK, at this point:
I think this is good to go ahead to merge as a base for further PRs like:
And so on.
I think I'd prefer _util
and then non-underscore names for the individual modules?
That makes sense, it means less underscores all round too.
As discussed internally, let's close this PR and then:
weasel
as much as we can. At this point, we should not introduce any new functionality or even new tests - just move the functionality across without changes. This to ensure easier reviewing & history tracking later on.To everyone having worked on this PR, in particular @koaning: thanks for all the work on it and sorry that this got sidelined a bit and needs to be redone! I think we got a bit carried away trying to do too much in this PR but the history is all here so we can definitely build on that and use this prior work when going forward with the separate PRs 🙏
No worries from my end. I'm just happy that weasel is going to be a thing soon 🙂 !
This is a work-in-progress PR.
Commands TODO: