diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 890ff25..b46eab9 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 0.6.2 +current_version = 0.6.3 files = setup.py parse_type/__init__.py .bumpversion.cfg commit = False tag = False diff --git a/.github/workflows/manual-release-to-pypi.yml b/.github/workflows/manual-release-to-pypi.yml deleted file mode 100644 index 73dc558..0000000 --- a/.github/workflows/manual-release-to-pypi.yml +++ /dev/null @@ -1,65 +0,0 @@ -# -- WORKFLOW: Publish/release this package on PyPI -# SEE: -# * https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python -# * https://docs.github.com/en/actions/use-cases-and-examples/building-and-testing/building-and-testing-python#publishing-to-pypi -# -# * https://docs.github.com/en/actions/writing-workflows -# * https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs -# * https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#release -# -# GITHUB ACTIONS: -# * https://github.com/actions/checkout -# * https://github.com/pypa/gh-action-pypi-publish -# -# RELATED: -# * https://github.com/actions/starter-workflows/blob/main/ci/python-publish.yml - -# -- STATE: PREPARED_ONLY, NOT_RELEASED_YET -name: manual-release-to-pypi -on: - workflow_dispatch: # -- NOTE: Run it manually and provide the version. - inputs: - VERSION: - description: "Existing version to publish the release (to pypi; EXAMPLE: VERSION=1.2.7)" - required: true - type: string - -permissions: - contents: read - -jobs: - publish-package: - runs-on: ubuntu-latest - # MAYBE: if: github.event_name == "push" && startsWith(github.ref, "refs/tags/v") - environment: - name: pypi - url: https://pypi.org/project/parse-type - # OR: https://pypi.org/p/ - permissions: - id-token: write # REQUIRED-FOR: Trusted publishing. - steps: - - uses: actions/checkout@v4 - with: - ref: "v${{inputs.VERSION}}" - # env: - # VERSION: "${{inputs.VERSION}}" - - uses: actions/setup-python@v5 - with: - python-version: "3.10" - - name: "Install Python package dependencies (with: uv)" - run: | - python -m pip install -U uv - python -m uv pip install -U pip setuptools wheel build twine - - name: Build this package - run: python -m build - - name: Check this package (before upload) - run: twine check dist/* ─╯ - - name: Upload this package to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 - with: - print-hash: true - verbose: true - # -- MAYBE: - # with: - # repository-url: https://test.pypi.org/legacy/ - # password: ${{ secrets.TEST_PYPI_API_TOKEN }} diff --git a/.github/workflows/release-to-pypi.yml b/.github/workflows/release-to-pypi.yml index 88e25e4..0d5f01b 100644 --- a/.github/workflows/release-to-pypi.yml +++ b/.github/workflows/release-to-pypi.yml @@ -45,7 +45,7 @@ jobs: - name: Build this package run: python -m build - name: Check this package (before upload) - run: twine check dist/* ─╯ + run: twine check dist/* - name: Upload this package to PyPI uses: pypa/gh-action-pypi-publish@release/v1 with: diff --git a/.github/workflows/release-to-testpypi.yml b/.github/workflows/release-to-testpypi.yml deleted file mode 100644 index 40924ac..0000000 --- a/.github/workflows/release-to-testpypi.yml +++ /dev/null @@ -1,58 +0,0 @@ -# -- WORKFLOW: Publish/release this package on PyPI (testpypi) -# SEE: -# * https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python -# * https://docs.github.com/en/actions/use-cases-and-examples/building-and-testing/building-and-testing-python#publishing-to-pypi -# -# * https://docs.github.com/en/actions/writing-workflows -# * https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs -# * https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#release -# -# GITHUB ACTIONS: -# * https://github.com/actions/checkout -# * https://github.com/pypa/gh-action-pypi-publish -# -# RELATED: -# * https://github.com/actions/starter-workflows/blob/main/ci/python-publish.yml - -# -- STATE: PREPARED_ONLY, NOT_RELEASED_YET -name: release-to-pypi -on: - release: - types: [published] - # MAYBE: if: github.event_name == "push" && startsWith(github.ref, "refs/tags/v") - -permissions: - contents: read - -jobs: - publish-package: - runs-on: ubuntu-latest - # MAYBE: if: github.event_name == "push" && startsWith(github.ref, "refs/tags/v") - environment: - name: pypi - url: https://test.pypi.org/project/parse-type - # OR: https://test.pypi.org/p/ - permissions: - id-token: write # REQUIRED-FOR: Trusted publishing. - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 - with: - python-version: "3.10" - - name: "Install Python package dependencies (with: uv)" - run: | - python -m pip install -U uv - python -m uv pip install -U pip setuptools wheel build twine - - name: Build this package - run: python -m build - - name: Check this package (before upload) - run: twine check dist/* ─╯ - - name: Upload this package to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 - with: - print-hash: true - verbose: true - # -- MAYBE: - # with: - # repository-url: https://test.pypi.org/legacy/ - # password: ${{ secrets.TEST_PYPI_API_TOKEN }} diff --git a/parse_type/__init__.py b/parse_type/__init__.py index 92c8b4d..8147313 100644 --- a/parse_type/__init__.py +++ b/parse_type/__init__.py @@ -11,4 +11,4 @@ from parse_type.builder import TypeBuilder, build_type_dict __all__ = ["Cardinality", "TypeBuilder", "build_type_dict"] -__version__ = "0.6.2" +__version__ = "0.6.3" diff --git a/pyproject.toml b/pyproject.toml index ca74521..ba02098 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -61,6 +61,7 @@ Download = "https://pypi.org/project/parse_type/" [project.optional-dependencies] develop = [ + "setuptools", "build >= 0.5.1", "twine >= 1.13.0", "coverage >= 4.4", diff --git a/setup.py b/setup.py index b216331..e44d7ee 100644 --- a/setup.py +++ b/setup.py @@ -53,7 +53,7 @@ def find_packages_by_root_package(where): # ----------------------------------------------------------------------------- setup( name = "parse_type", - version = "0.6.2", + version = "0.6.3", author = "Jens Engel", author_email = "jenisys@noreply.github.com", url = "https://github.com/jenisys/parse_type", @@ -79,11 +79,12 @@ def find_packages_by_root_package(where): "pytest-html >= 1.19.0", ], extras_require={ - 'docs': [ + "docs": [ "Sphinx >=1.6", "sphinx_bootstrap_theme >= 0.6.0" ], - 'develop': [ + "develop": [ + "setuptools", "build >= 0.5.1", "twine >= 1.13.0", "coverage >= 4.4",