add(packages): pypi packages and ci
Some checks failed
ci/woodpecker/push/deploy Pipeline failed
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/pr/lint Pipeline was successful
ci/woodpecker/pr/deploy Pipeline failed

This commit is contained in:
Ada 2023-10-02 00:24:39 +02:00
parent e61eaa291b
commit c61d47c09c
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]
target-version = "py311"
line-length = 88
@ -57,7 +72,6 @@ exclude = [
".ruff_cache",
"venv",
"instances",
"schema.sql"
]
[tool.isort]

View file

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