From a38db7e8a71252d8d042cd3f0b7988208cb5d68e Mon Sep 17 00:00:00 2001 From: boke0 Date: Fri, 5 Mar 2021 10:42:26 +0900 Subject: [PATCH] [update] --- .github/workflows/python-publish.yml | 4 ++-- pyproject.toml | 12 ++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 1a03a7b..8c146cc 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -21,11 +21,11 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install setuptools wheel twine + pip install poetry poetry-dynamic-versioning twine - name: Build and publish env: TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} run: | - python setup.py sdist bdist_wheel + poetry build twine upload dist/* diff --git a/pyproject.toml b/pyproject.toml index a53fc2e..877d6fd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,6 +3,14 @@ name = "izanami" version = "0.1.0" description = "" authors = ["boke0 "] +license = "MIT" + +include = [ + "izanami/templates/*.html", + "izanami/templates/**/*.html", + "izanami/static/*", + "izanami/static/**/*", +] [tool.poetry.dependencies] python = "^3.9" @@ -23,3 +31,7 @@ black = "^20.8b1" [build-system] requires = ["poetry-core>=1.0.0"] build-backend = "poetry.core.masonry.api" + +[tool.poetry-dynamic-versioning] +enable = true +style = "pep440"