Skip to content

Commit 0d0cfb0

Browse files
authored
Merge pull request #27 from RazerM/feature/py36plus
2 parents 16e6bfb + d0b8f2c commit 0d0cfb0

File tree

18 files changed

+64
-183
lines changed

18 files changed

+64
-183
lines changed

.appveyor.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,12 @@ os: Visual Studio 2015
44

55
environment:
66
matrix:
7-
- PYTHON: "C:\\Python27"
8-
- PYTHON: "C:\\Python27-x64"
9-
- PYTHON: "C:\\Python34"
10-
- PYTHON: "C:\\Python34-x64"
11-
- PYTHON: "C:\\Python35"
12-
- PYTHON: "C:\\Python35-x64"
137
- PYTHON: "C:\\Python36"
148
- PYTHON: "C:\\Python36-x64"
159
- PYTHON: "C:\\Python37"
1610
- PYTHON: "C:\\Python37-x64"
11+
- PYTHON: "C:\\Python38"
12+
- PYTHON: "C:\\Python38-x64"
1713

1814
build_script:
1915
- "git --no-pager log -n2"

.travis.yml

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,16 @@
11
language: python
2-
sudo: false
3-
dist: trusty
2+
dist: bionic
43

54
matrix:
65
include:
7-
- python: 3.6
6+
- python: 3.8
87
env: CHECK_DOCS=1
9-
- python: 3.6
8+
- python: 3.8
109
env: CHECK_FORMATTING=1
11-
- python: pypy
12-
- python: pypy3.5
13-
- python: 2.7
14-
- python: 3.4
15-
- python: 3.5.0
16-
- python: 3.5.2
10+
- python: pypy3.6-7.2.0
1711
- python: 3.6
1812
- python: 3.7
19-
dist: xenial
20-
sudo: required
21-
- python: 3.8-dev
22-
dist: xenial
23-
sudo: required
13+
- python: 3.8
2414

2515

2616
script:

ci/travis.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ python setup.py sdist --formats=zip
4545
pip install dist/*.zip
4646

4747
if [ "$CHECK_FORMATTING" = "1" ]; then
48-
pip install yapf==${YAPF_VERSION} isort
48+
pip install yapf==${YAPF_VERSION} isort>=5
4949
if ! yapf -rpd setup.py src tests; then
5050
cat <<EOF
5151
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@@ -67,15 +67,15 @@ EOF
6767
# required for isort to order test imports correctly
6868
pip install -Ur test-requirements.txt
6969

70-
if ! isort --recursive --check-only --diff . ; then
70+
if ! isort --check-only --diff . ; then
7171
cat <<EOF
7272
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7373
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7474
7575
Formatting problems were found (listed above). To fix them, run
7676
7777
pip install isort
78-
isort --recursive .
78+
isort .
7979
8080
in your local checkout.
8181

docs/source/conf.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python3
2-
# -*- coding: utf-8 -*-
32
#
43
# Documentation build configuration file, created by
54
# sphinx-quickstart on Sat Jan 21 19:11:14 2017.

docs/source/tutorial.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ is the same as::
1616

1717
even if ``f`` raises an error.
1818

19-
On Python 3.5+, there's also :func:`acapture`::
19+
There's also :func:`acapture`::
2020

2121
result = await outcome.acapture(f, *args, **kwargs)
2222
x = result.unwrap()

newsfragments/27.removal.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Drop support for Python 2.7, 3.4, and 3.5.

setup.cfg

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ universal = 1
44
[isort]
55
multi_line_output = 4
66
skip = ./build, ./docs
7-
not_skip = __init__.py
87
# ci/travis.sh installs outcome normally, so isort assumes it's third party
98
known_first_party = outcome
109

setup.py

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,13 @@
1-
# coding: utf-8
2-
from __future__ import absolute_import, division, print_function
3-
4-
from io import open
5-
61
from setuptools import find_packages, setup
72

83
version = dict()
94

10-
# read _version.py as bytes, otherwise exec will complain about
11-
# 'coding: utf-8', which we want there for the normal Python 2 import
12-
with open('src/outcome/_version.py', 'rb') as fp:
5+
with open('src/outcome/_version.py') as fp:
136
version_mod = fp.read()
147

158
exec(version_mod, version)
169

17-
LONG_DESC = open('README.rst', encoding='utf-8').read()
10+
LONG_DESC = open('README.rst').read()
1811

1912
setup(
2013
name='outcome',
@@ -33,7 +26,7 @@
3326
packages=find_packages('src'),
3427
package_dir={'': 'src'},
3528
install_requires=['attrs>=19.2.0'],
36-
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
29+
python_requires='>=3.6',
3730
keywords='result',
3831
classifiers=[
3932
'Development Status :: 5 - Production/Stable',
@@ -44,10 +37,9 @@
4437
'Operating System :: POSIX :: Linux',
4538
'Operating System :: MacOS :: MacOS X',
4639
'Operating System :: Microsoft :: Windows',
47-
'Programming Language :: Python :: 2.7',
48-
'Programming Language :: Python :: 3.4',
49-
'Programming Language :: Python :: 3.5',
5040
'Programming Language :: Python :: 3.6',
41+
'Programming Language :: Python :: 3.7',
42+
'Programming Language :: Python :: 3.8',
5143
'Programming Language :: Python :: Implementation :: CPython',
5244
'Programming Language :: Python :: Implementation :: PyPy',
5345
],

src/outcome/__init__.py

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,12 @@
1-
# coding: utf-8
21
"""Top-level package for outcome."""
3-
from __future__ import absolute_import, division, print_function
4-
5-
import sys
62

3+
from ._impl import Error, Outcome, Value, acapture, capture
74
from ._util import AlreadyUsedError, fixup_module_metadata
85
from ._version import __version__
96

10-
if sys.version_info >= (3, 5):
11-
from ._async import Error, Outcome, Value, acapture, capture
12-
__all__ = (
13-
'Error', 'Outcome', 'Value', 'acapture', 'capture', 'AlreadyUsedError'
14-
)
15-
else:
16-
from ._sync import Error, Outcome, Value, capture
17-
__all__ = ('Error', 'Outcome', 'Value', 'capture', 'AlreadyUsedError')
7+
__all__ = (
8+
'Error', 'Outcome', 'Value', 'acapture', 'capture', 'AlreadyUsedError'
9+
)
1810

1911
fixup_module_metadata(__name__, globals())
2012
del fixup_module_metadata

src/outcome/_async.py

Lines changed: 0 additions & 68 deletions
This file was deleted.

0 commit comments

Comments
 (0)