Skip to content

Commit

Permalink
Drop support for Python 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
jwodder committed Oct 16, 2022
1 parent c36c2c1 commit f2bdf77
Show file tree
Hide file tree
Showing 14 changed files with 21 additions and 30 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/install-git-url.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,13 @@ jobs:
- ubuntu-latest
- windows-latest
python-version:
- '3.6'
- '3.7'
- '3.8'
- '3.9'
- '3.10'
- 'pypy-3.6'
- 'pypy-3.7'
- 'pypy-3.8'
- 'pypy-3.9'
exclude:
- os: macos-latest
python-version: 'pypy-3.6'
steps:
- name: Check out repository
uses: actions/checkout@v3
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/install-zip-url.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,13 @@ jobs:
- ubuntu-latest
- windows-latest
python-version:
- '3.6'
- '3.7'
- '3.8'
- '3.9'
- '3.10'
- 'pypy-3.6'
- 'pypy-3.7'
- 'pypy-3.8'
- 'pypy-3.9'
exclude:
- os: macos-latest
python-version: 'pypy-3.6'
steps:
- name: Check out repository
uses: actions/checkout@v3
Expand Down
9 changes: 2 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,29 +21,24 @@ jobs:
- ubuntu-latest
- windows-latest
python-version:
- '3.6'
- '3.7'
- '3.8'
- '3.9'
- '3.10'
- 'pypy-3.6'
- 'pypy-3.7'
- 'pypy-3.8'
- 'pypy-3.9'
toxenv: [py]
include:
- python-version: '3.6'
- python-version: '3.7'
toxenv: lint
os: ubuntu-latest
- python-version: '3.6'
- python-version: '3.7'
toxenv: typing
os: ubuntu-latest
- python-version: '3.7'
toxenv: py-oldsetup
os: ubuntu-latest
exclude:
- os: macos-latest
python-version: 'pypy-3.6'
steps:
- name: Check out repository
uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tools/minimum-vcs/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.6-buster
FROM python:3.7-buster
RUN set -ex; \
cd tmp; \
wget http://snapshot.debian.org/archive/debian/20121102T092448Z/pool/main/g/git/git-man_1.8.0-1_all.deb; \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tools/no-vcs/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.6-slim
FROM python:3.7-slim
RUN set -ex; \
pip install --upgrade pip wheel; \
pip install --upgrade --upgrade-strategy=eager tox
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
v2.1.0 (in development)
-----------------------
- Drop support for Python 3.6

v2.0.1 (2022-08-01)
-------------------
- Don't run the `onbuild` step under setuptools' upcoming PEP 660 editable mode
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ calculation.

Installation & Setup
====================
``versioningit`` requires Python 3.6 or higher. Just use `pip
``versioningit`` requires Python 3.7 or higher. Just use `pip
<https://pip.pypa.io>`_ for Python 3 (You have pip, right?) to install
``versioningit`` and its dependencies::

Expand Down
5 changes: 5 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
Changelog
=========

v2.1.0 (in development)
-----------------------
- Drop support for Python 3.6


v2.0.1 (2022-08-01)
-------------------
- Don't run the ``onbuild`` step under setuptools' upcoming PEP 660 editable
Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ calculation.

Installation & Setup
====================
``versioningit`` requires Python 3.6 or higher. Just use `pip
``versioningit`` requires Python 3.7 or higher. Just use `pip
<https://pip.pypa.io>`_ for Python 3 (You have pip, right?) to install
``versioningit`` and its dependencies::

Expand Down
4 changes: 1 addition & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ classifiers =
Development Status :: 5 - Production/Stable
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Expand All @@ -48,9 +47,8 @@ packages = find:
package_dir =
=src
include_package_data = True
python_requires = >=3.6
python_requires = >=3.7
install_requires =
dataclasses; python_version < "3.7"
importlib-metadata >= 3.6; python_version < "3.10"
packaging >= 17.1
tomli >= 1.2, < 3.0
Expand Down
2 changes: 1 addition & 1 deletion src/versioningit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<https://versioningit.rtfd.io> for more information.
"""

__version__ = "2.0.1"
__version__ = "2.1.0.dev1"
__author__ = "John Thorvald Wodder II"
__author_email__ = "[email protected]"
__license__ = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion src/versioningit/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def runcmd(*args: Union[str, Path], **kwargs: Any) -> subprocess.CompletedProces

def readcmd(*args: Union[str, Path], **kwargs: Any) -> str:
"""Run a command, capturing & returning its stdout"""
s = runcmd(*args, stdout=subprocess.PIPE, universal_newlines=True, **kwargs).stdout
s = runcmd(*args, stdout=subprocess.PIPE, text=True, **kwargs).stdout
assert isinstance(s, str)
return s.strip()

Expand Down
4 changes: 2 additions & 2 deletions test/test_end2end.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def test_end2end_error(tmp_path: Path, repozip: Path, details: ErrorDetails) ->
[sys.executable, "-m", "build", "--no-isolation", str(tmp_path)],
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
universal_newlines=True,
text=True,
)
assert r.returncode != 0
out = r.stdout
Expand All @@ -254,7 +254,7 @@ def test_end2end_version_not_found(tmp_path: Path, zipname: str) -> None:
[sys.executable, "-m", "build", "--no-isolation", str(tmp_path)],
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
universal_newlines=True,
text=True,
)
assert r.returncode != 0
out = r.stdout
Expand Down
3 changes: 1 addition & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = lint,typing,py36,py37,py38,py39,py310,pypy3,py-oldsetup
envlist = lint,typing,py37,py38,py39,py310,pypy3,py-oldsetup
skip_missing_interpreters = True
isolated_build = True
minversion = 3.3.0
Expand Down Expand Up @@ -43,7 +43,6 @@ commands =
[testenv:typing]
deps =
mypy~=0.900
types-dataclasses; python_version < "3.7"
types-setuptools
{[testenv]deps}
commands =
Expand Down

0 comments on commit f2bdf77

Please sign in to comment.