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"