Skip to content

Commit 7c863de

Browse files
authored
Revert schema changes that break compatibility with the R/BiocFileCache implementation (#26)
* Added tests for Python 3.13
1 parent 0cc6349 commit 7c863de

File tree

8 files changed

+108
-142
lines changed

8 files changed

+108
-142
lines changed

.github/workflows/pypi-publish.yml

+37-36
Original file line numberDiff line numberDiff line change
@@ -9,43 +9,44 @@ on:
99

1010
jobs:
1111
build:
12-
1312
runs-on: ubuntu-latest
1413

1514
steps:
16-
- uses: actions/checkout@v4
17-
- name: Set up Python 3.11
18-
uses: actions/setup-python@v5
19-
with:
20-
python-version: 3.11
21-
- name: Install dependencies
22-
run: |
23-
python -m pip install --upgrade pip
24-
pip install flake8 pytest tox
25-
# - name: Lint with flake8
26-
# run: |
27-
# # stop the build if there are Python syntax errors or undefined names
28-
# flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
29-
# # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
30-
# # flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
31-
- name: Test with tox
32-
run: |
33-
tox
34-
- name: Build docs
35-
run: |
36-
tox -e docs
37-
- run: touch ./docs/_build/html/.nojekyll
38-
- name: GH Pages Deployment
39-
uses: JamesIves/github-pages-deploy-action@4.1.3
40-
with:
41-
branch: gh-pages # The branch the action should deploy to.
42-
folder: ./docs/_build/html
43-
clean: true # Automatically remove deleted files from the deploy branch
44-
- name: Build Project and Publish
45-
run: |
46-
python -m tox -e clean,build
47-
- name: Publish package
48-
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
49-
with:
50-
user: __token__
15+
- uses: actions/checkout@v4
16+
17+
- name: Set up Python 3.11
18+
uses: actions/setup-python@v5
19+
with:
20+
python-version: 3.11
21+
22+
- name: Install dependencies
23+
run: |
24+
python -m pip install --upgrade pip
25+
pip install tox
26+
27+
- name: Test with tox
28+
run: |
29+
tox
30+
31+
- name: Build docs
32+
run: |
33+
tox -e docs
34+
35+
- run: touch ./docs/_build/html/.nojekyll
36+
37+
- name: GH Pages Deployment
38+
uses: JamesIves/github-pages-deploy-action@v4
39+
with:
40+
branch: gh-pages # The branch the action should deploy to.
41+
folder: ./docs/_build/html
42+
clean: true # Automatically remove deleted files from the deploy branch
43+
44+
- name: Build Project and Publish
45+
run: |
46+
python -m tox -e clean,build
47+
48+
- name: Publish package
49+
uses: pypa/gh-action-pypi-publish@v1.12.2
50+
with:
51+
user: __token__
5152
password: ${{ secrets.PYPI_PASSWORD }}

.github/workflows/pypi-test.yml

+20-27
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,33 @@
1-
# This workflow will install Python dependencies, run tests and lint with a single version of Python
2-
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3-
4-
name: Test the library
1+
name: Run tests
52

63
on:
74
push:
8-
branches: [ master ]
5+
branches: [master]
96
pull_request:
10-
branches: [ master ]
7+
branches: [master]
118

129
jobs:
1310
build:
14-
1511
runs-on: ubuntu-latest
1612
strategy:
1713
matrix:
18-
python-version: [ '3.9', '3.10', '3.11', '3.12', '3.13' ]
14+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
1915

2016
name: Python ${{ matrix.python-version }}
2117
steps:
22-
- uses: actions/checkout@v4
23-
- name: Setup Python
24-
uses: actions/setup-python@v5
25-
with:
26-
python-version: ${{ matrix.python-version }}
27-
cache: 'pip'
28-
- name: Install dependencies
29-
run: |
30-
python -m pip install --upgrade pip
31-
pip install flake8 pytest tox
32-
# - name: Lint with flake8
33-
# run: |
34-
# # stop the build if there are Python syntax errors or undefined names
35-
# flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
36-
# # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
37-
# # flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
38-
- name: Test with tox
39-
run: |
40-
tox
18+
- uses: actions/checkout@v4
19+
20+
- name: Setup Python
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
cache: "pip"
25+
26+
- name: Install dependencies
27+
run: |
28+
python -m pip install --upgrade pip
29+
pip install tox
30+
31+
- name: Test with tox
32+
run: |
33+
tox

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,6 @@ MANIFEST
5151
# Per-project virtualenvs
5252
.venv*/
5353
.conda*/
54+
55+
# remove cache
56+
cache

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## Version 0.6.0
4+
5+
- Reverting schema changes that break compatibility with the R/BiocFileCache implementation.
6+
- Added support for Python 3.13
7+
38
## Version 0.5.5
49

510
- chore: Remove Python 3.8 (EOL).

0 commit comments

Comments
 (0)