Skip to content

Commit 76e62ed

Browse files
committed
Add python3.7
1 parent 06933cd commit 76e62ed

File tree

8 files changed

+24
-24
lines changed

8 files changed

+24
-24
lines changed

.travis.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
language: python
22
dist: trusty
3-
python:
4-
- pypy-5.4.1
5-
- 2.7
6-
- 3.4
7-
- 3.5
8-
- 3.6
3+
matrix:
4+
- python: pypy-5.4.1
5+
- python: 3.7
6+
dist: xenial
7+
sudo: required
8+
- python: 2.7
9+
- python: 3.5
10+
- python: 3.6
911
install:
1012
- pip install -rrequirements-dev.txt coveralls
1113
script:

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ distribution/deployment. That means you can add just ``libsass`` into
2424
your ``setup.py``'s ``install_requires`` list or ``requirements.txt`` file.
2525
Need no Ruby nor Node.js.
2626

27-
It currently supports CPython 2.7, 3.4--3.6, and PyPy 2.3+!
27+
It currently supports CPython 2.7, 3.5--3.7, and PyPy 2.3+!
2828

2929
.. _Sass: https://sass-lang.com/
3030
.. _LibSass: https://github.com/sass/libsass

appveyor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ environment:
22
matrix:
33
- PYTHON: 'C:\Python27'
44
- PYTHON: 'C:\Python27-x64'
5-
- PYTHON: 'C:\Python34'
6-
- PYTHON: 'C:\Python34-x64'
75
- PYTHON: 'C:\Python35'
86
- PYTHON: 'C:\Python35-x64'
97
- PYTHON: 'C:\Python36'
108
- PYTHON: 'C:\Python36-x64'
9+
- PYTHON: 'C:\Python37'
10+
- PYTHON: 'C:\Python37-x64'
1111
matrix:
1212
fast_finish: true
1313
init:

build_manylinux_wheels.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ def main():
2525
os.makedirs('dist', exist_ok=True)
2626
for python in (
2727
'cp27-cp27mu',
28-
'cp34-cp34m',
2928
'cp35-cp35m',
3029
'cp36-cp36m',
30+
'cp37-cp37m',
3131
):
3232
with tempfile.TemporaryDirectory() as work:
3333
pip = '/opt/python/{}/bin/pip'.format(python)

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ distribution/deployment. That means you can add just ``libsass`` into
88
your :file:`setup.py`'s ``install_requires`` list or :file:`requirements.txt`
99
file.
1010

11-
It currently supports CPython 2.6, 2.7, 3.4--3.6, and PyPy 2.3+!
11+
It currently supports CPython 2.6, 2.7, 3.5--3.7, and PyPy 2.3+!
1212

1313
.. _Sass: https://sass-lang.com/
1414
.. _LibSass: https://github.com/sass/libsass

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ def run(self):
273273
]
274274
},
275275
install_requires=['six'],
276-
extras_require={'upload_appveyor_builds': ['twine == 1.5.0']},
276+
extras_require={'upload_appveyor_builds': ['twine == 1.11.0']},
277277
classifiers=[
278278
'Development Status :: 5 - Production/Stable',
279279
'Environment :: Web Environment',
@@ -284,9 +284,9 @@ def run(self):
284284
'Programming Language :: C++',
285285
'Programming Language :: Python :: 2.7',
286286
'Programming Language :: Python :: 3',
287-
'Programming Language :: Python :: 3.4',
288287
'Programming Language :: Python :: 3.5',
289288
'Programming Language :: Python :: 3.6',
289+
'Programming Language :: Python :: 3.7',
290290
'Programming Language :: Python :: Implementation :: CPython',
291291
'Programming Language :: Python :: Implementation :: PyPy',
292292
'Programming Language :: Python :: Implementation :: Stackless',

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = pypy, pypy3, py27, py34, py35, py36
2+
envlist = pypy, pypy3, py27, py35, py36, py37
33

44
[testenv]
55
deps = -rrequirements-dev.txt

upload_appveyor_builds.py

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
# TODO: Upload to GitHub releases
33
# TODO: .pypirc configuration
4-
from __future__ import print_function
5-
64
import argparse
75
import json
86
import os
97
import os.path
108
import shutil
119
import subprocess
10+
from urllib.parse import urljoin
11+
from urllib.request import urlopen
1212

13-
from six.moves.urllib.parse import urljoin
14-
from six.moves.urllib.request import urlopen
1513
from twine.commands import upload
1614

1715

@@ -27,7 +25,7 @@
2725

2826
def ci_builds():
2927
response = urlopen(APPVEYOR_API_BUILDS_URL)
30-
projects = json.loads(response.read().decode('utf-8')) # py3 compat
28+
projects = json.load(response)
3129
response.close()
3230
return projects['builds']
3331

@@ -62,7 +60,7 @@ def read(tag):
6260
def ci_jobs(build):
6361
url = urljoin(APPVEYOR_API_JOBS_URL, build['version'])
6462
response = urlopen(url)
65-
build = json.loads(response.read().decode('utf-8')) # py3 compat
63+
build = json.load(response)
6664
response.close()
6765
return build['build']['jobs']
6866

@@ -71,15 +69,15 @@ def ci_artifacts(job):
7169
url = urljoin(urljoin(APPVEYOR_API_JOB_URL, job['jobId'] + '/'),
7270
'artifacts/')
7371
response = urlopen(url)
74-
files = json.loads(response.read().decode('utf-8')) # py3 compat
72+
files = json.load(response)
7573
response.close()
7674
for file_ in files:
7775
file_['url'] = urljoin(url, file_['fileName'])
7876
return files
7977

8078

8179
def download_artifact(artifact, target_dir, overwrite=False):
82-
print('Downloading {0}...'.format(artifact['fileName']))
80+
print('Downloading {}...'.format(artifact['fileName']))
8381
response = urlopen(artifact['url'])
8482
filename = os.path.basename(artifact['fileName'])
8583
target_path = os.path.join(target_dir, filename)
@@ -123,7 +121,7 @@ def main():
123121
for artifact in artifacts:
124122
dist = download_artifact(artifact, args.dist_dir, args.overwrite)
125123
dists.append(dist)
126-
print('Uploading {0} file(s)...'.format(len(dists)))
124+
print('Uploading {} file(s)...'.format(len(dists)))
127125
upload.main(('-r', 'pypi') + tuple(dists))
128126

129127

0 commit comments

Comments
 (0)