Skip to content

Commit fdffae1

Browse files
authored
Merge pull request #437 from jdufresne/py3
Make twine Python 3 only
2 parents f3c1523 + 44e9eb6 commit fdffae1

27 files changed

+40
-147
lines changed

.travis.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,7 @@ matrix:
3030
env:
3131
TOXENV: docs
3232
- python: 3.7
33-
- python: 2.7
34-
- python: pypy3.5-6.0
3533
- python: 3.6
36-
- python: 3.5
37-
- python: 3.4
38-
- python: pypy2.7-6.0
3934

4035
install:
4136
- pip install tox codecov

docs/changelog.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
=========
44
Changelog
55
=========
6+
* :feature:`437`: Twine now requires Python 3.6 or later.
67
* :bug:`491` Require requests 2.20 or later to avoid reported security
78
vulnerabilities in earlier releases.
89
* :release:`1.15.0 <2019-09-17>`

docs/conf.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
#
31
# twine documentation build configuration file, created by
42
# sphinx-quickstart on Tue Aug 13 11:51:54 2013.
53
#

docs/contributing.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,12 @@ Testing
6666
^^^^^^^
6767

6868
Tests with twine are run using `tox`_, and tested against the following Python
69-
versions: 2.7, 3.4, 3,5, and 3.6. To run these tests locally, you will need to
70-
have these versions of Python installed on your machine.
69+
versions: 3.6 and 3.7. To run these tests locally, you will need to have these
70+
versions of Python installed on your machine.
7171

72-
Either use ``tox`` to build against all supported Python versions (if
73-
you have them installed) or use ``tox -e py{version}`` to test against
74-
a specific version, e.g., ``tox -e py27`` or ``tox -e py34``.
72+
Either use ``tox`` to build against all supported Python versions (if you have
73+
them installed) or use ``tox -e py{version}`` to test against a specific
74+
version, e.g., ``tox -e py36`` or ``tox -e py37``.
7575

7676
Also, always run ``tox -e lint`` before submitting a pull request.
7777

setup.cfg

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
[bdist_wheel]
2-
universal = 1
3-
41
[check-manifest]
52
ignore =
63
.travis.yml

setup.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,11 @@
4444
"Operating System :: POSIX :: Linux",
4545
"Operating System :: Microsoft :: Windows",
4646
"Programming Language :: Python",
47-
"Programming Language :: Python :: 2",
48-
"Programming Language :: Python :: 2.7",
4947
"Programming Language :: Python :: 3",
50-
"Programming Language :: Python :: 3.4",
51-
"Programming Language :: Python :: 3.5",
48+
"Programming Language :: Python :: 3 :: Only",
5249
"Programming Language :: Python :: 3.6",
5350
"Programming Language :: Python :: 3.7",
5451
"Programming Language :: Python :: Implementation :: CPython",
55-
"Programming Language :: Python :: Implementation :: PyPy",
5652
],
5753

5854
packages=["twine", "twine.commands"],
@@ -68,7 +64,7 @@
6864
],
6965
},
7066

71-
python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*",
67+
python_requires=">=3.6",
7268
install_requires=[
7369
"pkginfo >= 1.4.2",
7470
"readme_renderer >= 21.0",
@@ -78,9 +74,6 @@
7874
"tqdm >= 4.14",
7975
],
8076
extras_require={
81-
'with-blake2': [
82-
'pyblake2; python_version<"3.6" and platform_python_implementation=="CPython"',
83-
],
8477
'keyring': [
8578
'keyring',
8679
],

tests/test_check.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-
from __future__ import unicode_literals
15-
1614
import pretend
1715

1816
from twine.commands import check

tests/test_cli.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-
from __future__ import absolute_import, division, print_function
15-
from __future__ import unicode_literals
16-
1714
import pretend
1815
import pytest
1916

tests/test_package.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-
from __future__ import unicode_literals
15-
import platform
1614
from twine import package, exceptions
1715

1816
import pretend
@@ -214,12 +212,6 @@ def test_metadata_dictionary(gpg_signature):
214212
'b657a4148d05bd0098c1d6d8cc4e14e766dbe93c3a5ab6723b969da27a87bac0',
215213
)
216214

217-
if platform.python_implementation().lower() == 'pypy':
218-
# pyblake2 refuses to install on PyPy
219-
TWINE_1_5_0_WHEEL_HEXDIGEST = TWINE_1_5_0_WHEEL_HEXDIGEST._replace(
220-
blake2=None,
221-
)
222-
223215

224216
def test_hash_manager():
225217
"""Verify our HashManager works."""

tests/test_settings.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
15-
from __future__ import unicode_literals
1615
import os.path
1716
import textwrap
1817

0 commit comments

Comments
 (0)