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

Migrate from setup.py to pyproject.toml #1084

Merged
merged 1 commit into from
Jan 21, 2025
Merged

Conversation

csmarchbanks
Copy link
Member

Update the project configuration to use a pyproject.toml file instead of setup.py. This is the preferred tool and will allow easier integration with other tools in the future. We can also get rid of MANIFEST.in as the cache and compiled files are automatically excluded.

@csmarchbanks csmarchbanks force-pushed the migrate-to-pyproject branch 2 times, most recently from 00438ac to 4ba724f Compare January 13, 2025 22:37
license = { file = "LICENSE" }
requires-python = ">=3.9"
authors = [
{ name = "The Prometheus Authors", email = "[email protected]" },
Copy link
Member Author

Choose a reason for hiding this comment

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

This should be the only substantive change, moving from a specific author to the Promtheus developers as a whole.


[project]
name = "prometheus_client"
version = "0.21.1"
Copy link
Member Author

@csmarchbanks csmarchbanks Jan 17, 2025

Choose a reason for hiding this comment

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

The version also changed to match the most recent release which had a backport applied to it.

Copy link

@sd2k sd2k left a comment

Choose a reason for hiding this comment

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

Looks fine to me (although I've never used the pyproject / setuptools build system). One very minor comment!

pyproject.toml Outdated Show resolved Hide resolved
Update the project configuration to use a pyproject.toml file instead of
setup.py. This is the preferred tool and will allow easier integration
with other tools in the future. We can also get rid of MANIFEST.in as
the cache and compiled files are automatically excluded.

Signed-off-by: Chris Marchbanks <[email protected]>
@csmarchbanks csmarchbanks merged commit b0a6f12 into master Jan 21, 2025
11 checks passed
@csmarchbanks csmarchbanks deleted the migrate-to-pyproject branch January 21, 2025 17:20
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.

2 participants