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

Incorrect version specification for some dependencies in setup.py #225

Merged
merged 1 commit into from
Apr 6, 2023

Conversation

jordanperr
Copy link
Collaborator

Summary:
This pull request should fix the "extras_requires" error during pip install by modifying some version clauses in our setup.py file to use the inclusive ordered comparison.

Observed Behavior
Error observed on pip install: error in OpenOA setup command: 'extras_require' must be a dictionary whose values are strings or lists of strings containing valid project/version requirement specifiers.

Explaination
We had been incorrectly specifying some of our dependencies in setup.py. Past version of pip must have been more forgiving.

Example of incorrect version clause: matplotlib>=3.6.*
Instead, use:

  • The similar release clause matplotlib~=3.6
  • Inclusive ordered comparison matplotlib>=3.6

See: pypa/setuptools#3801

Changes
In this pull request I modify the version specifiers in OpenOA to use the inclusive ordered comparison.

…alities on version numbers with an asterisk anymore.
@jordanperr jordanperr requested a review from RHammond2 February 27, 2023 18:05
@jordanperr jordanperr changed the title Fixing version specification bug in setup.py. You can't specify inequ… Incorrect version specification for some dependencies in setup.py Feb 27, 2023
Copy link
Collaborator

@RHammond2 RHammond2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for figuring this one out!

@RHammond2 RHammond2 merged commit 91fe859 into develop_v3 Apr 6, 2023
@RHammond2 RHammond2 deleted the hotfix/extras_required_error branch April 6, 2023 20:56
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