Skip to content

BLD: bump version number so it sorts ahead of 2.0.0#210

Merged
mattip merged 3 commits into
python-cffi:mainfrom
tacaswell:bld/dev_version_bump
Dec 1, 2025
Merged

BLD: bump version number so it sorts ahead of 2.0.0#210
mattip merged 3 commits into
python-cffi:mainfrom
tacaswell:bld/dev_version_bump

Conversation

@tacaswell

Copy link
Copy Markdown
Contributor

Otherwise when installing cryptography pip will try to downgrade cffi to the version on pypi from the development version.

@mattip mattip left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This makes sense. I wonder if there could be a follow-up PR to somehow reduce the number of places the version is specified.

Comment thread src/cffi/__init__.py Outdated

__version__ = "2.0.0.dev0"
__version__ = "2.0.1.dev0"
__version_info__ = (2, 0, 0, 'dev0')

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
__version_info__ = (2, 0, 0, 'dev0')
__version_info__ = (2, 0, 1, 'dev0')

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I ended up just doing it. I started to to tuple(__version__.split('.')) but then realized I would have to do the str -> int mapping in 3 of the 4 cases and went back to hard coding it.

@arigo

arigo commented Nov 3, 2025 via email

Copy link
Copy Markdown
Contributor

@mattip mattip merged commit 7617182 into python-cffi:main Dec 1, 2025
37 checks passed
@mattip

mattip commented Dec 1, 2025

Copy link
Copy Markdown
Contributor

Thanks @tacaswell

@tacaswell tacaswell deleted the bld/dev_version_bump branch December 1, 2025 21:21
@tacaswell tacaswell restored the bld/dev_version_bump branch December 2, 2025 02:55
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.

3 participants