Files
evercatch-python/pyproject.toml
Puranjay Savar Mattas d401423646
All checks were successful
PR Title Checker / Validate PR Title Format (pull_request) Successful in 2s
PR Management Bot / pr-bot (pull_request) Successful in 6s
EC-21: FEAT: Added commands to publish to pypi.
Refers: Evercatch/evercatch-board#21
2026-02-22 23:19:08 +00:00

104 lines
3.4 KiB
TOML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
# ---------------------------------------------------------------------------
# PEP 621 metadata — read by PyPI, pip, and other standard tools
# ---------------------------------------------------------------------------
[project]
name = "evercatch"
version = "0.0.1"
authors = [
{ name = "Evercatch", email = "support@evercatch.dev" },
]
description = "Official Python SDK for Evercatch webhook infrastructure platform."
readme = "README.md"
requires-python = ">=3.12"
keywords = ["evercatch", "sdk", "api", "webhooks"]
license = "MIT"
license-files = ["LICEN[CS]E*"]
classifiers = [
"Development Status :: 1 - Planning",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Operating System :: OS Independent",
]
[project.urls]
Homepage = "https://git.psmattas.com/evercatch/evercatch-python"
Issues = "https://git.psmattas.com/evercatch/evercatch-python/issues"
# ---------------------------------------------------------------------------
# Poetry-specific settings (dependency management, packaging)
# ---------------------------------------------------------------------------
[tool.poetry]
name = "evercatch"
version = "0.0.1"
description = "Official Python SDK for Evercatch webhook infrastructure platform."
authors = ["Evercatch <support@evercatch.dev>"]
license = "MIT"
readme = "README.md"
repository = "https://git.psmattas.com/evercatch/evercatch-python"
keywords = ["evercatch", "sdk", "api", "webhooks"]
classifiers = [
"Development Status :: 1 - Planning",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Operating System :: OS Independent",
]
packages = [{ include = "evercatch" }]
[tool.poetry.dependencies]
python = "^3.12"
[tool.poetry.group.dev.dependencies]
twine = ">=4.0"
poethepoet = ">=0.24"
# ---------------------------------------------------------------------------
# Task runner (poethepoet)
# Usage:
# poetry run poe build build sdist + wheel into dist/
# poetry run poe publish-gitea upload dist/* to the Gitea registry
# poetry run poe publish-pypi upload dist/* to PyPI
# poetry run poe release build then publish to both (one shot)
#
# ~/.pypirc must be configured with both registries:
#
# [distutils]
# index-servers =
# gitea
# pypi
#
# [gitea]
# repository = https://git.psmattas.com/api/packages/Evercatch/pypi
# username = <your-gitea-username>
# password = <your-gitea-token>
#
# [pypi]
# username = __token__
# password = pypi-<your-pypi-api-token>
# ---------------------------------------------------------------------------
[tool.poe.tasks.build]
cmd = "poetry build"
help = "Build sdist and wheel into dist/"
[tool.poe.tasks.publish-gitea]
cmd = "python -m twine upload --repository gitea dist/*"
help = "Upload dist/* to the Gitea package registry"
[tool.poe.tasks.publish-pypi]
cmd = "python -m twine upload --repository pypi dist/*"
help = "Upload dist/* to PyPI"
[tool.poe.tasks.release]
sequence = [{ ref = "build" }, { ref = "publish-gitea" }, { ref = "publish-pypi" }]
help = "Build and publish to Gitea and PyPI in one step"