Skip to content

Commit de30a44

Browse files
authored
Merge pull request #147 from beetbox/py3
Drop support for Python <3.6
2 parents c328e81 + c8d769a commit de30a44

File tree

6 files changed

+40
-84
lines changed

6 files changed

+40
-84
lines changed

.github/workflows/build.yml

Lines changed: 29 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,36 @@
11
name: Build
22

33
on:
4-
push:
5-
branches:
6-
- master
7-
pull_request:
8-
branches:
9-
- master
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
1010

1111
jobs:
12-
test:
13-
name: '${{ matrix.os }}: ${{ matrix.tox-env }}'
14-
runs-on: ${{ matrix.os }}
15-
strategy:
16-
matrix:
17-
tox-env: [py27-test, py35-test, py36-test,
18-
py37-test, py38-test, pypy-test]
19-
os: [ubuntu-latest, windows-latest]
12+
test:
13+
name: '${{ matrix.os }}: ${{ matrix.python-version }}'
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
matrix:
17+
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11-dev']
18+
os: [ubuntu-latest, windows-latest]
2019

21-
# Only test on a couple of versions on Windows.
22-
exclude:
23-
- os: windows-latest
24-
tox-env: py35-test
25-
- os: windows-latest
26-
tox-env: py36-test
27-
- os: windows-latest
28-
tox-env: py37-test
29-
- os: windows-latest
30-
tox-env: pypy-test
20+
steps:
21+
- uses: actions/checkout@v3
22+
- name: Set up Python ${{ matrix.python-version }}
23+
uses: actions/setup-python@v4
24+
with:
25+
python-version: ${{ matrix.python-version }}
26+
- name: Install Tox
27+
run: pip install tox
28+
- name: Tox
29+
run: tox -e py-test
3130

32-
# Python interpreter versions. :/
33-
include:
34-
- tox-env: py27-test
35-
python: 2.7
36-
- tox-env: py35-test
37-
python: 3.5
38-
- tox-env: py36-test
39-
python: 3.6
40-
- tox-env: py37-test
41-
python: 3.7
42-
- tox-env: py38-test
43-
python: 3.8
44-
- tox-env: pypy-test
45-
python: pypy3
46-
47-
steps:
48-
- uses: actions/checkout@v2
49-
- name: Set up Python ${{ matrix.python }}
50-
uses: actions/setup-python@v2
51-
with:
52-
python-version: ${{ matrix.python }}
53-
- name: Install Tox
54-
run: pip install tox
55-
- name: Tox
56-
run: tox -e ${{ matrix.tox-env }}
57-
58-
style:
59-
name: Style
60-
runs-on: ubuntu-latest
61-
steps:
62-
- uses: actions/checkout@v2
63-
- uses: TrueBrain/actions-flake8@master
31+
style:
32+
name: Style
33+
runs-on: ubuntu-latest
34+
steps:
35+
- uses: actions/checkout@v2
36+
- uses: TrueBrain/actions-flake8@master

confuse/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
from __future__ import division, absolute_import, print_function
55

6-
__version__ = '1.7.0'
6+
__version__ = '2.0.0'
77

88
from .exceptions import * # NOQA
99
from .util import * # NOQA

pyproject.toml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,13 @@ requires = [
1111
"pyyaml"
1212
]
1313
description-file = "README.rst"
14-
requires-python = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4"
14+
requires-python = ">=3.6, <4"
1515
classifiers = [
1616
'Intended Audience :: Developers',
1717
'License :: OSI Approved :: MIT License',
18-
'Programming Language :: Python :: 2',
19-
'Programming Language :: Python :: 2.7',
20-
'Programming Language :: Python :: 3',
21-
'Programming Language :: Python :: 3.4',
22-
'Programming Language :: Python :: 3.5',
2318
'Programming Language :: Python :: 3.6',
2419
'Programming Language :: Python :: 3.7',
2520
'Programming Language :: Python :: 3.8',
2621
'Programming Language :: Python :: 3.9',
2722
'Programming Language :: Python :: 3.10',
2823
]
29-
30-
[tool.flit.metadata.requires-extra]
31-
test = [
32-
"pathlib; python_version == '2.7'"
33-
]

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ logging-clear-handlers=1
44
eval-attr="!=slow"
55

66
[flake8]
7-
min-version=2.7
7+
min-version=3.6
88
# Default pyflakes errors we ignore:
99
# - E241: missing whitespace after ',' (used to align visually)
1010
# - E221: multiple spaces before operator (used to align visually)

test/test_paths.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,9 @@ class PrimaryConfigDirTest(FakeSystem):
172172
def join(self, *args):
173173
return self.os_path.normpath(self.os_path.join(*args))
174174

175-
def makedirs(self, path, *args):
175+
def makedirs(self, path, *args, **kwargs):
176176
os.path, os_path = self.os_path, os.path
177-
self._makedirs(path, *args)
177+
self._makedirs(path, *args, **kwargs)
178178
os.path = os_path
179179

180180
def setUp(self):

tox.ini

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,15 @@
44
# and then run "tox" from this directory.
55

66
[tox]
7-
envlist = py{27,34,35,36,37,38}-test, py27-flake8, docs
7+
envlist = py{36,37,38}-test, py38-flake8, docs
88
isolated_build = True
99

1010
[tox:.package]
1111
basepython = python3
1212

1313
[_test]
1414
deps =
15-
coverage
16-
nose
17-
nose-show-skipped
15+
nose2[coverage_plugin]
1816
pyyaml
1917
pathlib
2018

@@ -27,21 +25,16 @@ deps =
2725
files = example confuse test docs
2826

2927
[testenv]
30-
passenv =
31-
NOSE_SHOW_SKIPPED # Undocumented feature of nose-show-skipped.
3228
deps =
3329
{test,cov}: {[_test]deps}
34-
py{27,34,36}-flake8: {[_flake8]deps}
30+
py{36,37,38}-flake8: {[_flake8]deps}
3531
commands =
36-
cov: nosetests --with-coverage {posargs}
37-
test: nosetests {posargs}
38-
py27-flake8: flake8 --min-version 2.7 {posargs} {[_flake8]files}
39-
py34-flake8: flake8 --min-version 3.4 {posargs} {[_flake8]files}
32+
cov: nose2 --with-coverage {posargs}
33+
test: nose2 {posargs}
4034
py36-flake8: flake8 --min-version 3.6 {posargs} {[_flake8]files}
4135

4236
[testenv:docs]
43-
basepython = python2.7
44-
deps =
37+
deps =
4538
sphinx
4639
sphinx-rtd-theme
4740
commands = sphinx-build -W -q -b html docs {envtmpdir}/html {posargs}

0 commit comments

Comments
 (0)