mirror of
https://github.com/certbot/certbot.git
synced 2026-05-28 04:34:11 -04:00
Part of https://github.com/certbot/certbot/issues/10403. As far as I can tell, "stick it in setup.py" is the official way of handling complex dependencies. But since the version is static, we have a little more choice here than we had with `certbot/pyproject.toml`. We could put the version in the respective `pyproject.toml`s and read it directly from the toml file with something like [this](https://stackoverflow.com/a/78082561). Or otherwise load and parse that file. The benefit of doing it that way is that all non-certbot versions would be canonically in the `pyproject.toml`, and also if we wanted we could use that same toml parsing to change the version at release time instead of `sed`. I actually suspect `acme`, `certbot-ci`, and `certbot-compatibility-test` will be the only ones where we can completely delete `setup.py`, as the others all have lockstep dependencies. (side note - we just never update `certbot-ci` version. it's still set at `0.32.0.dev0`. there's no way this matters but just noting.) I chose to do it this way instead because it seems cleaner since we have to keep `setup.py` around anyway, but I don't have a strong preference. Based on what I've read, there's not actually a clean way to grab and insert the version number within the toml file. This is due to [design decisions](https://github.com/toml-lang/toml/issues/77) by the toml authors. The clean `all` extras specification that we used in `certbot/pyproject.toml` [seems to be an outlier](https://github.com/pypa/setuptools/discussions/3627#discussioncomment-6476654) because it's pip handling the self-reference, not toml.
55 lines
1.4 KiB
TOML
55 lines
1.4 KiB
TOML
[build-system]
|
|
requires = ["setuptools"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "acme"
|
|
dynamic = ["version"]
|
|
description = "ACME protocol implementation in Python"
|
|
readme = "README.rst"
|
|
license = "Apache-2.0"
|
|
requires-python = ">=3.10"
|
|
authors = [
|
|
{ name = "Certbot Project", email = "certbot-dev@eff.org" },
|
|
]
|
|
classifiers = [
|
|
"Development Status :: 5 - Production/Stable",
|
|
"Intended Audience :: Developers",
|
|
"Programming Language :: Python",
|
|
"Programming Language :: Python :: 3",
|
|
"Programming Language :: Python :: 3.13",
|
|
"Programming Language :: Python :: 3.10",
|
|
"Programming Language :: Python :: 3.11",
|
|
"Programming Language :: Python :: 3.12",
|
|
"Topic :: Internet :: WWW/HTTP",
|
|
"Topic :: Security",
|
|
]
|
|
dependencies = [
|
|
"cryptography>=43.0.0",
|
|
"josepy>=2.0.0",
|
|
# PyOpenSSL>=25.0.0 is just needed to satisfy mypy right now so this dependency can probably be
|
|
# relaxed to >=24.0.0 if needed.
|
|
"PyOpenSSL>=25.0.0",
|
|
"pyrfc3339",
|
|
"requests>=2.25.1",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
docs = [
|
|
"Sphinx>=1.0", # autodoc_member_order = 'bysource', autodoc_default_flags
|
|
"sphinx_rtd_theme",
|
|
]
|
|
test = [
|
|
"pytest",
|
|
"pytest-xdist",
|
|
"typing-extensions",
|
|
]
|
|
|
|
[project.urls]
|
|
Homepage = "https://github.com/certbot/certbot"
|
|
|
|
[tool.setuptools]
|
|
package-dir = {"" = "src"}
|
|
|
|
[tool.setuptools.packages.find]
|
|
where = ["src"]
|