From 0282df9dc53560b839e48f5382f269b2681219cb Mon Sep 17 00:00:00 2001 From: mrafnadeem-apimatic Date: Fri, 7 Feb 2025 21:56:39 +0500 Subject: [PATCH 1/3] drop 3.7 support --- .github/workflows/pylint.yml | 2 +- .github/workflows/test-runner.yml | 2 +- README.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 62c2164..d97e33a 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -10,7 +10,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest] - python: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] + python: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] steps: - uses: actions/checkout@v3 - name: Setup Python diff --git a/.github/workflows/test-runner.yml b/.github/workflows/test-runner.yml index 465fbb4..d243dc2 100644 --- a/.github/workflows/test-runner.yml +++ b/.github/workflows/test-runner.yml @@ -16,7 +16,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - python: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] + python: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] steps: - uses: actions/checkout@v3 - name: Setup Python diff --git a/README.md b/README.md index 56694f2..283cc2e 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ The APIMatic Core libraries provide a stable runtime that powers all the functio ## Installation -You will need Python 3.7+ to support this package. +You will need Python 3.8+ to support this package. Simply run the command below to install the core library in your SDK. The core library will be added as a dependency your SDK. From e90e08ff05fec0b154793b06bdf8c3d77f6b28c7 Mon Sep 17 00:00:00 2001 From: mrafnadeem-apimatic Date: Fri, 7 Feb 2025 22:00:41 +0500 Subject: [PATCH 2/3] format setup.py --- setup.py | 37 +++++++++++++++++-------------------- 1 file changed, 17 insertions(+), 20 deletions(-) diff --git a/setup.py b/setup.py index c620b96..3d15d5a 100644 --- a/setup.py +++ b/setup.py @@ -4,34 +4,31 @@ from setuptools import setup, find_packages if sys.version_info[0] < 3: - with open('README.md', 'r') as fh: + with open("README.md", "r") as fh: long_description = fh.read() else: - with open('README.md', 'r', encoding='utf-8') as fh: + with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() setup( - name='apimatic-core', - version='0.2.18', - description='A library that contains core logic and utilities for ' - 'consuming REST APIs using Python SDKs generated by APIMatic.', + name="apimatic-core", + version="0.2.18", + description="A library that contains core logic and utilities for " + "consuming REST APIs using Python SDKs generated by APIMatic.", long_description=long_description, long_description_content_type="text/markdown", - author='APIMatic', - author_email='support@apimatic.io', - license='MIT', - url='https://github.com/apimatic/core-lib-python', + author="APIMatic", + author_email="support@apimatic.io", + license="MIT", + url="https://github.com/apimatic/core-lib-python", packages=find_packages(), install_requires=[ - 'apimatic-core-interfaces~=0.1.0', - 'jsonpickle~=3.3.0', - 'python-dateutil~=2.8', - 'requests~=2.31', - 'setuptools>=68.0.0', - 'jsonpointer~=2.3' + "apimatic-core-interfaces~=0.1.0", + "jsonpickle~=3.3.0", + "python-dateutil~=2.8", + "requests~=2.31", + "setuptools>=68.0.0", + "jsonpointer~=2.3", ], - tests_require=[ - 'pytest~=7.2.2', - 'pytest-cov~=4.0.0' - ] + tests_require=["pytest~=7.2.2", "pytest-cov~=4.0.0"], ) From 1832646f0a0d0ad9cfa9d32050e353d3a7444164 Mon Sep 17 00:00:00 2001 From: mrafnadeem-apimatic Date: Fri, 7 Feb 2025 22:10:51 +0500 Subject: [PATCH 3/3] remove check for python 2 This code will never run since our package publishing workflow uses the latest stable version of python 3. We should also migrate to pyproject.toml files as that is the standard. --- setup.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/setup.py b/setup.py index 3d15d5a..aae5904 100644 --- a/setup.py +++ b/setup.py @@ -1,14 +1,9 @@ # -*- coding: utf-8 -*- -import sys from setuptools import setup, find_packages -if sys.version_info[0] < 3: - with open("README.md", "r") as fh: - long_description = fh.read() -else: - with open("README.md", "r", encoding="utf-8") as fh: - long_description = fh.read() +with open("README.md", "r", encoding="utf-8") as fh: + long_description = fh.read() setup( name="apimatic-core",