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

Commit 2d065e7

Browse files
committed
drop support for python 3.6
1 parent dfdaa92 commit 2d065e7

File tree

7 files changed

+26
-30
lines changed

7 files changed

+26
-30
lines changed

.github/workflows/s2i-build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ jobs:
1818

1919
- name: Install requirements
2020
run: |
21-
wget https://github.com/openshift/source-to-image/releases/download/v1.2.0/source-to-image-v1.2.0-2a579ecd-linux-amd64.tar.gz
22-
tar -xvf source-to-image-v1.2.0-2a579ecd-linux-amd64.tar.gz
21+
wget https://github.com/openshift/source-to-image/releases/download/v1.3.1/source-to-image-v1.3.1-a5a77147-linux-amd64.tar.gz
22+
tar -xvf source-to-image-v1.3.1-a5a77147-linux-amd64.tar.gz
2323
sudo cp s2i /usr/local/bin
2424
- name: Build image
2525
run: |
26-
s2i build . centos/python-36-centos7 cscfi/beacon-python
26+
s2i build . centos/python-38-centos7 cscfi/beacon-python

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Documentation: https://beacon-python.readthedocs.io
1010
### Quick start
1111

1212
`beacon-python` Web Server requires:
13-
* Python 3.6+;
13+
* Python 3.8+;
1414
* running DB [PostgreSQL Server](https://www.postgresql.org/) 9.6+ (recommended 11.6).
1515

1616
```shell

beacon_api/app.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,17 @@ def main():
125125
# sslcontext.load_cert_chain(ssl_certfile, ssl_keyfile)
126126
# sslcontext = ssl.create_default_context(ssl.Purpose.CLIENT_AUTH)
127127
# sslcontext.check_hostname = False
128-
web.run_app(init(), host=os.environ.get("HOST", "0.0.0.0"), port=os.environ.get("PORT", "5050"), shutdown_timeout=0, ssl_context=None) # nosec # nosec
128+
web.run_app(
129+
init(),
130+
host=os.environ.get("HOST", "0.0.0.0"),
131+
port=os.environ.get("PORT", "5050"),
132+
shutdown_timeout=0,
133+
ssl_context=None,
134+
) # nosec # nosec
129135

130136

131137
if __name__ == "__main__":
132-
if sys.version_info < (3, 6):
133-
LOG.error("beacon-python requires python 3.6")
138+
if sys.version_info < (3, 8):
139+
LOG.error("beacon-python requires python 3.8")
134140
sys.exit(1)
135141
main()

docs/instructions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Instructions
33

44
.. note:: In order to run ``beacon-python`` Web Server requirements are as specified below:
55

6-
* Python 3.6+;
6+
* Python 3.8+;
77
* running DB `PostgreSQL Server <https://www.postgresql.org/>`_ 9.6+ (recommended 11.6).
88

99
.. _env-setup:

requirements.txt

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
aiohttp==3.8.1
22
aiohttp-cors==0.7.0
33
asyncpg==0.25.0
4-
jsonschema==3.2.0; python_version < '3.7'
5-
jsonschema==4.3.2; python_version >= '3.7'
4+
jsonschema==4.3.2
65
Cython==0.29.26
7-
cyvcf2==0.10.1; python_version < '3.7'
8-
cyvcf2; python_version >= '3.7'
9-
uvloop==0.14.0; python_version < '3.7'
10-
uvloop==0.16.0; python_version >= '3.7'
6+
cyvcf2==0.30.14
7+
uvloop==0.16.0
118
aiocache==0.11.1
12-
ujson==4.3.0; python_version < '3.7'
13-
ujson==5.1.0; python_version >= '3.7'
9+
ujson==5.1.0
1410
aiomcache==0.6.0
1511
Authlib==0.15.5
1612
gunicorn==20.1.0

setup.py

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,31 +33,26 @@
3333
"Topic :: Internet :: WWW/HTTP :: HTTP Servers",
3434
"Topic :: Scientific/Engineering :: Bio-Informatics",
3535
"License :: OSI Approved :: Apache Software License",
36-
"Programming Language :: Python :: 3.6",
3736
"Programming Language :: Python :: 3.7",
37+
"Programming Language :: Python :: 3.8",
3838
],
3939
install_requires=[
4040
"asyncpg==0.25.0",
4141
"aiohttp==3.8.1",
4242
"Authlib==0.15.5",
4343
"aiohttp-cors==0.7.0",
44-
"jsonschema==3.2.0; python_version < '3.7'",
45-
"jsonschema==4.3.2; python_version >= '3.7'",
44+
"jsonschema==4.3.2",
4645
"gunicorn==20.1.0",
47-
"uvloop==0.14.0; python_version < '3.7'",
48-
"uvloop==0.16.0; python_version >= '3.7'",
49-
"cyvcf2==0.10.1; python_version < '3.7'",
50-
"cyvcf2; python_version >= '3.7'",
46+
"uvloop==0.16.0",
47+
"cyvcf2==0.30.14",
5148
"aiocache==0.11.1",
5249
"aiomcache==0.6.0",
53-
"ujson==4.3.0; python_version < '3.7'",
54-
"ujson==5.1.0; python_version >= '3.7'",
50+
"ujson==5.1.0",
5551
],
5652
extras_require={
5753
"vcf": [
58-
"cyvcf2==0.10.1; python_version < '3.7'",
5954
"numpy==1.21.5",
60-
"cyvcf2; python_version >= '3.7'",
55+
"cyvcf2==0.30.14",
6156
"Cython==0.29.26",
6257
],
6358
"test": [

tox.ini

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

55
[flake8]
@@ -56,5 +56,4 @@ commands = py.test -x --cov=beacon_api tests/ --cov-fail-under=80
5656

5757
[gh-actions]
5858
python =
59-
3.6: unit_tests
60-
3.8: flake8, black, unit_tests, docs, bandit, mypy
59+
3.8: flake8, unit_tests, docs, bandit, mypy

0 commit comments

Comments
 (0)