WIP: Python packages #12

Draft
ada wants to merge 1 commit from ada/python-packages into main
3 changed files with 28 additions and 1 deletions

11
.woodpecker/deploy.yml Normal file
View file

@ -0,0 +1,11 @@
steps:
pypi:
image: ubuntu:23.04
commands:
- apt update
- apt install -y python3 python3-pip
- pip3 install -r requirements-dev.txt --break-system-packages
- python -m build
- twine upload -u ada -p $REGISTRY_TOKEN --repository-url https://gitea.example.com/api/packages/gnouseu/ dist/
secrets:
- registry_token

View file

@ -1,3 +1,18 @@
[project]
name = "gnous_paste"
authors = [{ name = "GnousEU" }, { name = "Ada", email = "ada@gnous.eu" }]
requires-python = ">=3.11"
readme = "README.md"
version = "0.0.1"
[tool.setuptools.dynamic]
dependencies = { file = ["requirements.txt"] }
optional-dependencies = { dev = { file = ["requirements-dev.txt"] } }
[project.urls]
"Homepage" = "https://git.gnous.eu/gnouseu/paste"
"Bug Tracker" = "https://git.gnous.eu/gnouseu/paste/issues"
[tool.ruff] [tool.ruff]
target-version = "py311" target-version = "py311"
line-length = 88 line-length = 88
@ -57,7 +72,6 @@ exclude = [
".ruff_cache", ".ruff_cache",
"venv", "venv",
"instances", "instances",
"schema.sql"
] ]
[tool.isort] [tool.isort]

View file

@ -1,2 +1,4 @@
-r requirements.txt -r requirements.txt
ruff==0.0.291 ruff==0.0.291
twine==4.0.2
build==1.0.3