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

Commit 2837d12

Browse files
committed
updates for python 3.7
1 parent 6b96751 commit 2837d12

6 files changed

Lines changed: 25 additions & 19 deletions

File tree

.travis.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ sudo: required
22
dist: xenial
33
language: python
44

5-
python: 3.6
65
install: true
76

87
git:
@@ -31,13 +30,21 @@ jobs:
3130
- pip install tox-travis
3231
script: tox -e flake8
3332
- stage: tests
34-
name: "Unit Tests"
33+
name: "Unit Tests Python 3.6"
3534
python: 3.6
3635
before_script:
3736
- sudo apt-get update
3837
- sudo apt-get install libcurl4-openssl-dev
3938
- pip install tox-travis
40-
script: tox
39+
script: tox -e py36
40+
- stage: tests
41+
name: "Unit Tests Python 3.7"
42+
python: 3.7
43+
before_script:
44+
- sudo apt-get update
45+
- sudo apt-get install libcurl4-openssl-dev
46+
- pip install tox-travis
47+
script: tox -e py37
4148
- stage: tests
4249
name: "Documentation Tests"
4350
python: 3.6

Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
FROM python:3.6-alpine3.8 as BUILD
1+
FROM python:3.7-alpine3.9 as BUILD
22

33
RUN apk add --update \
4-
&& apk add --no-cache build-base curl-dev linux-headers bash git\
5-
&& apk add --no-cache libressl-dev libffi-dev\
4+
&& apk add --no-cache build-base curl-dev linux-headers bash git musl-dev\
5+
&& apk add --no-cache libressl-dev libffi-dev autoconf bzip2-dev xz-dev\
66
&& rm -rf /var/cache/apk/*
77

88
COPY requirements.txt /root/beacon/requirements.txt
@@ -13,15 +13,15 @@ RUN pip install --upgrade pip && \
1313
pip install -r /root/beacon/requirements.txt && \
1414
pip install /root/beacon
1515

16-
FROM python:3.6-alpine3.8
16+
FROM python:3.7-alpine3.9
1717

1818
RUN apk add --no-cache --update bash
1919

2020
LABEL maintainer "CSC Developers"
21-
LABEL org.label-schema.schema-version="1.3"
21+
LABEL org.label-schema.schema-version="1.0"
2222
LABEL org.label-schema.vcs-url="https://github.com/CSCFI/beacon-python"
2323

24-
COPY --from=BUILD usr/local/lib/python3.6/ usr/local/lib/python3.6/
24+
COPY --from=BUILD usr/local/lib/python3.7/ usr/local/lib/python3.7/
2525

2626
COPY --from=BUILD /usr/local/bin/gunicorn /usr/local/bin/
2727

readthedocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build:
44
image: latest
55
requirements_file: docs/docs.txt
66
python:
7-
version: 3.6
7+
version: 3.7
88
use_system_site_packages: true
99
setup_py_install: true
1010
extra_requirements:

requirements.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
aiohttp
22
aiohttp_cors
33
asyncpg
4-
jsonschema==3.0.1
4+
jsonschema==3.0.2
55
Cython
66
numpy
7-
cyvcf2==0.10.1
7+
cyvcf2==0.10.1; python_version < '3.7'
8+
cyvcf2; python_version >= '3.7'
89
tox
910
uvloop
1011
aiocache

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,10 @@
4343
'License :: OSI Approved :: Apache Software License',
4444

4545
'Programming Language :: Python :: 3.6',
46+
'Programming Language :: Python :: 3.7',
4647
],
4748
install_requires=['aiohttp', 'asyncpg', 'authlib',
48-
'jsonschema==3.0.1', 'gunicorn'],
49+
'jsonschema==3.0.2', 'gunicorn'],
4950
extras_require={
5051
'test': ['coverage', 'pytest', 'pytest-cov',
5152
'coveralls', 'testfixtures', 'tox',

tox.ini

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py{36},flake8,docs,bandit
2+
envlist = py{36,37},flake8,docs,bandit
33
skipsdist = True
44

55
[flake8]
@@ -8,22 +8,19 @@ max-line-length = 160
88
max-complexity = 15
99

1010
[testenv:docs]
11-
basepython = python3.6
1211
; skip_install = true
1312
deps =
1413
.[docs]
1514
commands = sphinx-build -W -c docs/ -b html docs/ docs/_build/html
1615
sphinx-build -W -blinkcheck -d docs/_build/doctrees docs/ docs/_build/html
1716

1817
[testenv:bandit]
19-
basepython = python3.6
2018
skip_install = true
2119
deps =
2220
bandit
2321
commands = bandit -r beacon_api/ -c .bandit.yml
2422

2523
[testenv:flake8]
26-
basepython = python3.6
2724
skip_install = true
2825
deps =
2926
pydocstyle==3.0.0
@@ -32,7 +29,6 @@ deps =
3229
commands = flake8 .
3330

3431
[testenv]
35-
basepython = python3.6
3632
passenv = TRAVIS TRAVIS_*
3733
deps =
3834
.[test]
@@ -44,4 +40,5 @@ commands = py.test -x --cov=beacon_api tests/
4440
[travis]
4541
unignore_outcomes = True
4642
python =
47-
3.6: py36
43+
3.6: py36
44+
3.7: py37

0 commit comments

Comments
 (0)