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

The source distribution is missing a file used in setup.py #156

Open
ocefpaf opened this issue May 14, 2021 · 3 comments
Open

The source distribution is missing a file used in setup.py #156

ocefpaf opened this issue May 14, 2021 · 3 comments

Comments

@ocefpaf
Copy link

ocefpaf commented May 14, 2021

I was about to send a PR to add the requirements.txt file to the MANIFEST when I saw these lines:

https://github.com/flosell/trailscraper/blob/master/setup.py#L4-L11

Is that by design? To not add any dependency when installing from a source distribution? If so, why? If not, I can send a PR to fix it.

@flosell
Copy link
Owner

flosell commented May 16, 2021

Hi @ocefpaf - to be honest, one of the reasons I picked python for this project was because I wanted to learn the language at that point. It never became my main ecosystem to work in so there's a very good chance something's horribly weird about the way I'm putting this together :)

That being said, I'm not quite sure I understand the issue or proposal.
Is the way things are currently done breaking a particular use-case? If yes, can you provide some description?
Or is it more of a question of aesthetics, conventions and tech debt? In which case, what would the benefits and drawbacks of changing things be? What would it look like?

@ocefpaf
Copy link
Author

ocefpaf commented May 16, 2021

horribly weird about the way I'm putting this together :)

To be fair Python experts do the same. (I'm guilty of it that sometimes.)

Is the way things are currently done breaking a particular use-case? If yes, can you provide some description?

Not a broken use-case but, IMO, that is just broken. The requirements.txt is how you read and add the dependencies to the setup.py, so that file should be shipped in the source distribution. When you fail if that files does not exists one does not get any dependencies, they get a broken package. If you are OK I can send a PR with Python's modern "best practices" for this.

@flosell
Copy link
Owner

flosell commented May 30, 2021

Thanks for the offer! I'm always happy about PRs that improve the project so feel free to send in one with what you feel makes sense!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants