Browse Source

Drop Python versions that are unsupported by core team

Also fix combinatorial explosion of test envs in tox.ini.
pull/378/head
Hynek Schlawack 4 months ago
parent
commit
fd03aeb906
  1. 9
      .github/workflows/ci.yml
  2. 6
      README.rst
  3. 9
      setup.py
  4. 7
      tox.ini

9
.github/workflows/ci.yml

@ -67,12 +67,6 @@ jobs:
- name: Windows
runs-on: windows-latest
python:
- name: CPython 2.7
tox: py27
action: 2.7
- name: CPython 3.5
tox: py35
action: 3.5
- name: CPython 3.7
tox: py37
action: 3.7
@ -85,9 +79,6 @@ jobs:
- name: CPython 3.10
tox: py310
action: '3.10'
- name: PyPy 2.7
tox: pypy27
action: pypy-2.7
- name: PyPy 3.7
tox: pypy37
action: pypy-3.7

6
README.rst

@ -36,9 +36,9 @@ Install from PyPI::
.. note::
``towncrier``, as a command line tool, works on Python 2.7 and 3.5+ only.
``towncrier``, as a command line tool, works on Python 3.7+ only.
It is usable by projects written in other languages, provided you specify the project version either in the configuration file or on the command line.
For Python 2/3 compatible projects, the version can be discovered automatically.
For Python-compatible projects, the version can be discovered automatically.
In your project root, add a ``towncrier.toml`` or a ``pyproject.toml`` file (if both files exist, the first will take precedence).
You can configure your project in two ways.
@ -75,7 +75,7 @@ Using the above example, your news fragments would be ``src/myproject/newsfragme
``towncrier`` needs to know what version your project is, and there are three ways you can give it:
- For Python 2/3 compatible projects, a ``__version__`` in the top level package.
- For Python-compatible projects, a ``__version__`` in the top level package.
This can be either a string literal, a tuple, or an `Incremental <https://github.com/hawkowl/incremental>`_ version.
- Manually passing ``--version=<myversionhere>`` when interacting with ``towncrier``.

9
setup.py

@ -29,26 +29,23 @@ setup(
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
],
use_incremental=True,
python_requires=">=3.7",
install_requires=[
"click",
"click-default-group",
"incremental",
"jinja2",
"setuptools",
"toml; python_version < '3.6'",
"tomli; python_version >= '3.6'",
"tomli",
],
extras_require={"dev": ["packaging"]},
package_dir={"": "src"},

7
tox.ini

@ -1,5 +1,5 @@
[tox]
envlist = cov-erase, flake8, {pypy27,pypy37,pypy38,py27,py35,py36,py37,py38,py39,py310}-{tests,flake8,check-manifest,check-newsfragment}, cov-report
envlist = cov-erase, flake8, {pypy37,pypy38,py37,py38,py39,py310}-tests, flake8, check-manifest, check-newsfragment, cov-report
isolated_build=true
skip_missing_envs = true
@ -14,6 +14,11 @@ commands =
commands =
python -m towncrier.check
[testenv:check-manifest]
deps = check-manifest
skip_install = true
commands = check-manifest
[testenv]
deps =
Twisted

Loading…
Cancel
Save