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
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions MANIFEST.in

This file was deleted.

49 changes: 49 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[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.

description = "Python client for the Prometheus monitoring system."
readme = "README.md"
license = { file = "LICENSE" }
requires-python = ">=3.9"
authors = [
{ name = "The Prometheus Authors", email = "prometheus-developers@googlegroups.com" },
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.

]
keywords = [
"prometheus",
"monitoring",
"instrumentation",
"client",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: System Administrators",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: System :: Monitoring",
"License :: OSI Approved :: Apache Software License",
]

[project.optional-dependencies]
twisted = [
"twisted",
]

[project.urls]
Homepage = "https://github.com/prometheus/client_python"
Documentation = "https://prometheus.github.io/client_python/"

[tool.setuptools.package-data]
prometheus_client = ['py.typed']
51 changes: 0 additions & 51 deletions setup.py

This file was deleted.

4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -34,14 +34,14 @@ deps =
flake8-import-order==0.18.2
skip_install = true
commands =
flake8 prometheus_client/ tests/ setup.py
flake8 prometheus_client/ tests/

[testenv:isort]
deps =
isort==5.10.1
skip_install = true
commands =
isort --check prometheus_client/ tests/ setup.py
isort --check prometheus_client/ tests/

[testenv:mypy]
deps =