-
-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate from setup.py to poetry/pyproject.toml #169
base: master
Are you sure you want to change the base?
Migrate from setup.py to poetry/pyproject.toml #169
Conversation
The tests pass on my side: https://github.com/white-gecko/warcio/actions/runs/10368291162 |
We can use pytest instead of "python setup.py test" without migrating -- @tw4l do you have a preferred direction that you're going towards for python testing? If not, I'm happy to make the smallest possible change. |
Hi Greg, making a small switch to calling pytest directly sounds great. We tend to do that and use GH Actions' in-built functionality for testing different Python versions and such rather than rely on something like tox. |
Thank you for weighing in @tw4l . @white-gecko I do appreciate this example of switching to poetry. For "Skip test_capture_https_proxy" do you think there's an easy way to fix it? I faintly recall this is am urllib problem. |
I just thought it is easier to maintain dependencies using something like poetry and the now recommended |
Ah looking at the context a little bit more, I'm certainly not opposed to moving to I'm curious to see how this ecosystem will evolve now that we have a draft PEP for standardized Python installation reproducibility via lock files. |
Thankfully my past self thought to add the reminder into the last commit message:
I remember it being a bit thorny, would be great to get those tests working again but I don't have a quick answer for how to best go about doing that at this moment. |
Thank you for splitting the PR! Also I just accidentally pushed directly to master, don't follow my example (arrrrrrgh) |
Thank you, I'm working through the PRs in order. |
I have now merged all of the pieces EXCEPT poetry.
I'm willing to do the latter two. |
Oh and should we release the current master branch as a new pypi version? @tw4l presumably you have pypi credentials for the package. |
Thank you for going through my pullrequests. If we still want to move to poetry, I can rework this pullrequest. |
Pinging @ikreymer to weigh in on the release and Poetry questions. Thanks @white-gecko and @wumpus for all the work on those PRs! |
I added testing for windows and darwin to the CI, and fixed the long-standing brotli install confusion using the CI to test. |
Remove setup.py, add pyproject.toml.
I wanted to execute the tests with
python setup.py test
and received the message:I then tried to get pytest running directly but again got issues urllib3 version.
So I thought migrating to poetry would anyhow be a good benefit. I hope this suites you.