Skip to content

Commit

Permalink
Merge pull request #418 from zestsoftware/reinout-drop-37
Browse files Browse the repository at this point in the history
Drop python 3.7
  • Loading branch information
mauritsvanrees committed Jul 12, 2023
2 parents 9bc6d16 + 404b485 commit e605d81
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 14 deletions.
1 change: 0 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ jobs:
matrix:
config:
# [Python version, tox env]
- ["3.7", "py37"]
- ["3.8", "py38"]
- ["3.9", "py39"]
- ["3.10", "py310"]
Expand Down
8 changes: 6 additions & 2 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
Changelog for zest.releaser
===========================

8.0.1 (unreleased)
9.0.0 (unreleased)
------------------

- Changed build system to pypa/build instead of explicitly using setuptools.
- Changed build system to pypa/build instead of explicitly using
setuptools.

- Zest.releaser's settings can now also be placed in ``pyproject.toml``.

- Added pre-commit config for neater code (black, flake8, isort).

- Dropped support for python 3.7. Together with switching to ``build`` and
``pyproject.toml``, this warrants a major version bump.


8.0.0 (2023-05-05)
------------------
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Compatibility / Dependencies
.. image:: https://img.shields.io/pypi/pyversions/zest.releaser? :alt: PyPI - Python Version
.. image:: https://img.shields.io/pypi/implementation/zest.releaser? :alt: PyPI - Implementation

``zest.releaser`` works on Python 3.7+, including PyPy3.
``zest.releaser`` works on Python 3.8+, including PyPy3.
Tested until Python 3.11, but see ``tox.ini`` for the canonical place for that.

To be sure: the packages that you release with ``zest.releaser`` may
Expand Down
2 changes: 1 addition & 1 deletion doc/source/developing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ developing::
Python versions
---------------

The tests currently pass on python 3.7-3.11 and PyPy3.
The tests currently pass on python 3.8-3.11 and PyPy3.


Necessary programs
Expand Down
5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "zest.releaser"
version = "8.0.1.dev0"
version = "9.0.0.dev0"
description = "Software releasing made easy and repeatable"
license = {text = "GPL"}
authors = [
Expand All @@ -21,15 +21,14 @@ dependencies = [
"tomli; python_version<'3.11'",
"setuptools >= 61.0.0", # older versions can't read pyproject.toml configurations
]
requires-python = ">=3.7"
requires-python = ">=3.8"
classifiers = [
"Development Status :: 6 - Mature",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License (GPL)",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
envlist =
py37,py38,py39,py310,py311,pypy3
py38,py39,py310,py311,pypy3

[testenv]
usedevelop = true
Expand Down
6 changes: 1 addition & 5 deletions zest/releaser/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -683,11 +683,7 @@ def _execute_command(command):
"stdout": subprocess.PIPE,
"stderr": subprocess.PIPE,
"env": env,
# With Python 3.7+ we could use the more understandable 'text' alias
# instead of the cryptic 'universal_newlines'.
# They do the same: open a file (stdin/out/err) in text mode
# instead of binary. Core Python is better at knowing which encoding to use.
"universal_newlines": True,
"text": True,
}
process = subprocess.run(command, **process_kwargs)
if process.returncode or show_stderr or "Traceback" in process.stderr:
Expand Down

0 comments on commit e605d81

Please sign in to comment.