Skip to content

Conversation

@gentlegiantJGC
Copy link
Contributor

pyproject.toml is the modern way of listing package metadata.
Since this library is not doing anything complex in the build process the setup.py is no longer needed.

* Replace setup.py with pyproject.toml

pyproject.toml is the modern way of listing package metadata.
Since this library is not doing anything complex in the build process the setup.py is no longer needed.

* Fix find packages
@ax3l ax3l self-assigned this Jan 22, 2026
@ax3l ax3l self-requested a review January 22, 2026 07:57
@gentlegiantJGC
Copy link
Contributor Author

Note that I change the licence string from BSD to BSD-3-Clause. I think I tried BSD and it raised some exception when building. I think BSD-3-Clause matches the current licence.

@gentlegiantJGC
Copy link
Contributor Author

I also need to update the url

Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
pyproject.toml Outdated
name = "pybind11-stubgen"
description = "PEP 561 type stubs generator for pybind11 modules"
version = "2.5.5"
requires-python = "~=3.10"
Copy link
Contributor

Choose a reason for hiding this comment

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

I think >= is recommended:

Suggested change
requires-python = "~=3.10"
requires-python = ">=3.10"

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, I am sorry. I do not want you to have to update all CI tests with Python 3.8 and 3.9 here.

Let's do

Suggested change
requires-python = "~=3.10"
requires-python = ">=3.8"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

"~=3.10" allows any 3.x release greater or equal to 3.10. Python 4 could break some code in a way we can't anticipate.

Copy link
Contributor

@ax3l ax3l Jan 22, 2026

Choose a reason for hiding this comment

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

Yeah, but there were some blog posts on not limiting upper versions like this, I think @henryiii has a good writeup

@ax3l ax3l added the enhancement New feature or request label Jan 22, 2026
@gentlegiantJGC
Copy link
Contributor Author

The old builds will fail now because we have disabled support for them. I have another pull which rewrites the tests. Perhaps we should merge that first.

@ax3l
Copy link
Contributor

ax3l commented Jan 22, 2026

Let's keep the version here with >=3.8 and bump it again in the other PR that updates CI

@ax3l ax3l enabled auto-merge (squash) January 22, 2026 08:09
@ax3l ax3l mentioned this pull request Jan 22, 2026
@ax3l ax3l merged commit 30e7b99 into pybind:master Jan 22, 2026
19 checks passed
@gentlegiantJGC gentlegiantJGC deleted the impl-pyproject branch January 22, 2026 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants