diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml new file mode 100644 index 00000000..89eff6b2 --- /dev/null +++ b/.github/workflows/pypi.yml @@ -0,0 +1,34 @@ +name: PyPI + +on: + release: + types: [created] + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Install poetry + run: pipx install poetry + + - name: Setup python + uses: actions/setup-python@v4 + with: + python-version: "3.8" + cache: "poetry" + + - name: Install dependencies + run: | + python -m pip install -U twine + poetry install + - name: Build package + run: poetry build + + - name: Upload to PyPI + run: twine upload dist/* + env: + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} + TWINE_NON_INTERACTIVE: true diff --git a/MIGRATE.md b/MIGRATE.md index 27b3f313..fa325a50 100644 --- a/MIGRATE.md +++ b/MIGRATE.md @@ -1,4 +1,4 @@ -# Migration from v1 to v2 +# Migration from v5 to v6 **Warning** The `group` attribute will be removed from the Template model. diff --git a/pyproject.toml b/pyproject.toml index f1ed210c..9cd885a6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,9 +1,23 @@ [tool.poetry] name = "document-merge-service" -version = "5.2.0" +version = "5.2.1" description = "Merge Document Template Service" -authors = ["Adfinis AG"] license = "GPL-3.0-or-later" +authors = ["Adfinis AG "] +homepage = "https://github.com/adfinis/document-merge-service" +repository = "https://github.com/adfinis/document-merge-service" +documentation = "https://github.com/adfinis/document-merge-service/blob/main/README.md" +readme = "README.md" +classifiers = [ + "Development Status :: 5 - Production/Stable", + "Intended Audience :: Developers", + "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", + "Programming Language :: Python :: 3.8", +] +include = ["CHANGELOG.md"] +exclude = [ + "document-merge-service/**/tests", +] [tool.poetry.dependencies] python = "^3.8"