new-albums
new-albums copied to clipboard
Simplify the packaging configuration?
I noticed you have a pyproject.toml
file configured for Poetry on top of a setup.py
. Thanks to the [build-system]
section of your pyproject.toml
, I believe the setup.py
file might be unnecessary based on your pip workflow as it will use pyproject.toml
for the same effect (which includes editable installs). So I don't quite see a direct benefit to having to maintain both a Setuptools configuration on top of the one you have for Poetry unless you're running really old versions of pip or you happen to have some other reason for wanting both. None of this specifically hurts/breaks anything.
I also noticed you have a requirements.txt
file, but it isn't mentioned in your README.md
in your development instruction section. Is that on purpose or would you like a PR to update the README for the pip install .
line? And if you want a PR for that, would you also like it to suggest using something like pip-tools to help maintain your requirements.txt
file so you don't have to do it by hand?
Thanks. Yeah, all this poetry and packaging stuff is new to me so I probably have some obsolete files lying around. Feel free to clean things up and submit a PR.
Do you mind if I ask some clarifying question to help scope how far and in what direction you might want me to go in a proposed cleanup?
- Do you want to stick with Poetry?
- Do you want to stick with pip?
- Do you want to keep both workflows (if you said "yes" to both the points above)?
- Do you view this more as an app or as a library?
- Do you want this to go up on PyPI?
- Do you want the project to be installable so someone can have a
new-albums
command on their machine)?
Please let me know if I'm taking this too far and you want me to keep the scope of this much smaller/simpler. 😅 The key thing is you have to be happy with the workflow at the end of the day, but I'm also willing to go as far as you want and you want (and explain myself along the way) to help you learn more about Python's packaging ecosystem (which I'm heavily involved with, so I can admittedly get excited about this more than the average person 😁).
I opened discussions and answered over there https://github.com/riverscuomo/new-albums/discussions/29#discussion-4613740