diff --git a/.woodpecker/deploy.yml b/.woodpecker/deploy.yml new file mode 100644 index 0000000..b0dc46e --- /dev/null +++ b/.woodpecker/deploy.yml @@ -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 \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 20163ed..2815dd5 100755 --- a/pyproject.toml +++ b/pyproject.toml @@ -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] diff --git a/requirements-dev.txt b/requirements-dev.txt index 391072d..08700b5 100755 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,2 +1,4 @@ -r requirements.txt ruff==0.0.291 +twine==4.0.2 +build==1.0.3