-
-
Notifications
You must be signed in to change notification settings - Fork 11.1k
MAINT: Remove versioneer #24196
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
Merged
Merged
MAINT: Remove versioneer #24196
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
3577579
Remove versioneer
stefanv 28d3c16
Store git version to disk
stefanv 1592713
Fix version imports
stefanv f9f4230
Satisfy linter
stefanv bee36bb
Fix version regex; remove check for removed np.version
stefanv 4550ead
Read version from pyproject.toml
stefanv 0711d75
Update gitignore
stefanv 2afee19
Satisfy linter
stefanv 6b1dc56
Handle missing .git directory
stefanv 2b181ef
Update setuppy pyproject.toml variant
stefanv f44045d
doc: grab git version using git, not versioneer
stefanv fbb0254
Remove versioneer from linter exclude
stefanv 79553c8
Fix base version number, should be `.dev0` (with a dot) to be valid
rgommers 27b4c51
Fix and restore tests in `test_numpy_version.py`
rgommers 6a6d63a
Fix CircleCI doc build error due to git hash
rgommers 1fedea3
Always re-generate version.py during the build
stefanv 7d1fc7f
No need to write version in meson config
stefanv 75132ee
git hash is optional in, e.g., sdist build
stefanv 3a9aec1
Always use 7 characters for shortened git hash
stefanv e0a3f86
Generate version.py as part of sdist
stefanv f827e86
Make gitversion aware of meson
stefanv ac1b69a
Run successfully on non-dev builds also
stefanv e36ab98
Version is not printed on cmd line when writing to file
stefanv 12ed9f0
Calculate git version also for non-dev versions
stefanv 5695abf
Do not generate version.py if it already exists in source tree
stefanv 9ee4da9
Install version.py only when pre-built (build from sdist)
stefanv 4abc3c7
Fix git version query
stefanv 8287648
Merge branch 'main' into rm-versioneer
rgommers 4b81f94
BUG: fix `python setup.py sdist` and the multiarray import error msg
rgommers 6aff0bc
MAINT: revert change to setup.py for sdist/wheel versioning
rgommers File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev
Previous commit
MAINT: revert change to setup.py for sdist/wheel versioning
[skip azp] [skip cirrus] [skip circle] [skip travis]
- Loading branch information
commit 6aff0bc423523b01bfff1ef30e89d40c0cb886a8
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a change, because
VERSION
is defined asand
versioneer.get_version()
returns the version including git hash. And it results in:easy enough to fix it looks like, by using
FULLVERSION
instead.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ugh, that didn't do it:
I'll do some more testing locally. I really want to merge this PR, but this seems like a blocker. Shouldn't be too difficult to fix.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, locally I get sdist and wheel that are named sensibly:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, whatever, CI was green so I'm reverting to what it was. I really do get
numpy-2.0.2.0.0.dev0+git20230811.6aff0bc
locally, no idea what is going on there. But we're switching all jobs away fromsetup.py
asap, so maybe it doesn't matter.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've been building wheels using
python -m build --sdist
. Is it necessary to support another pathway?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I think that's a known issue indeed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another line in
setup.py
that doesn't seem quite right:Another reason I think that your FULLVERSION patch is correct.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah well, let's leave that for a follow-up. I'm kinda running out of steam and have some non open source plans for the weekend.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
use_wheel
job is happy to install this wheel, I guess it's a valid version number:There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2.0.2.0.0 🤪