Skip to content

Migrate from setup.py to pyproject.toml#1084

Merged
csmarchbanks merged 1 commit intomasterfrom
migrate-to-pyproject
Jan 21, 2025
Merged

Migrate from setup.py to pyproject.toml#1084
csmarchbanks merged 1 commit intomasterfrom
migrate-to-pyproject

Conversation

@csmarchbanks
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown

@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!

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
@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