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

Clean up install vs. build requirements #34

Merged
merged 1 commit into from
Aug 10, 2021
Merged

Clean up install vs. build requirements #34

merged 1 commit into from
Aug 10, 2021

Conversation

jwilges
Copy link
Contributor

@jwilges jwilges commented Aug 10, 2021

Summary

Clean up install vs. build requirements

  • Exclude wheel and setuptools from package dependencies
  • Exclude packaging from build dependencies; however, retain it as a package
    dependency since it is a valid runtime dependency

Issue

When downstream packages depend on mgrs today, they have wheel forced into their dependency graphs at install time. This occurs because mgrs as the upstream package currently lists two of its build requirements--wheel and setuptools--as install requirements. To clean this up, we can keep wheel and setuptools as valid build system requirements in pyproject.toml, but we should omit them from setup.py's install_requires section.

- Exclude `wheel` and `setuptools` from package dependencies
- Exclude `packaging` from build dependencies; however, retain it as a package
  dependency since it is a valid runtime dependency
@jwilges
Copy link
Contributor Author

jwilges commented Aug 10, 2021

@hobu let me know if you have any issues with this, but if not, it would be seriously awesome to get this merged and pushed as a newer release on PyPI so we can update our downstream references and shake wheel out of our dependency graphs.

@hobu hobu merged commit 8d76a2a into hobuinc:master Aug 10, 2021
@jwilges
Copy link
Contributor Author

jwilges commented Aug 10, 2021

You might win the open source hero award for fastest maintainer @hobu... Much love from the PNW, my friend!

I'm working on fixing our dependencies and this one was throwing us for a loop so I wanted to contribute the fix for all to enjoy. I'll keep an eye out for the PyPI version bump once you get a chance to release!

hobu added a commit that referenced this pull request Aug 10, 2021
@hobu
Copy link
Collaborator

hobu commented Aug 10, 2021

github actions borked right now, but when it catches up to the queue, the release will be pushed to PyPI.

@jwilges jwilges deleted the jwilges/fix-dependencies branch August 10, 2021 22:11
@jwilges
Copy link
Contributor Author

jwilges commented Aug 10, 2021

Thanks @hobu, it's really appreciated!

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

Successfully merging this pull request may close these issues.

2 participants