Skip to content

Commit ddb3c50

Browse files
ekampfmvanlonden
authored andcommitted
v3.0 - remove Python 2.x from build (#983)
* Change travis to only compile for p3.6+ * Changed tox to only run Python 3.6+ * Changed library classifiers to reflect support in Python 3.6+ * Changed version to 3.0.0 development In [15]: get_version((3, 0, 0, "alpha", 0)) Out[15]: '3.0.dev20190601212304'
1 parent 0808e8a commit ddb3c50

File tree

4 files changed

+15
-18
lines changed

4 files changed

+15
-18
lines changed

.travis.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
language: python
2-
dist: xenial
3-
4-
python:
5-
- "2.7"
6-
- "3.5"
7-
- "3.6"
8-
- "3.7"
9-
2+
matrix:
3+
include:
4+
- env: TOXENV=py36
5+
python: 3.6
6+
- env: TOXENV=py37
7+
python: 3.7
8+
dist: xenial
9+
sudo: true
10+
- env: TOXENV=pre-commit
11+
python: 3.6
12+
- env: TOXENV=mypy
13+
python: 3.6
1014
install:
1115
- pip install tox tox-travis
1216
script: tox

graphene/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
from .utils.module_loading import lazy_import
4444

4545

46-
VERSION = (2, 1, 7, "final", 0)
46+
VERSION = (3, 0, 0, "alpha", 0)
4747

4848
__version__ = get_version(VERSION)
4949

setup.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,8 @@ def run_tests(self):
7373
"Development Status :: 3 - Alpha",
7474
"Intended Audience :: Developers",
7575
"Topic :: Software Development :: Libraries",
76-
"Programming Language :: Python :: 2",
77-
"Programming Language :: Python :: 2.7",
78-
"Programming Language :: Python :: 3",
79-
"Programming Language :: Python :: 3.5",
8076
"Programming Language :: Python :: 3.6",
8177
"Programming Language :: Python :: 3.7",
82-
"Programming Language :: Python :: Implementation :: PyPy",
8378
],
8479
keywords="api graphql protocol rest relay graphene",
8580
packages=find_packages(exclude=["tests", "tests.*", "examples"]),

tox.ini

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
[tox]
2-
envlist = flake8,py27,py34,py35,py36,py37,pre-commit,pypy,mypy
2+
envlist = flake8,py36,py37,pre-commit,mypy
33
skipsdist = true
44

55
[testenv]
66
deps =
77
.[test]
8-
py{35,36,37}: pytest-asyncio
8+
py{36,37}: pytest-asyncio
99
setenv =
1010
PYTHONPATH = .:{envdir}
1111
commands =
12-
py{27,py}: py.test --cov=graphene graphene examples {posargs}
13-
py{35}: py.test --cov=graphene graphene examples tests_asyncio {posargs}
1412
py{36,37}: py.test --cov=graphene graphene examples tests_asyncio tests_py36 {posargs}
1513

1614
[testenv:pre-commit]

0 commit comments

Comments
 (0)