Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
Fix CI for python 3.6 (#541)
Browse files Browse the repository at this point in the history
* Partially revert "Drop support for python 3.6"

bump version and add Python 3.9 trove classifier

* update locale
  • Loading branch information
RuRo committed May 17, 2021
1 parent f710d32 commit cf29c32
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 7.0.0rc
current_version = 6.1.1rc
commit = True
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)((?P<release>.*))?
serialize =
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
python-version: [3.7, 3.8, 3.9]
python-version: [3.6, 3.7, 3.8, 3.9]

steps:
- uses: actions/checkout@v2
Expand Down
4 changes: 0 additions & 4 deletions docs/release_notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ Release Notes
Current Development Version
---------------------------

Major Updates

* Support for Python 3.6 has been dropped (#539).


6.1.0 - May 17th, 2021
---------------------------
Expand Down
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from setuptools import setup

# Do not update the version manually - it is managed by `bumpversion`.
version = '7.0.0rc'
version = '6.1.1rc'


requirements = [
Expand All @@ -26,14 +26,15 @@
'Environment :: Console',
'Development Status :: 5 - Production/Stable',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3 :: Only',
'Operating System :: OS Independent',
'License :: OSI Approved :: MIT License',
],
python_requires='>=3.7',
python_requires='>=3.6',
keywords='pydocstyle, PEP 257, pep257, PEP 8, pep8, docstrings',
packages=('pydocstyle',),
package_dir={'': 'src'},
Expand Down
2 changes: 1 addition & 1 deletion src/pydocstyle/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from typing import Any, Iterable, Tuple

# Do not update the version manually - it is managed by `bumpversion`.
__version__ = '7.0.0rc'
__version__ = '6.1.1rc'
log = logging.getLogger(__name__)

#: Regular expression for stripping non-alphanumeric characters
Expand Down
13 changes: 9 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@
# install tox" and then run "tox" from this directory.

[tox]
envlist = {py37,py38,py39}-{tests,install},docs,install,py37-docs
envlist = {py36,py37,py38,py39}-{tests,install},docs,install,py36-docs

[testenv]
download = true
# Make sure reading the UTF-8 from test.py works regardless of the locale used.
# Note, that "en_US" is used here instead of "C" as "C" is not available on mac.
setenv =
LC_ALL=C.UTF-8
LANG=C.UTF-8
LC_ALL=en_US.UTF-8
LANG=en_US.UTF-8
# To pass arguments to py.test, use `tox [options] -- [pytest posargs]`.
commands =
py.test --pep8 --cache-clear -vv src/tests {posargs}
Expand All @@ -36,14 +37,18 @@ deps =
-rrequirements/docs.txt
commands = sphinx-build -b html . _build

[testenv:py37-docs]
[testenv:py36-docs]
changedir = {[testenv:docs]changedir}
deps = {[testenv:docs]deps}
commands = {[testenv:docs]commands}

# There's no way to generate sub-sections in tox.
# The following sections are all references to the `py37-install`.

[testenv:py36-install]
skip_install = {[testenv:install]skip_install}
commands = {[testenv:install]commands}

[testenv:py37-install]
skip_install = {[testenv:install]skip_install}
commands = {[testenv:install]commands}
Expand Down

0 comments on commit cf29c32

Please sign in to comment.