WIP: Python packages #12
3 changed files with 28 additions and 1 deletions
11
.woodpecker/deploy.yml
Normal file
11
.woodpecker/deploy.yml
Normal 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
|
|
@ -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]
|
||||
|
|
|
@ -1,2 +1,4 @@
|
|||
-r requirements.txt
|
||||
ruff==0.0.291
|
||||
twine==4.0.2
|
||||
build==1.0.3
|
||||
|
|
Reference in a new issue