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

build: switch to pyproject.toml #1891

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

nstarman
Copy link
Contributor

@nstarman nstarman commented Oct 16, 2024

Requires #1892

@nstarman nstarman force-pushed the rm-setup.py branch 4 times, most recently from 838620c to 9df98f1 Compare October 16, 2024 22:03
@nstarman nstarman marked this pull request as ready for review October 16, 2024 22:04
@nstarman
Copy link
Contributor Author

The version is now specified 2x, in numpyro.version.py::__version__ and in pyproject.toml.
I could fix that in this PR or in a followup. Don't know exactly what it will take, possibly importlib.metadata will work. Or maybe setuptools_scm dynamic version writing.

@nstarman
Copy link
Contributor Author

nstarman commented Oct 16, 2024

Needed to incorporate changes from the recent Jax NS fixes PR.

Copy link
Member

@fehiepsi fehiepsi left a comment

Choose a reason for hiding this comment

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

Maybe it's good to use setup.py for version handling?

readme = "README.md"
requires-python = ">=3.9"
authors = [
{ name = "Uber AI Labs", email = "[email protected]" },
Copy link
Member

Choose a reason for hiding this comment

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

you can use my email fehiepsi at gmail com for this.

"Operating System :: MacOS :: MacOS X",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
Copy link
Member

Choose a reason for hiding this comment

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

could you also add 3.12

@nstarman
Copy link
Contributor Author

There are many pyproject.toml based solutions, it's just about choosing one. Do you want to manually bump the version or automatically using version control? Or use tooling like commitizen or GH actions?

@fehiepsi
Copy link
Member

fehiepsi commented Oct 17, 2024

I would prefer having a minimal setup.py file for it and manually bump the version. Not sure if versioning is the reason jax team still keeps it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants