diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 255410e..4502c95 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -22,12 +22,13 @@ jobs: - name: Build a binary wheel and a source tarball run: python3 -m build - name: Store the distribution packages - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: python-package-distributions path: dist/ pypi-publish: + needs: build name: Publish Python distribution to PyPI runs-on: ubuntu-latest environment: @@ -38,7 +39,7 @@ jobs: contents: read # Add the contents permission for accessing repository contents steps: - name: Download all the dists - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: python-package-distributions path: dist/ diff --git a/.github/workflows/python-publishtest.yml b/.github/workflows/python-publishtest.yml index 5a82fad..a00d41a 100644 --- a/.github/workflows/python-publishtest.yml +++ b/.github/workflows/python-publishtest.yml @@ -24,12 +24,13 @@ jobs: - name: Build a binary wheel and a source tarball run: python3 -m build - name: Store the distribution packages - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: python-package-distributions path: dist/ testpypi-publish: + needs: build name: Publish Python distribution to testPyPI runs-on: ubuntu-latest environment: @@ -40,7 +41,7 @@ jobs: contents: read # Add the contents permission for accessing repository contents steps: - name: Download all the dists - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: python-package-distributions path: dist/ diff --git a/CHANGES.md b/CHANGES.md index 7f7bf1d..a8d6f84 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,6 +1,12 @@ # Changelog All notable changes to this project will be documented in this file. +## [2.0.5] - 2026-11-03 +### Security +- Declare `requests>=2.32.4` as a dependency (fixes CVE-2024-35195, CVE-2024-47081 in older versions); minimum Python is now 3.8 +### Fixed +- Publish workflows use `actions/upload-artifact`/`download-artifact` v4 (v3 is retired) + ## [2.0.4] - 2024-06-12 (Joris Pennings) ### Changed - Global gateway url diff --git a/cm_text/version.py b/cm_text/version.py index f593cd5..4c354e0 100644 --- a/cm_text/version.py +++ b/cm_text/version.py @@ -1 +1 @@ -__version__ = '2.0.4' +__version__ = '2.0.5' diff --git a/setup.py b/setup.py index 85488a3..ee0dc1f 100644 --- a/setup.py +++ b/setup.py @@ -22,5 +22,8 @@ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", ], - python_requires='>=3.6', + python_requires='>=3.8', + install_requires=[ + 'requests>=2.32.4', + ], )