Skip to content

Commit

Permalink
drop compatibility with python3.7 (reached end of life on 2023-06-27)
Browse files Browse the repository at this point in the history
  • Loading branch information
fphammerle committed Sep 5, 2023
1 parent ae377ef commit 4b7cca3
Show file tree
Hide file tree
Showing 5 changed files with 91 additions and 116 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ jobs:
strategy:
matrix:
python-version:
- '3.7'
- '3.8'
- '3.9'
- '3.10'
Expand All @@ -26,7 +25,14 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- run: pip install --upgrade pipenv==2020.8.13
# with pipenv v2023.6.26:
# > $ pipenv run pytest --cov="$(cat *.egg-info/top_level.txt)"
# . --cov-report=term-missing --cov-fail-under=100
# > cat: '*.egg-info/top_level.txt': No such file or directory
# > [...]
# > [...]/coverage/inorout.py:507: CoverageWarning:
# . Module was never imported. (module-not-imported)
- run: pip install --upgrade pipenv==2023.6.18
# by default pipenv picks the latest version in PATH
- run: pipenv install --python "$PYTHON_VERSION" --deploy --dev
env:
Expand Down
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Raise `RuntimeError` instead of `Exception` when libc's `dlinfo` function fails.

### Removed
- Compatibility with `python3.5` & `python3.6` (reached end-of-life)
- Compatibility with `python3.5`, `python3.6` & `python3.7`
(reached end-of-life)

## [1.2.1] - 2021-04-21
### Fixed
Expand Down
22 changes: 7 additions & 15 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,12 @@ pylint = "*"
pytest = "*"
pytest-cov = "*"

# python3.7 compatibility
# > File "[...]/python3.7/site-packages/_pytest/compat.py", line 56, in <module>
# > import importlib_metadata # noqa: F401
importlib-metadata = {markers = "python_version < '3.8'"}
# https://github.com/PyCQA/isort/commit/47cedf3583f338e8ce9c906fc95c9fee6c57404d
isort = "<5.12"
# > File "[...]/python3.7/site-packages/importlib_metadata/__init__.py", line 6, in <module>
# > import zipp
zipp = {markers = "python_version < '3.8'"}

# python3.10 compatibility
# > File "[...]/lib/python3.10/site-packages/mypy/main.py", line 11, in <module>
# > from typing_extensions import Final, NoReturn
# > ModuleNotFoundError: No module named 'typing_extensions'
typing-extensions = {markers = ""}
# python<3.11 compatibility
# > File "[...]/lib/python3.10/site-packages/_pytest/_code/code.py", line 60, in <module>
# > from exceptiongroup import BaseExceptionGroup
# > ModuleNotFoundError: No module named 'exceptiongroup'
Expand All @@ -29,10 +25,6 @@ exceptiongroup = {markers = "python_version < '3.11'"}
# > import tomli as tomllib
# > ModuleNotFoundError: No module named 'tomli'
tomli = {markers = "python_version < '3.11'"}
# > File "[...]/python3.9/site-packages/astroid/decorators.py", line 25, in <module>
# > from typing_extensions import ParamSpec
# > ModuleNotFoundError: No module named 'typing_extensions'
typing-extensions = "*"
# > File "[...]/lib/python3.10/site-packages/astroid/decorators.py", line 16, in <module>
# > import wrapt
# > ModuleNotFoundError: No module named 'wrapt'
Expand All @@ -41,7 +33,7 @@ wrapt = "*"
# > File "[...]/lib/python3.7/site-packages/pylint/lint/parallel.py", line 13, in <module>
# > import dill
# > ModuleNotFoundError: No module named 'dill'
dill = "*"
dill = {markers = "python_version >= '0'"}

[requires]
python_version = "3"
Expand Down
163 changes: 70 additions & 93 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,27 +1,26 @@
import setuptools

with open('README.rst', 'r') as readme:
with open("README.rst", "r") as readme:
LONG_DESCRIPTION = readme.read()

setuptools.setup(
name='dlinfo',
name="dlinfo",
use_scm_version=True,
maintainer='Cloudflight Space',
maintainer_email='[email protected]',
description="Python wrapper for libc\'s dlinfo and dyld_find on Mac",
long_description=LONG_DESCRIPTION,
license="MIT",
url='https://github.com/cloudflightio/python-dlinfo',
url="https://github.com/cloudflightio/python-dlinfo",
packages=setuptools.find_packages(),
python_requires=">=3.7", # >=3.6 for f-strings, <3.7 untested
python_requires=">=3.8", # >=3.6 for f-strings, <3.8 untested
setup_requires=["setuptools_scm"],
tests_require=["pytest"],
classifiers=[
# https://pypi.org/classifiers/
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
# see .github/workflows/python.yml
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
Expand Down

0 comments on commit 4b7cca3

Please sign in to comment.