Skip to content

Commit b406edd

Browse files
Merge pull request #23 from fbouliane/travis-py38-tox
Ubersmith client doesn't package pbr anymore
2 parents cb44b04 + 12ff3f8 commit b406edd

File tree

7 files changed

+86
-22
lines changed

7 files changed

+86
-22
lines changed

.travis.yml

Lines changed: 31 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,39 @@
11
language: python
22

33
python:
4-
- '2.7'
4+
- '3.8'
5+
- '3.7'
6+
- '3.6'
7+
- '3.5'
58
- '3.4'
9+
- '2.7'
610

711
install:
8-
- pip install -r requirements.txt
9-
- pip install -r test-requirements.txt
12+
- pip install tox-travis
13+
14+
script: tox
1015

11-
script:
12-
- nosetests
13-
- flake8
16+
jobs:
17+
include:
18+
- stage: test
19+
name: pep8
20+
python: 3.8
21+
script: tox -e pep8
22+
- name: latest
23+
python: 3.8
24+
script: tox -e latest
1425

15-
deploy:
16-
provider: pypi
17-
user: internaphosting
18-
password:
19-
secure: fZxfMePJQroeiLQb+lmpNiEEMvRONOVt4yTQY8CmemyVMOe4TVZUfsBzCMa7eZkUaFZuHfNaUo/4Jmhn15EruzGhqBLRe5fpuFxFqJqDJ7ZmPMTRBIMKUsRuYrG6vc9YmG8CLfLvxwG8OUoLzND+rz+QwWaFruFeDlkCN3xMpzRHcdopcKlKoKwUJCkPzqEm0qeziTsRNixLbrBHzfr+FY96FDclE2GDywUBCacPzwP+R9QwPKU74NevlD+MazP/bYcZHY8DKDQ2X4L7NSr/8osJswVvCCoOqqqFPsPLaVzhDLU1hvTSW44K3hUSlRmKWzmdfFutkPix4Zrge9JYzTOodV921WgFLSsSPcpwEoRMZM21hoFhO6PThd9ag33z1rUxXzAJxBYfjM5OP+2g6gqWDptyJp8OgdqjzoCKFsXBrINf+vb+Ossdtl2+W1fzBjHlV9D8t6gf7ekJZmTAKzfYcvrRc++gnZwlwmPWrr5qBUSxT9SEqln7L/u4RbHxZdAOzYivPBvrL1ncdwUx9kvzbelr1wolc0aszodRgx8S7aWZ7V4CbuE6LpNkRREJ+EY71MYInpCRO81XabAIEG7T7i11ZkNexxQAe5Mafy/nSw5cGWirIAcLEO7WU3tSd5rteP7hgp28VJ9XfGZPwH9Q1FqiNMpKk+Db6PwplDE=
20-
on:
21-
tags: true
22-
python: 3.4
23-
distributions: sdist bdist_wheel
24-
repo: internap/python-ubersmithclient
26+
- stage: deploy
27+
python: 3.8
28+
script: skip
29+
deploy:
30+
provider: pypi
31+
user: internaphosting
32+
password:
33+
secure: fZxfMePJQroeiLQb+lmpNiEEMvRONOVt4yTQY8CmemyVMOe4TVZUfsBzCMa7eZkUaFZuHfNaUo/4Jmhn15EruzGhqBLRe5fpuFxFqJqDJ7ZmPMTRBIMKUsRuYrG6vc9YmG8CLfLvxwG8OUoLzND+rz+QwWaFruFeDlkCN3xMpzRHcdopcKlKoKwUJCkPzqEm0qeziTsRNixLbrBHzfr+FY96FDclE2GDywUBCacPzwP+R9QwPKU74NevlD+MazP/bYcZHY8DKDQ2X4L7NSr/8osJswVvCCoOqqqFPsPLaVzhDLU1hvTSW44K3hUSlRmKWzmdfFutkPix4Zrge9JYzTOodV921WgFLSsSPcpwEoRMZM21hoFhO6PThd9ag33z1rUxXzAJxBYfjM5OP+2g6gqWDptyJp8OgdqjzoCKFsXBrINf+vb+Ossdtl2+W1fzBjHlV9D8t6gf7ekJZmTAKzfYcvrRc++gnZwlwmPWrr5qBUSxT9SEqln7L/u4RbHxZdAOzYivPBvrL1ncdwUx9kvzbelr1wolc0aszodRgx8S7aWZ7V4CbuE6LpNkRREJ+EY71MYInpCRO81XabAIEG7T7i11ZkNexxQAe5Mafy/nSw5cGWirIAcLEO7WU3tSd5rteP7hgp28VJ9XfGZPwH9Q1FqiNMpKk+Db6PwplDE=
34+
on:
35+
tags: true
36+
distributions: sdist bdist_wheel
37+
repo: internap/python-ubersmithclient
38+
allow_failures:
39+
- name: latest

constraints.txt

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#
2+
# This file is autogenerated by pip-compile
3+
# To update, run:
4+
#
5+
# pip-compile --no-emit-trusted-host --no-index --output-file=constraints.txt setup.py test-requirements.txt
6+
#
7+
certifi==2019.11.28 # via requests
8+
chardet==3.0.4 # via requests
9+
click==7.0 # via pip-tools
10+
entrypoints==0.3 # via flake8
11+
flake8==3.7.9
12+
idna==2.8 # via requests
13+
mccabe==0.6.1 # via flake8
14+
mock==3.0.5
15+
nose==1.3.7
16+
pip-tools==3.9.0
17+
pycodestyle==2.5.0 # via flake8
18+
pyflakes==2.1.1 # via flake8
19+
pyhamcrest==1.9.0
20+
requests==2.21.0
21+
six==1.14.0 # via mock, pip-tools, pyhamcrest
22+
typing==3.7.4.1 # via flake8
23+
urllib3==1.24.3 # via requests
24+
25+
# The following packages are considered to be unsafe in a requirements file:
26+
# setuptools==43.0.0 # via pyhamcrest

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
pbr>=1.8
21
requests

setup.cfg

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ classifier =
1111
Operating System :: POSIX
1212
Programming Language :: Python :: 2.7
1313
Programming Language :: Python :: 3.4
14+
Programming Language :: Python :: 3.5
15+
Programming Language :: Python :: 3.6
16+
Programming Language :: Python :: 3.7
17+
Programming Language :: Python :: 3.8
18+
description-file = README.rst
19+
description-content-type = text/x-rst; charset=UTF-8
1420

1521
[files]
1622
packages =

test-requirements.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
nose==1.2.1
2-
pyhamcrest==1.8.1
3-
mock==1.3.0
1+
nose
2+
pyhamcrest<2.0.0
3+
mock
44
flake8
5+
pip-tools

tox.ini

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,32 @@
11
[tox]
2-
envlist = py34,py27,pep8
2+
envlist = py34,py35,py36,py37,py38,py27,pep8
33

44
[testenv]
55
deps = -r{toxinidir}/test-requirements.txt
6+
install_command = python -m pip install -c constraints.txt {opts} {packages}
67
commands =
78
nosetests
89

10+
[testenv:latest]
11+
deps = -r{toxinidir}/test-requirements.txt
12+
basepython = python3.8
13+
install_command = python -m pip install {opts} {packages}
14+
commands =
15+
nosetests
16+
917
[testenv:pep8]
1018
deps = -r{toxinidir}/test-requirements.txt
1119
commands = flake8 {posargs}
1220

21+
[testenv:bump-dependencies]
22+
basepython = python3.4
23+
skip_install = true
24+
deps =
25+
pip-tools
26+
commands =
27+
pip-compile --upgrade --no-index --no-emit-trusted-host --output-file constraints.txt setup.py test-requirements.txt
28+
29+
1330
[flake8]
1431
show-source = True
1532
max-line-length = 120

ubersmith_client/_http_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def form_encode(data):
2323

2424

2525
def form_encode_without_files(data):
26-
return form_encode({k: v for k, v in data.items() if k is not 'files'})
26+
return form_encode({k: v for k, v in data.items() if k != 'files'})
2727

2828

2929
def _explode_enumerable(k, v):

0 commit comments

Comments
 (0)