From 7cc5a107e07e2531ae7ed6e274851c987deeaeb3 Mon Sep 17 00:00:00 2001 From: Yurii Serhiichuk Date: Thu, 8 Dec 2022 21:20:35 +0200 Subject: [PATCH 1/5] chore: drop Python 3.6 official support Signed-off-by: Yurii Serhiichuk --- .github/workflows/main.yml | 2 +- cloudevents/__init__.py | 2 +- setup.py | 8 +------- tox.ini | 2 +- 4 files changed, 4 insertions(+), 10 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a9c5e171..34f1ae2d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -22,7 +22,7 @@ jobs: test: strategy: matrix: - python: ['3.6', '3.7', '3.8', '3.9', '3.10'] + python: ['3.7', '3.8', '3.9', '3.10'] os: [ubuntu-latest, windows-latest, macos-latest] runs-on: ${{ matrix.os }} steps: diff --git a/cloudevents/__init__.py b/cloudevents/__init__.py index e0bb7f7f..cc81e92b 100644 --- a/cloudevents/__init__.py +++ b/cloudevents/__init__.py @@ -12,4 +12,4 @@ # License for the specific language governing permissions and limitations # under the License. -__version__ = "1.7.1" +__version__ = "1.8.0" diff --git a/setup.py b/setup.py index 54eebe84..4c9c06c0 100644 --- a/setup.py +++ b/setup.py @@ -60,7 +60,6 @@ def get_version(rel_path): "Development Status :: 5 - Production/Stable", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", @@ -69,10 +68,5 @@ def get_version(rel_path): packages=find_packages(exclude=["cloudevents.tests"]), version=pypi_config["version_target"], install_requires=["deprecation>=2.0,<3.0"], - extras_require={ - "pydantic": [ - "pydantic>=1.0.0,<1.9.0;python_version<'3.7'", - "pydantic>=1.0.0,<2.0;python_version>='3.7'", - ], - }, + extras_require={"pydantic": "pydantic>=1.0.0,<2.0"}, ) diff --git a/tox.ini b/tox.ini index 47fbf6f9..5f86b200 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py{36,37,38,39,310},lint +envlist = py{37,38,39,310},lint skipsdist = True [testenv] From ed59fb749f6323668c2ce61172841c35234db963 Mon Sep 17 00:00:00 2001 From: Yurii Serhiichuk Date: Thu, 8 Dec 2022 21:24:00 +0200 Subject: [PATCH 2/5] docs: update docs regarding Python 3.6 being unsupported anymore Signed-off-by: Yurii Serhiichuk --- CHANGELOG.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 206a6aeb..e63cdf7f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [1.8.0] — 2022-12-08 +### Changed +- Dropped support of Python 3.6 that has reached EOL almost a year ago. + [v1.7.1](https://pypi.org/project/cloudevents/1.7.1/) is the last + one to support Python 3.6 ([#208]) + ## [1.7.1] — 2022-11-21 ### Fixed - Fixed Pydantic extras dependency constraint (backport of v1.6.3, [#204]) @@ -168,6 +174,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - Initial release +[1.8.0]: https://github.com/cloudevents/sdk-python/compare/1.7.0...1.8.0 [1.7.1]: https://github.com/cloudevents/sdk-python/compare/1.7.0...1.7.1 [1.7.0]: https://github.com/cloudevents/sdk-python/compare/1.6.0...1.7.0 [1.6.3]: https://github.com/cloudevents/sdk-python/compare/1.6.2...1.6.3 @@ -240,3 +247,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 [#197]: https://github.com/cloudevents/sdk-python/pull/197 [#202]: https://github.com/cloudevents/sdk-python/pull/202 [#204]: https://github.com/cloudevents/sdk-python/pull/204 +[#208]: https://github.com/cloudevents/sdk-python/pull/208 From b729928f6d2710d36965ea55a02fe3be10721bd2 Mon Sep 17 00:00:00 2001 From: Yurii Serhiichuk Date: Thu, 8 Dec 2022 21:33:00 +0200 Subject: [PATCH 3/5] deps: drop Python3.6-only dependencies Signed-off-by: Yurii Serhiichuk --- requirements/test.txt | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/requirements/test.txt b/requirements/test.txt index 3f6e2d89..0cd1c205 100644 --- a/requirements/test.txt +++ b/requirements/test.txt @@ -4,12 +4,10 @@ flake8-print pytest pytest-cov # web app tests -sanic<=20.12.7; python_version <= '3.6' -sanic; python_version > '3.6' -sanic-testing; python_version > '3.6' +sanic +sanic-testing aiohttp Pillow requests flask -pydantic>=1.0.0<1.9.0; python_version <= '3.6' -pydantic>=1.0.0<2.0; python_version > '3.6' +pydantic>=1.0.0<2.0; From 3209bfaf2b295983d75ed46c99234d74153f5f73 Mon Sep 17 00:00:00 2001 From: Yurii Serhiichuk Date: Thu, 8 Dec 2022 21:35:59 +0200 Subject: [PATCH 4/5] chore: drop extra `;` Signed-off-by: Yurii Serhiichuk --- requirements/test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/test.txt b/requirements/test.txt index 0cd1c205..263193b0 100644 --- a/requirements/test.txt +++ b/requirements/test.txt @@ -10,4 +10,4 @@ aiohttp Pillow requests flask -pydantic>=1.0.0<2.0; +pydantic>=1.0.0<2.0 From 56db8b0ec08f72102deac78d35e710de2dd86d05 Mon Sep 17 00:00:00 2001 From: Yurii Serhiichuk Date: Thu, 8 Dec 2022 21:41:33 +0200 Subject: [PATCH 5/5] chore: try `setup.py` syntax Signed-off-by: Yurii Serhiichuk --- requirements/test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/test.txt b/requirements/test.txt index 263193b0..ed464ac6 100644 --- a/requirements/test.txt +++ b/requirements/test.txt @@ -10,4 +10,4 @@ aiohttp Pillow requests flask -pydantic>=1.0.0<2.0 +pydantic>=1.0.0,<2.0