diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 83902da..0928c3a 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -12,7 +12,7 @@ jobs: - uses: actions/setup-python@v2 name: Set up Python with: - python-version: 3.9 + python-version: '3.10' - name: Install flake8 run: python -m pip install flake8 - name: Run linter diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..0ffc5db --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,30 @@ +name: Release PyPI Package +on: + release: + +types: [published] + +jobs: + publish: + runs-on: ubuntu-latest + + permissions: + contents: read + + steps: + - uses: actions/checkout@v2 + + - uses: actions/setup-python@v2 + with: + python-version: '3.10' + + - name: Install build dependencies + run: python -m pip install build --user + + - name: Build + run: python -m build --sdist --wheel --outdir dist/ . + + - name: Publish to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + password: ${{ secrets.PYPI_API_TOKEN }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0d437ee..1a4ecd1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [ 3.6, 3.9 ] + python-version: [ '3.8', '3.10' ] services: redis: image: redis @@ -40,7 +40,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [ 3.6, 3.9 ] + python-version: [ '3.8', '3.10' ] steps: - uses: actions/checkout@v1 - uses: actions/setup-python@v2 diff --git a/bento_lib/package.cfg b/bento_lib/package.cfg index 5c39277..ce86a5a 100644 --- a/bento_lib/package.cfg +++ b/bento_lib/package.cfg @@ -1,5 +1,5 @@ [package] name = bento_lib -version = 3.2.0 +version = 4.0.0 authors = David Lougheed, Paul Pillot author_emails = david.lougheed@mail.mcgill.ca, paul.pillot@computationalgenomics.ca diff --git a/pypackage.toml b/pypackage.toml new file mode 100644 index 0000000..d1e6ae6 --- /dev/null +++ b/pypackage.toml @@ -0,0 +1,2 @@ +[build-system] +requires = ["setuptools", "wheel"] diff --git a/requirements.txt b/requirements.txt index a6ca2ba..d3ed9a1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,15 +1,15 @@ appdirs==1.4.4 -asgiref==3.4.1 +asgiref==3.5.2 attrs==21.2.0 backports.entry-points-selectable==1.1.0 -certifi==2021.5.30 +certifi==2022.9.24 chardet==4.0.0 charset-normalizer==2.0.4 click==8.0.1 codecov==2.1.12 coverage==5.5 distlib==0.3.2 -Django==3.2.13 +Django==4.1.1 djangorestframework==3.12.4 entrypoints==0.3 filelock==3.0.12 diff --git a/setup.py b/setup.py index 6a2711d..2e51b10 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ name=config["package"]["name"], version=config["package"]["version"], - python_requires=">=3.6", + python_requires=">=3.8", install_requires=[ "jsonschema>=3.2.0,<4", "psycopg2-binary>=2.8.6,<3.0", @@ -23,7 +23,7 @@ ], extras_require={ "flask": ["Flask>=2.0.1,<3"], - "django": ["Django>=3.2.7,<4", "djangorestframework>=3.12.4,<3.13"] + "django": ["Django>=4.1.1,<5", "djangorestframework>=3.13.1,<3.15"] }, author=config["package"]["authors"],