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

Commit cf29c32

Browse files
authored
Fix CI for python 3.6 (#541)
* Partially revert "Drop support for python 3.6" bump version and add Python 3.9 trove classifier * update locale
1 parent f710d32 commit cf29c32

File tree

6 files changed

+15
-13
lines changed

6 files changed

+15
-13
lines changed

.bumpversion.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 7.0.0rc
2+
current_version = 6.1.1rc
33
commit = True
44
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)((?P<release>.*))?
55
serialize =

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
strategy:
99
matrix:
1010
os: [macos-latest, ubuntu-latest, windows-latest]
11-
python-version: [3.7, 3.8, 3.9]
11+
python-version: [3.6, 3.7, 3.8, 3.9]
1212

1313
steps:
1414
- uses: actions/checkout@v2

docs/release_notes.rst

-4
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ Release Notes
88
Current Development Version
99
---------------------------
1010

11-
Major Updates
12-
13-
* Support for Python 3.6 has been dropped (#539).
14-
1511

1612
6.1.0 - May 17th, 2021
1713
---------------------------

setup.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from setuptools import setup
22

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

66

77
requirements = [
@@ -26,14 +26,15 @@
2626
'Environment :: Console',
2727
'Development Status :: 5 - Production/Stable',
2828
'Programming Language :: Python :: 3',
29+
'Programming Language :: Python :: 3.6',
2930
'Programming Language :: Python :: 3.7',
3031
'Programming Language :: Python :: 3.8',
3132
'Programming Language :: Python :: 3.9',
3233
'Programming Language :: Python :: 3 :: Only',
3334
'Operating System :: OS Independent',
3435
'License :: OSI Approved :: MIT License',
3536
],
36-
python_requires='>=3.7',
37+
python_requires='>=3.6',
3738
keywords='pydocstyle, PEP 257, pep257, PEP 8, pep8, docstrings',
3839
packages=('pydocstyle',),
3940
package_dir={'': 'src'},

src/pydocstyle/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from typing import Any, Iterable, Tuple
77

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

1212
#: Regular expression for stripping non-alphanumeric characters

tox.ini

+9-4
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@
44
# install tox" and then run "tox" from this directory.
55

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

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

39-
[testenv:py37-docs]
40+
[testenv:py36-docs]
4041
changedir = {[testenv:docs]changedir}
4142
deps = {[testenv:docs]deps}
4243
commands = {[testenv:docs]commands}
4344

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

48+
[testenv:py36-install]
49+
skip_install = {[testenv:install]skip_install}
50+
commands = {[testenv:install]commands}
51+
4752
[testenv:py37-install]
4853
skip_install = {[testenv:install]skip_install}
4954
commands = {[testenv:install]commands}

0 commit comments

Comments
 (0)