-
Notifications
You must be signed in to change notification settings - Fork 976
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
Add Windows CI coverage #277
Conversation
@phschiele Packaging has always been an area for improvement. There are actually four dependency specifications:
I added I think |
@robertmartin8 Thanks for the detailed explanation. I think it makes sense to have I am not an expert on packaging, and often read conflicting suggestions for best practices.
I was in the process of writing my views on the current file types present, but the more I tried out locally, the more obscure it got. poetry export -f requirements.txt --output requirements.txt --without-hashes or poetry build
tar -xvf dist/*.tar.gz --wildcards --no-anchored '*/setup.py' --strip=1 This should be enough to cover most cases (I think I eventually found dephell which seems to be a quite handy tool for such tasks.
Sadly, the tool seems to be no longer actively developed. So in summary, I think it would be ideal to have one config file. If that's not possible for compatibility reasons, the second-best option would be to have the same contents in all config files, enforce by a single small script that could be added to the development/publishing workflow. Do you think these experiments go into the right direction? |
@phschiele As for |
@robertmartin8 As discussed in #273, this PR adds Windows coverage to the CI.
Some remarks:
pyproject.toml
,requirements.txt
,pipfile
, which I did not touch (yet). You probably have e.g. some compatibility reasons to keep those around. In general, I think it makes sense to (i) reduce the number of config files and (ii) have one source of truth and create the other files based on that. E.g. poetry can create arequirements.txt
based on thepyproject.toml
. Would be cool if you could share some of your thoughts here (this can also be moved to a separate issue if you like).