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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix test_deprecate to work with setuptools_scm versions #429

Merged
merged 3 commits into from Jan 15, 2024

Conversation

rhugonnet
Copy link
Contributor

@rhugonnet rhugonnet commented Jan 11, 2024

See more details on the issue here: #427 (comment)

Was failing locally but not in CI because of link between git and setuptools_scm for versioning. Now using Version objects to have things consistent everywhere! (easy to change our deprecated mechanism in the future if we want to, by extracting a different major/minor/micro version from the Version object 馃槃)

Tested locally with:

  • Classic local version due to commits: __version__ = version = '0.0.18.dev4+g90460bf'
  • Pre-release versions that are more tricky due to rc suffix attached to last version number: __version__ = version = '0.0.17rc2.dev1+gef706f8'

Both passing!

Resolves #427

@atedstone
Copy link
Member

Looks good, and works on my local machine too - thanks @rhugonnet

@atedstone atedstone closed this Jan 15, 2024
@atedstone atedstone reopened this Jan 15, 2024
@atedstone atedstone merged commit 41dc58f into GlacioHack:main Jan 15, 2024
24 checks passed
@rhugonnet rhugonnet deleted the fix_local_test_deprecate branch January 15, 2024 17:27
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.

Auto-generated version number causes test_misc.test_deprecate() to fail
2 participants