Skip to content

Commit

Permalink
Support Python 3.12 and update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
jennydaman committed Oct 12, 2023
1 parent 21e3dc0 commit 882352f
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [ '3.8.2', '3.9', '3.10', '3.11' ]
python-version: [ '3.8.2', '3.9', '3.10', '3.11', '3.12' ]
steps:
- uses: actions/checkout@v3
- name: Setup Python
Expand Down
2 changes: 2 additions & 0 deletions examples/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Examples

In this directory you will find small yet complete examples of _ChRIS_ plugins.

- `pl-git-clone`: a minimal [fs](https://github.com/FNNDSC/chris_plugin/wiki/About-Plugins#fs) plugin example
- `pl-copy`: a minimal [ds](https://github.com/FNNDSC/chris_plugin/wiki/About-Plugins#ds) plugin example
- `pl-replace`: a complicated [ds](https://github.com/FNNDSC/chris_plugin/wiki/About-Plugins#ds) plugin example demonstrating
Expand Down
4 changes: 2 additions & 2 deletions examples/pl-copy/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM docker.io/python:3.10.2-alpine3.14
FROM docker.io/python:3.12.0-alpine3.18

WORKDIR /usr/local/src/simple_copy

COPY . .
RUN pip install --use-feature=in-tree-build .
RUN pip install .

CMD ["simple_copy", "--help"]
1 change: 0 additions & 1 deletion examples/pl-copy/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,5 @@
py_modules=["simple_copy"],
install_requires=["chris_plugin"],
license="MIT",
python_requires=">=3.10.2",
entry_points={"console_scripts": ["simple_copy = simple_copy:main"]},
)
4 changes: 2 additions & 2 deletions examples/pl-git-clone/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM docker.io/python:3.10.2-alpine3.14
FROM docker.io/python:3.12.0-alpine3.18

RUN apk add git

WORKDIR /usr/local/src/git_clone_wrapper

COPY . .
RUN pip install --use-feature=in-tree-build .
RUN pip install .

CMD ["git_clone_wrapper", "--help"]
1 change: 0 additions & 1 deletion examples/pl-git-clone/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,5 @@
py_modules=["git_clone"],
install_requires=["chris_plugin"],
license="MIT",
python_requires=">=3.10.2",
entry_points={"console_scripts": ["git_clone_wrapper = git_clone:main"]},
)
4 changes: 2 additions & 2 deletions examples/pl-replace/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM docker.io/python:3.10.2-alpine3.14
FROM docker.io/python:3.12.0-alpine3.18

WORKDIR /usr/local/src/replace

COPY . .
RUN pip install --use-feature=in-tree-build .
RUN pip install .

CMD ["replace", "--help"]
1 change: 0 additions & 1 deletion examples/pl-replace/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,5 @@
py_modules=["replace"],
install_requires=["chris_plugin", "tqdm"],
license="MIT",
python_requires=">=3.10.2",
entry_points={"console_scripts": ["replace = replace:main"]},
)
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setup(
name="chris_plugin",
version="0.3.0",
version="0.3.1",
packages=find_packages(where="src"),
package_dir={"": "src", "chris_plugin": "src/chris_plugin"},
url="https://github.com/FNNDSC/chris_plugin",
Expand Down Expand Up @@ -41,6 +41,7 @@
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Bio-Informatics",
Expand Down

0 comments on commit 882352f

Please sign in to comment.