Skip to content
This repository was archived by the owner on Jan 26, 2023. It is now read-only.

Commit 4f4c070

Browse files
authored
Merge pull request #126 from arcondello/py37
Add python3.7 support
2 parents 091795d + a0b029a commit 4f4c070

File tree

5 files changed

+69
-12
lines changed

5 files changed

+69
-12
lines changed

.appveyor.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ environment:
2323
PYTHON_VERSION: "2.7.x"
2424
PYTHON_ARCH: "64"
2525

26+
- PYTHON: "C:\\Python34"
27+
PYTHON_VERSION: "3.4.x"
28+
PYTHON_ARCH: "32"
29+
30+
- PYTHON: "C:\\Python34-x64"
31+
PYTHON_VERSION: "3.4.x"
32+
PYTHON_ARCH: "64"
33+
2634
- PYTHON: "C:\\Python35"
2735
PYTHON_VERSION: "3.5.x"
2836
PYTHON_ARCH: "32"
@@ -39,6 +47,14 @@ environment:
3947
PYTHON_VERSION: "3.6.x"
4048
PYTHON_ARCH: "64"
4149

50+
- PYTHON: "C:\\Python37"
51+
PYTHON_VERSION: "3.7.x"
52+
PYTHON_ARCH: "32"
53+
54+
- PYTHON: "C:\\Python37-x64"
55+
PYTHON_VERSION: "3.7.x"
56+
PYTHON_ARCH: "64"
57+
4258
install:
4359
# If there is a newer build queued for the same PR, cancel this one.
4460
# The AppVeyor 'rollout builds' option is supposed to serve the same
@@ -77,7 +93,6 @@ install:
7793
# pip will build them from source using the MSVC compiler matching the
7894
# target Python version and architecture
7995
- "%CMD_IN_ENV% pip install -r python/requirements.txt"
80-
- "%CMD_IN_ENV% pip install cython==0.27"
8196
- "%CMD_IN_ENV% pip install wheel setuptools --upgrade --force"
8297

8398
build_script:

.travis.yml

Lines changed: 32 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,19 +49,43 @@ matrix:
4949
language: generic
5050
before_install:
5151
- brew update
52-
- brew upgrade python
53-
- pip3 install virtualenv
54-
- virtualenv env -p python3
55-
- source env/bin/activate
52+
- brew upgrade pyenv
53+
- pyenv install 2.7.15 -s
54+
- pyenv install 3.4.8 -s
55+
- pyenv install 3.5.5 -s
56+
- pyenv install 3.6.6 -s
57+
- pyenv install 3.7.0 -s
5658
script:
57-
- ./ci/travis/osx-build-wheel.sh
58-
- python setup.py sdist
59+
- eval "$(pyenv init -)"
60+
- pyenv local 2.7.15 3.4.8 3.5.5 3.6.6 3.7.0
61+
- python2.7 -m pip install -r ./python/requirements.txt
62+
- python2.7 -m pip install .
63+
- python2.7 -m unittest tests
64+
- python3.4 -m pip install -r ./python/requirements.txt
65+
- python3.4 -m pip install .
66+
- python3.4 -m unittest tests
67+
- python3.5 -m pip install -r ./python/requirements.txt
68+
- python3.5 -m pip install .
69+
- python3.5 -m unittest tests
70+
- python3.6 -m pip install -r ./python/requirements.txt
71+
- python3.6 -m pip install .
72+
- python3.6 -m unittest tests
73+
- python3.7 -m pip install -r ./python/requirements.txt
74+
- python3.7 -m pip install .
75+
- python3.7 -m unittest tests
5976
after_success:
60-
- pip install twine
77+
- pyenv local 2.7.15 3.4.8 3.5.5 3.6.6 3.7.0
78+
- python2.7 setup.py bdist_wheel
79+
- python3.4 setup.py bdist_wheel
80+
- python3.5 setup.py bdist_wheel
81+
- python3.6 setup.py bdist_wheel
82+
- python3.7 setup.py bdist_wheel
83+
- python3.7 setup.py sdist
6184
deploy:
6285
provider: script
6386
script:
64-
- twine upload --username $TWINE_USERNAME --password $TWINE_PASSWORD --skip-existing wheelhouse/* dist/*
87+
- pip install twine
88+
- twine upload --username $TWINE_USERNAME --password $TWINE_PASSWORD --skip-existing
6589
skip_cleanup: true
6690
on:
6791
tags: true

ci/travis/build-wheels.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ for PYBIN in /opt/python/*/bin; do
1111
continue
1212
fi
1313
"${PYBIN}/pip" install -r /io/python/requirements.txt
14-
"${PYBIN}/pip" install cython==0.27
1514
"${PYBIN}/pip" wheel -e /io/ -w wheelhouse/
1615
done
1716

python/requirements.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
dimod==0.6.10
1+
dimod==0.6.13; python_version>="3.5"
2+
dimod==0.6.10; python_version<="3.4"
3+
cython==0.28.4

setup.py

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,29 @@ def build_extensions(self):
5959

6060
packages = ['dwave_qbsolv']
6161

62+
classifiers = [
63+
'License :: OSI Approved :: Apache Software License',
64+
'Operating System :: OS Independent',
65+
'Programming Language :: Python :: 2',
66+
'Programming Language :: Python :: 2.7',
67+
'Programming Language :: Python :: 3',
68+
'Programming Language :: Python :: 3.4',
69+
'Programming Language :: Python :: 3.5',
70+
'Programming Language :: Python :: 3.6',
71+
'Programming Language :: Python :: 3.7',
72+
]
73+
74+
python_requires = '>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*'
75+
6276
setup(
6377
name='dwave_qbsolv',
6478
version='0.2.7',
6579
packages=packages,
6680
package_dir={'dwave_qbsolv': 'python/dwave_qbsolv'},
6781
install_requires=['dimod>=0.6.10,<0.7.0'],
6882
ext_modules=extensions,
69-
cmdclass={'build_ext': build_ext_compiler_check}
83+
cmdclass={'build_ext': build_ext_compiler_check},
84+
long_description=open('readme.md').read(),
85+
classifiers=classifiers,
86+
python_requires=python_requires
7087
)

0 commit comments

Comments
 (0)