Skip to content
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

fix: make dependencies and other build arguments static #86

Merged
merged 3 commits into from
Dec 19, 2022

Conversation

ohjunseung
Copy link
Contributor

I tried to install version 1.0.3 with pip and it doesn't install the dependencies. Figured out that requirements.txt is not included in the source distribution, hence giving the install_requires an empty array. I assume this doesn't happen on 1.0.1 because it has a wheel file.

So, I thought that making the dependencies explicit is better.

References:
same issue with wheel

@DenverCoder1
Copy link
Owner

Thanks for bringing up the issue.

I don't think the dependencies should be repeated in two places, though.

I think instead the dependencies can be listed in pyproject.toml and removed from the setup.py (and requirement.txt can be deleted).

https://peps.python.org/pep-0631/#specification

The ideal solution would probably be for everything in setup.py to be replaced with a pyproject.toml alternative.

@ohjunseung ohjunseung changed the title fix: make dependencies explicit fix: make dependencies static Dec 19, 2022
@ohjunseung
Copy link
Contributor Author

I'm not that familiar with pip build system. From your suggestion, this fc3aadf might be good for now.

@DenverCoder1
Copy link
Owner

Thanks for your help on the issue, I hope it's fine with you if I add to this PR some additional static attributes

@DenverCoder1 DenverCoder1 changed the title fix: make dependencies static fix: make dependencies and other build arguments static Dec 19, 2022
@DenverCoder1 DenverCoder1 merged commit b969185 into DenverCoder1:main Dec 19, 2022
@DenverCoder1
Copy link
Owner

Just tested with 1.0.4 and it looks good to me 🎉

@DenverCoder1 DenverCoder1 added the bug Something isn't working label Dec 19, 2022
@ohjunseung ohjunseung deleted the fix-pypi branch December 20, 2022 04:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants