Skip to content
This repository was archived by the owner on Oct 23, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
99 commits
Select commit Hold shift + click to select a range
2f62000
Bump coverage from 7.0.4 to 7.0.5
dependabot[bot] Jan 16, 2023
07c282d
Bump tox from 4.2.6 to 4.3.1
dependabot[bot] Jan 16, 2023
7dc94b4
Merge pull request #372 from CSCfi/dependabot/pip/coverage-7.0.5
github-actions[bot] Jan 16, 2023
a90a87d
Merge pull request #374 from CSCfi/dependabot/pip/tox-4.3.1
github-actions[bot] Jan 16, 2023
2b2c9ed
Bump tox from 4.3.1 to 4.3.3
dependabot[bot] Jan 16, 2023
7b24bd0
Merge pull request #375 from CSCfi/dependabot/pip/tox-4.3.3
github-actions[bot] Jan 16, 2023
ead733e
Bump tox from 4.3.3 to 4.3.5
dependabot[bot] Jan 23, 2023
b543396
Merge pull request #376 from CSCfi/dependabot/pip/tox-4.3.5
github-actions[bot] Jan 23, 2023
81e5b5a
Bump dependabot/fetch-metadata from 1.3.5 to 1.3.6
dependabot[bot] Jan 30, 2023
9111deb
Bump tox from 4.3.5 to 4.4.2
dependabot[bot] Jan 30, 2023
be03cf4
Bump flake8-docstrings from 1.6.0 to 1.7.0
dependabot[bot] Jan 30, 2023
05d692d
Bump coverage from 7.0.5 to 7.1.0
dependabot[bot] Jan 30, 2023
d212c33
Merge pull request #377 from CSCfi/dependabot/github_actions/dependab…
github-actions[bot] Jan 30, 2023
5d08d3b
Merge pull request #378 from CSCfi/dependabot/pip/tox-4.4.2
github-actions[bot] Jan 30, 2023
8cd7106
Merge pull request #379 from CSCfi/dependabot/pip/flake8-docstrings-1…
github-actions[bot] Jan 30, 2023
5dae870
Merge pull request #380 from CSCfi/dependabot/pip/coverage-7.1.0
github-actions[bot] Jan 30, 2023
b2ef0e0
Bump docker/build-push-action from 3 to 4
dependabot[bot] Jan 30, 2023
ae027bc
Merge pull request #381 from CSCfi/dependabot/github_actions/docker/b…
github-actions[bot] Jan 31, 2023
940b6d1
Bump black from 22.12.0 to 23.1.0
dependabot[bot] Feb 6, 2023
6cbc3bd
fix black formatting
blankdots Feb 6, 2023
dc2bcb6
Merge pull request #382 from CSCfi/dependabot/pip/black-23.1.0
blankdots Feb 6, 2023
256316f
Bump tox from 4.4.2 to 4.4.4
dependabot[bot] Feb 6, 2023
581db57
Bump numpy from 1.24.1 to 1.24.2
dependabot[bot] Feb 6, 2023
3a3a9df
Merge pull request #384 from CSCfi/dependabot/pip/numpy-1.24.2
github-actions[bot] Feb 6, 2023
d249d6b
Merge pull request #383 from CSCfi/dependabot/pip/tox-4.4.4
github-actions[bot] Feb 6, 2023
13ab442
Bump tox from 4.4.4 to 4.4.5
dependabot[bot] Feb 13, 2023
d746319
Bump aiohttp from 3.8.3 to 3.8.4
dependabot[bot] Feb 13, 2023
02e1966
Bump sphinx-rtd-theme from 1.1.1 to 1.2.0
dependabot[bot] Feb 13, 2023
d97d88b
Merge pull request #386 from CSCfi/dependabot/pip/tox-4.4.5
github-actions[bot] Feb 13, 2023
aa80847
Bump testfixtures from 7.0.4 to 7.1.0
dependabot[bot] Feb 13, 2023
e594822
Merge pull request #387 from CSCfi/dependabot/pip/aiohttp-3.8.4
github-actions[bot] Feb 13, 2023
c32eef2
Merge pull request #385 from CSCfi/dependabot/pip/testfixtures-7.1.0
github-actions[bot] Feb 13, 2023
5240bda
Merge pull request #388 from CSCfi/dependabot/pip/sphinx-rtd-theme-1.2.0
github-actions[bot] Feb 13, 2023
61eb0f0
Bump rojopolis/spellcheck-github-actions from 0.29.0 to 0.30.0
dependabot[bot] Feb 20, 2023
08f0ed7
Merge pull request #389 from CSCfi/dependabot/github_actions/rojopoli…
github-actions[bot] Feb 21, 2023
b19d554
Bump coverage from 7.1.0 to 7.2.1
dependabot[bot] Feb 27, 2023
112c97a
Bump tox from 4.4.5 to 4.4.6
dependabot[bot] Feb 27, 2023
8313b2d
Merge pull request #390 from CSCfi/dependabot/pip/coverage-7.2.1
github-actions[bot] Feb 28, 2023
0276b5e
Merge pull request #391 from CSCfi/dependabot/pip/tox-4.4.6
github-actions[bot] Feb 28, 2023
e9ad5ba
Bump tox from 4.4.6 to 4.4.7
dependabot[bot] Mar 13, 2023
eb3af9b
handover link changed
blankdots Mar 14, 2023
7c2e458
Merge pull request #392 from CSCfi/dependabot/pip/tox-4.4.7
blankdots Mar 14, 2023
7e1f3ed
Bump coverage from 7.2.1 to 7.2.2
dependabot[bot] Mar 20, 2023
e5c1b35
Merge pull request #393 from CSCfi/dependabot/pip/coverage-7.2.2
github-actions[bot] Mar 20, 2023
630c02b
Bump tox from 4.4.7 to 4.4.8
dependabot[bot] Mar 27, 2023
5765814
Merge pull request #394 from CSCfi/dependabot/pip/tox-4.4.8
github-actions[bot] Mar 27, 2023
75cdcd3
Bump cython from 0.29.33 to 0.29.34
dependabot[bot] Apr 3, 2023
c7120c0
Bump black from 23.1.0 to 23.3.0
dependabot[bot] Apr 3, 2023
167a400
Merge pull request #397 from CSCfi/dependabot/pip/black-23.3.0
github-actions[bot] Apr 3, 2023
1ccd6a9
Merge pull request #396 from CSCfi/dependabot/pip/cython-0.29.34
github-actions[bot] Apr 3, 2023
ddf454b
Bump coverage from 7.2.2 to 7.2.3
dependabot[bot] Apr 10, 2023
18e5c64
Merge pull request #398 from CSCfi/dependabot/pip/coverage-7.2.3
github-actions[bot] Apr 11, 2023
791e668
Update pytest requirement from <7.3 to <7.4
dependabot[bot] Apr 11, 2023
7579f60
Merge pull request #400 from CSCfi/dependabot/pip/pytest-lt-7.4
github-actions[bot] Apr 11, 2023
2935e85
Bump tox from 4.4.8 to 4.4.11
dependabot[bot] Apr 11, 2023
a63fca4
Merge pull request #399 from CSCfi/dependabot/pip/tox-4.4.11
github-actions[bot] Apr 11, 2023
eb1d615
Bump dependabot/fetch-metadata from 1.3.6 to 1.4.0
dependabot[bot] Apr 17, 2023
fdf499c
Bump tox from 4.4.11 to 4.4.12
dependabot[bot] Apr 17, 2023
228f1ec
Merge pull request #401 from CSCfi/dependabot/github_actions/dependab…
github-actions[bot] Apr 18, 2023
d6c431f
Merge pull request #402 from CSCfi/dependabot/pip/tox-4.4.12
github-actions[bot] Apr 18, 2023
01afd20
Bump numpy from 1.24.2 to 1.24.3
dependabot[bot] Apr 24, 2023
7ea483c
Merge pull request #403 from CSCfi/dependabot/pip/numpy-1.24.3
github-actions[bot] Apr 24, 2023
dbcf1cb
Bump tox from 4.4.12 to 4.5.0
dependabot[bot] Apr 24, 2023
ee45a17
Merge pull request #405 from CSCfi/dependabot/pip/tox-4.5.0
github-actions[bot] Apr 25, 2023
e1c401c
Bump coverage from 7.2.3 to 7.2.5
dependabot[bot] May 1, 2023
0e17f09
Bump tox from 4.5.0 to 4.5.1
dependabot[bot] May 1, 2023
c2eaedf
Merge pull request #406 from CSCfi/dependabot/pip/coverage-7.2.5
github-actions[bot] May 1, 2023
444ec67
Merge pull request #407 from CSCfi/dependabot/pip/tox-4.5.1
github-actions[bot] May 1, 2023
8570ef0
Bump dependabot/fetch-metadata from 1.4.0 to 1.5.0
dependabot[bot] May 22, 2023
b07550c
Bump rojopolis/spellcheck-github-actions from 0.30.0 to 0.32.0
dependabot[bot] May 22, 2023
f3bc9c5
Merge pull request #408 from CSCfi/dependabot/github_actions/dependab…
github-actions[bot] May 23, 2023
d84f573
Merge pull request #409 from CSCfi/dependabot/github_actions/rojopoli…
github-actions[bot] May 23, 2023
ae24f4c
Bump dependabot/fetch-metadata from 1.5.0 to 1.5.1
dependabot[bot] May 29, 2023
5215906
Bump tox from 4.5.1 to 4.5.2
dependabot[bot] May 29, 2023
e49bc1e
Bump pytest-cov from 4.0.0 to 4.1.0
dependabot[bot] May 29, 2023
4a22679
Bump sphinx-rtd-theme from 1.2.0 to 1.2.1
dependabot[bot] May 29, 2023
7869196
Bump cython from 0.29.34 to 0.29.35
dependabot[bot] May 29, 2023
fe2c3c1
Merge pull request #415 from CSCfi/dependabot/pip/sphinx-rtd-theme-1.2.1
github-actions[bot] May 30, 2023
8559eb6
Merge pull request #416 from CSCfi/dependabot/pip/cython-0.29.35
github-actions[bot] May 30, 2023
70e163c
Merge pull request #414 from CSCfi/dependabot/pip/pytest-cov-4.1.0
github-actions[bot] May 30, 2023
1b5fac5
Merge pull request #413 from CSCfi/dependabot/pip/tox-4.5.2
github-actions[bot] May 30, 2023
3e74eff
Bump coverage from 7.2.5 to 7.2.7
dependabot[bot] May 30, 2023
bc35cbb
Merge pull request #411 from CSCfi/dependabot/github_actions/dependab…
github-actions[bot] May 30, 2023
1464e3b
Merge pull request #412 from CSCfi/dependabot/pip/coverage-7.2.7
github-actions[bot] May 30, 2023
ae1072e
Bump tox from 4.5.2 to 4.6.0
dependabot[bot] Jun 5, 2023
5f168a6
Merge pull request #417 from CSCfi/dependabot/pip/tox-4.6.0
github-actions[bot] Jun 6, 2023
7532502
Bump sphinx-rtd-theme from 1.2.1 to 1.2.2
dependabot[bot] Jun 12, 2023
0b375ef
new handovers url
blankdots Jun 13, 2023
6049f48
Merge pull request #419 from CSCfi/dependabot/pip/sphinx-rtd-theme-1.2.2
blankdots Jun 13, 2023
df22fb7
Bump ujson from 5.7.0 to 5.8.0
dependabot[bot] Jun 13, 2023
27932c4
Merge pull request #418 from CSCfi/dependabot/pip/ujson-5.8.0
github-actions[bot] Jun 13, 2023
a7186f6
Bump rojopolis/spellcheck-github-actions from 0.32.0 to 0.33.0
dependabot[bot] Jun 19, 2023
e147a85
Bump tox from 4.6.0 to 4.6.2
dependabot[bot] Jun 19, 2023
7672f26
Bump numpy from 1.24.3 to 1.25.0
dependabot[bot] Jun 19, 2023
2fa1a46
Merge pull request #422 from CSCfi/dependabot/pip/numpy-1.25.0
github-actions[bot] Jun 20, 2023
62eeaf5
Merge pull request #421 from CSCfi/dependabot/pip/tox-4.6.2
github-actions[bot] Jun 20, 2023
a7d28ae
Merge pull request #420 from CSCfi/dependabot/github_actions/rojopoli…
github-actions[bot] Jun 20, 2023
9b9c2e3
Update python to 3.10
gimppa Jun 21, 2023
e3938e5
Fix workflows
gimppa Jun 21, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v1.3.5
uses: dependabot/fetch-metadata@v1.5.1
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Wait other jobs are passed or failed
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ jobs:

steps:
- uses: actions/checkout@v3
- uses: rojopolis/spellcheck-github-actions@0.29.0
- uses: rojopolis/spellcheck-github-actions@0.33.0
name: Spellcheck

code_docs:
strategy:
max-parallel: 4
matrix:
os: [ubuntu-latest]
python-version: [3.8]
python-version: ["3.10"]

runs-on: ${{ matrix.os }}

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/int.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
max-parallel: 4
matrix:
os: [ubuntu-latest]
python-version: [3.8]
python-version: ["3.10"]

runs-on: ${{ matrix.os }}

Expand Down Expand Up @@ -39,7 +39,7 @@ jobs:
driver-opts: network=host

- name: Build
uses: docker/build-push-action@v3
uses: docker/build-push-action@v4
with:
context: .
push: true
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
type=ref,event=tag

- name: Build and push
uses: docker/build-push-action@v3
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
Expand All @@ -51,7 +51,7 @@ jobs:
org.opencontainers.image.revision=${{ github.sha }}

- name: Build and push dataloader
uses: docker/build-push-action@v3
uses: docker/build-push-action@v4
with:
run: |
pushd deploy/dataloader
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
max-parallel: 4
matrix:
os: [ubuntu-latest]
python-version: [3.8]
python-version: ["3.10"]

runs-on: ${{ matrix.os }}

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
max-parallel: 4
matrix:
os: [ubuntu-latest]
python-version: [3.8]
python-version: ["3.10"]

runs-on: ${{ matrix.os }}

Expand All @@ -29,7 +29,7 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions coverage
- name: Run unit tests for python 3.8
- name: Run unit tests for python 3.10
run: |
tox -e unit_tests
coverage lcov -o lcov.info
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.8-alpine3.15 as BUILD
FROM python:3.10.12-alpine3.18 as BUILD

RUN apk add --update \
&& apk add --no-cache build-base curl-dev linux-headers bash git musl-dev\
Expand All @@ -18,7 +18,7 @@ COPY setup.py /root/beacon/setup.py
COPY beacon_api /root/beacon/beacon_api
RUN pip install /root/beacon

FROM python:3.8-alpine3.15
FROM python:3.10.12-alpine3.18

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

Expand All @@ -29,7 +29,7 @@ LABEL org.label-schema.vcs-url="https://github.com/CSCFI/beacon-python"
RUN apk add --update \
&& apk add --no-cache curl bzip2 xz

COPY --from=BUILD usr/local/lib/python3.8/ usr/local/lib/python3.8/
COPY --from=BUILD usr/local/lib/python3.10/ usr/local/lib/python3.10/

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

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Documentation: https://beacon-python.readthedocs.io
### Quick start

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

```shell
Expand Down
4 changes: 2 additions & 2 deletions beacon_api/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def main():


if __name__ == "__main__":
if sys.version_info < (3, 8):
LOG.error("beacon-python requires python 3.8")
if sys.version_info < (3, 10):
LOG.error("beacon-python requires python 3.10")
sys.exit(1)
main()
1 change: 0 additions & 1 deletion beacon_api/extensions/mate_name.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ async def fetch_fusion_dataset(db_pool, assembly_id, position, chromosome, refer
db_response = await statement.fetch(datasets_query, access_query, assembly_id, chromosome)

else:

# UBER QUERY - TBD if it is what we need
# referenceBases, alternateBases and variantType fields are NOT part of beacon's specification response
query = """SELECT a.datasetId as "datasetId", b.accessType as "accessType", a.chromosome as "referenceName",
Expand Down
2 changes: 1 addition & 1 deletion docs/instructions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Instructions

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

* Python 3.8+;
* Python 3.10+;
* running DB `PostgreSQL Server <https://www.postgresql.org/>`_ 9.6+ (recommended 13).

.. _env-setup:
Expand Down
2 changes: 1 addition & 1 deletion docs/optionals.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Handover Protocol

The handover protocol is a feature comparable to `HATEOAS and HAL <https://restfulapi.net/hateoas/>`_. It can be used to convey
extra information regarding the Beacon service, or the dataset response.
More information about the handover protocol can be read from the `Beacon Project page <https://beacon-project.io/roadmap/handover.html>`_ and
More information about the handover protocol can be read from the `Beacon Project page <http://docs.genomebeacons.org/handovers/>`_ and
Beacon Specification's `handover issue <https://github.com/ga4gh-beacon/specification/issues/114>`_ at Github.

The handover protocol can be configured in ``config.ini`` as follows:
Expand Down
2 changes: 1 addition & 1 deletion readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build:
image: latest
requirements_file: docs/docs.txt
python:
version: 3.8
version: 3.10
use_system_site_packages: true
setup_py_install: true
extra_requirements:
Expand Down
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
aiohttp==3.8.3
aiohttp==3.8.4
aiohttp-cors==0.7.0
asyncpg==0.27.0
jsonschema==4.17.3
Cython==0.29.33
Cython==0.29.35
cyvcf2==0.30.18
uvloop==0.17.0
aiocache==0.11.1
ujson==5.7.0
ujson==5.8.0
Authlib==1.2.0
gunicorn==20.1.0
27 changes: 13 additions & 14 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,38 +33,37 @@
"Topic :: Internet :: WWW/HTTP :: HTTP Servers",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.10",
],
install_requires=[
"asyncpg==0.27.0",
"aiohttp==3.8.3",
"aiohttp==3.8.4",
"Authlib==1.2.0",
"aiohttp-cors==0.7.0",
"jsonschema==4.17.3",
"gunicorn==20.1.0",
"uvloop==0.17.0",
"cyvcf2==0.30.18",
"aiocache==0.11.1",
"ujson==5.7.0",
"ujson==5.8.0",
],
extras_require={
"vcf": [
"numpy==1.24.1",
"numpy==1.25.0",
"cyvcf2==0.30.18",
"Cython==0.29.33",
"Cython==0.29.35",
],
"test": [
"coverage==7.0.4",
"pytest<7.3",
"pytest-cov==4.0.0",
"testfixtures==7.0.4",
"tox==4.2.6",
"coverage==7.2.7",
"pytest<7.4",
"pytest-cov==4.1.0",
"testfixtures==7.1.0",
"tox==4.6.2",
"flake8==6.0.0",
"flake8-docstrings==1.6.0",
"flake8-docstrings==1.7.0",
"aioresponses==0.7.4",
"black==22.12.0",
"black==23.3.0",
],
"docs": ["sphinx >= 1.4", "sphinx_rtd_theme==1.1.1"],
"docs": ["sphinx >= 1.4", "sphinx_rtd_theme==1.2.2"],
},
)
2 changes: 1 addition & 1 deletion tests/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import json
from authlib.jose import jwt
import os
from test.support import EnvironmentVarGuard
from test.support.os_helper import EnvironmentVarGuard
from aiocache import caches


Expand Down
2 changes: 1 addition & 1 deletion tests/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from beacon_api.permissions.ga4gh import check_ga4gh_token, decode_passport, get_ga4gh_permissions
from .test_app import PARAMS, generate_token
from testfixtures import TempDirectory
from test.support import EnvironmentVarGuard
from test.support.os_helper import EnvironmentVarGuard


def mock_token(bona_fide, permissions, auth):
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ commands = py.test -x --cov=beacon_api tests/ --cov-fail-under=80

[gh-actions]
python =
3.8: flake8, unit_tests, docs, bandit, mypy
3.10: flake8, unit_tests, docs, bandit, mypy