Pending publisher registered on PyPI for python/erldistpy with
workflow filepath .gitlab-ci.yml — GitLab now mints a short-lived
OIDC ID token (audience=pypi) per pipeline, twine 6+ exchanges it
for a scoped upload token. No long-lived secret on the runner.
What this commit changes:
- .gitlab-ci.yml pypi-twine stage gains id_tokens: PYPI_ID_TOKEN
- pip install twine (no <6 pin) — twine 6 is OIDC-native
- pyproject.toml build-system requires drops the setuptools<77 cap
(latest setuptools emits Metadata-Version 2.4 which twine 6 reads
fine; locally verified)
After this tag publishes successfully, the same pattern goes to:
- ago (python/ago)
- make-post-sell (engineering/make-post-sell)
- remarkbox (engineering/remarkbox)
each gets a Trusted Publisher entry added on the PyPI project page,
then the id_tokens block lands in their CI.
Recipe lives at docs/PYPI-TRUSTED-PUBLISHING.md (updated to reflect
the new auth model is now live for erldistpy).
72 lines
1.8 KiB
TOML
72 lines
1.8 KiB
TOML
[build-system]
|
|
requires = ["setuptools>=68", "wheel"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "erldistpy"
|
|
version = "0.1.4"
|
|
description = "Native Python client for Erlang distribution protocol — EPMD + v6 handshake + gen_server call(), no asyncio."
|
|
readme = { file = "README.md", content-type = "text/markdown" }
|
|
requires-python = ">=3.10"
|
|
license = { text = "Unlicense" }
|
|
authors = [
|
|
{ name = "Russell Ballestrini", email = "russell.ballestrini@gmail.com" },
|
|
]
|
|
keywords = [
|
|
"erlang",
|
|
"elixir",
|
|
"distribution",
|
|
"dist",
|
|
"gen_server",
|
|
"rpc",
|
|
"etf",
|
|
"epmd",
|
|
"inet_tls_dist",
|
|
"interop",
|
|
]
|
|
classifiers = [
|
|
"Development Status :: 3 - Alpha",
|
|
"Intended Audience :: Developers",
|
|
"License :: Public Domain",
|
|
"Operating System :: OS Independent",
|
|
"Programming Language :: Python",
|
|
"Programming Language :: Python :: 3",
|
|
"Programming Language :: Python :: 3.10",
|
|
"Programming Language :: Python :: 3.11",
|
|
"Programming Language :: Python :: 3.12",
|
|
"Programming Language :: Python :: 3.13",
|
|
"Programming Language :: Python :: 3 :: Only",
|
|
"Programming Language :: Erlang",
|
|
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
"Topic :: System :: Networking",
|
|
]
|
|
dependencies = []
|
|
|
|
[project.urls]
|
|
Homepage = "https://git.unturf.com/python/erldistpy"
|
|
Repository = "https://git.unturf.com/python/erldistpy"
|
|
"Bug Tracker" = "https://git.unturf.com/python/erldistpy/-/issues"
|
|
|
|
[project.optional-dependencies]
|
|
dev = [
|
|
"pytest >=8.0,<9",
|
|
"pytest-cov >=5.0,<7",
|
|
"ruff >=0.6,<1",
|
|
"build >=1.0",
|
|
"twine >=5.0",
|
|
]
|
|
|
|
[tool.setuptools.packages.find]
|
|
include = ["erldistpy*"]
|
|
|
|
[tool.pytest.ini_options]
|
|
testpaths = ["tests"]
|
|
addopts = "-ra --strict-markers"
|
|
|
|
[tool.ruff]
|
|
line-length = 100
|
|
target-version = "py310"
|
|
|
|
[tool.ruff.lint]
|
|
select = ["E", "F", "I", "B", "UP", "SIM"]
|
|
ignore = ["E501"]
|