Skip to content

Commit 1700bd2

Browse files
authored
Merge pull request #86 from unicef/feature/py3.9
py3.9
2 parents 7a3ca5b + 3c06db2 commit 1700bd2

11 files changed

Lines changed: 79 additions & 73 deletions

File tree

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ dist: xenial
22
language: python
33

44
python:
5-
- 3.8
5+
- 3.9
66

77
env:
88
global:

CHANGES

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
Release 1.5
2+
----------------
3+
* python 3.9
4+
5+
16
Release 1.4
27
----------------
38
* added new relic

Pipfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,4 @@ uwsgi = "*"
6666
django-picklefield = "*"
6767

6868
[requires]
69-
python_version = "3.8"
69+
python_version = "3.9"

Pipfile.lock

Lines changed: 55 additions & 55 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG BASE_IMAGE=1.4
1+
ARG BASE_IMAGE=1.5
22

33
FROM unicef/donor-reporting-portal-backend:${BASE_IMAGE}-base
44

docker/Dockerfile.base

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.8.2-alpine3.10
1+
FROM python:3.9.0-alpine3.12
22

33
ARG PIPENV_ARGS
44

@@ -78,15 +78,15 @@ RUN cd /code \
7878
&& pipenv install --verbose --system --deploy --ignore-pipfile $PIPENV_ARGS \
7979
&& sha1sum Pipfile.lock > /CHECKSUM
8080

81-
# need to removes some code not py3.8 compliant
82-
RUN rm -fr /usr/local/lib/python3.8/site-packages/psycopg2/tests/* \
83-
/usr/local/lib/python3.8/site-packages/tornado/test/* \
84-
/usr/local/lib/python3.8/site-packages/pipenv/patched/yaml2/*
81+
# need to removes some code not py3.9 compliant
82+
RUN rm -fr /usr/local/lib/python3.9/site-packages/psycopg2/tests/* \
83+
/usr/local/lib/python3.9/site-packages/tornado/test/* \
84+
/usr/local/lib/python3.9/site-packages/pipenv/patched/yaml2/*
8585

8686
# before compile site-packages
87-
RUN find /usr/local/lib/python3.8/ -name *.pyc | xargs rm -f \
88-
&& python -O -m compileall -fqb /usr/local/lib/python3.8 \
89-
&& find /usr/local/lib/python3.8/ -name *.py | xargs rm -f
87+
RUN find /usr/local/lib/python3.9/ -name *.pyc | xargs rm -f \
88+
&& python -O -m compileall -fqb /usr/local/lib/python3.9 \
89+
&& find /usr/local/lib/python3.9/ -name *.py | xargs rm -f
9090

9191
RUN apk del .fetch-deps .build-deps .build-deps-edge .donor_reporting_portal-build-deps \
9292
&& rm -rf /var/cache/apk/* \

docker/Dockerfile.flat

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.8.2-alpine3.10
1+
FROM python:3.9.0-alpine3.12
22

33
ARG BUILD_DATE
44
ARG PIPENV_ARGS
@@ -78,7 +78,7 @@ RUN pip install pip pipenv --upgrade
7878

7979
RUN set -ex \
8080
ls -al /code \
81-
&& find /usr/local/lib/python3.8/ -name *.pyc | xargs rm -f \
81+
&& find /usr/local/lib/python3.9/ -name *.pyc | xargs rm -f \
8282
&& pipenv install --verbose --system --deploy --ignore-pipfile $PIPENV_ARGS \
8383
&& pip3 install . \
8484
&& rm -fr /code
@@ -132,11 +132,11 @@ RUN rm -rf /var/cache/apk/* \
132132
&& rm -fr /root/.cache/ \
133133
&& rm -fr /usr/include/
134134

135-
RUN find /usr/local/lib/python3.8/ -name *.pyc | xargs rm -f \
135+
RUN find /usr/local/lib/python3.9/ -name *.pyc | xargs rm -f \
136136
&& python -O -m compileall -fqb /usr/local/lib/python3.6
137137

138138
# removes source files
139-
RUN find /usr/local/lib/python3.8/ -name *.py | xargs rm -f
139+
RUN find /usr/local/lib/python3.9/ -name *.py | xargs rm -f
140140

141141
ADD docker/entrypoint.sh /usr/local/bin/docker-entrypoint.sh
142142
ADD docker/wait-for-it.sh /usr/local/bin/wait-for-it.sh

docker/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
DATABASE_URL?=
33
DOCKER_PASS?=
44
DOCKER_USER?=
5-
TARGET?=1.4.0
5+
TARGET?=1.5.0
66
BASE?=$(shell echo "${TARGET}" | sed "s/\([0-9]\)\.\([0-9]\)\.\(.*\)/\1.\2/g" )
77
# below vars are used internally
88
BUILD_OPTIONS?=

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
'Operating System :: POSIX :: Linux',
4040
'Programming Language :: Python :: 3',
4141
'Programming Language :: Python :: 3.8',
42+
'Programming Language :: Python :: 3.9',
4243
'Framework :: Django',
4344
'Framework :: Django :: 3.0',
4445
'Framework :: Flake8',
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
NAME = 'donor-reporting-portal'
2-
VERSION = __version__ = '1.4'
2+
VERSION = __version__ = '1.5'

0 commit comments

Comments
 (0)