Skip to content

Add python3.7 #254

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 16, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
language: python
dist: trusty
python:
- pypy-5.4.1
- 2.7
- 3.4
- 3.5
- 3.6
matrix:
include:
- python: pypy-5.4.1
- python: 3.7
dist: xenial
sudo: required
- python: 2.7
- python: 3.5
- python: 3.6
install:
- pip install -rrequirements-dev.txt coveralls
script:
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ distribution/deployment. That means you can add just ``libsass`` into
your ``setup.py``'s ``install_requires`` list or ``requirements.txt`` file.
Need no Ruby nor Node.js.

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

.. _Sass: https://sass-lang.com/
.. _LibSass: https://github.com/sass/libsass
Expand Down
4 changes: 2 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ environment:
matrix:
- PYTHON: 'C:\Python27'
- PYTHON: 'C:\Python27-x64'
- PYTHON: 'C:\Python34'
- PYTHON: 'C:\Python34-x64'
- PYTHON: 'C:\Python35'
- PYTHON: 'C:\Python35-x64'
- PYTHON: 'C:\Python36'
- PYTHON: 'C:\Python36-x64'
- PYTHON: 'C:\Python37'
- PYTHON: 'C:\Python37-x64'
matrix:
fast_finish: true
init:
Expand Down
2 changes: 1 addition & 1 deletion build_manylinux_wheels.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ def main():
os.makedirs('dist', exist_ok=True)
for python in (
'cp27-cp27mu',
'cp34-cp34m',
'cp35-cp35m',
'cp36-cp36m',
'cp37-cp37m',
):
with tempfile.TemporaryDirectory() as work:
pip = '/opt/python/{}/bin/pip'.format(python)
Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ distribution/deployment. That means you can add just ``libsass`` into
your :file:`setup.py`'s ``install_requires`` list or :file:`requirements.txt`
file.

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

.. _Sass: https://sass-lang.com/
.. _LibSass: https://github.com/sass/libsass
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def run(self):
]
},
install_requires=['six'],
extras_require={'upload_appveyor_builds': ['twine == 1.5.0']},
extras_require={'upload_appveyor_builds': ['twine == 1.11.0']},
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
Expand All @@ -284,9 +284,9 @@ def run(self):
'Programming Language :: C++',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Programming Language :: Python :: Implementation :: Stackless',
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = pypy, pypy3, py27, py34, py35, py36
envlist = pypy, pypy3, py27, py35, py36, py37

[testenv]
deps = -rrequirements-dev.txt
Expand Down
18 changes: 8 additions & 10 deletions upload_appveyor_builds.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# TODO: Upload to GitHub releases
# TODO: .pypirc configuration
from __future__ import print_function

import argparse
import json
import os
import os.path
import shutil
import subprocess
from urllib.parse import urljoin
from urllib.request import urlopen

from six.moves.urllib.parse import urljoin
from six.moves.urllib.request import urlopen
from twine.commands import upload


Expand All @@ -27,7 +25,7 @@

def ci_builds():
response = urlopen(APPVEYOR_API_BUILDS_URL)
projects = json.loads(response.read().decode('utf-8')) # py3 compat
projects = json.load(response)
response.close()
return projects['builds']

Expand Down Expand Up @@ -62,7 +60,7 @@ def read(tag):
def ci_jobs(build):
url = urljoin(APPVEYOR_API_JOBS_URL, build['version'])
response = urlopen(url)
build = json.loads(response.read().decode('utf-8')) # py3 compat
build = json.load(response)
response.close()
return build['build']['jobs']

Expand All @@ -71,15 +69,15 @@ def ci_artifacts(job):
url = urljoin(urljoin(APPVEYOR_API_JOB_URL, job['jobId'] + '/'),
'artifacts/')
response = urlopen(url)
files = json.loads(response.read().decode('utf-8')) # py3 compat
files = json.load(response)
response.close()
for file_ in files:
file_['url'] = urljoin(url, file_['fileName'])
return files


def download_artifact(artifact, target_dir, overwrite=False):
print('Downloading {0}...'.format(artifact['fileName']))
print('Downloading {}...'.format(artifact['fileName']))
response = urlopen(artifact['url'])
filename = os.path.basename(artifact['fileName'])
target_path = os.path.join(target_dir, filename)
Expand Down Expand Up @@ -123,7 +121,7 @@ def main():
for artifact in artifacts:
dist = download_artifact(artifact, args.dist_dir, args.overwrite)
dists.append(dist)
print('Uploading {0} file(s)...'.format(len(dists)))
print('Uploading {} file(s)...'.format(len(dists)))
upload.main(('-r', 'pypi') + tuple(dists))


Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy