Skip to content

Commit 9e2bab0

Browse files
authored
v1.8.5 (#48)
2 parents aa73ce2 + 4556106 commit 9e2bab0

32 files changed

+2812
-1125
lines changed

.github/dependabot.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: github-actions # https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot
9+
directory: /
10+
schedule:
11+
interval: monthly

.github/workflows/pythonpublish.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ jobs:
1717
- name: Set up Python
1818
uses: actions/setup-python@v1
1919
with:
20-
python-version: '3.x'
20+
python-version: 3.x
2121
- name: Install dependencies
2222
run: |
2323
python -m pip install --upgrade pip
24-
pip install setuptools wheel twine
24+
pip install poetry
2525
- name: Build and publish
2626
env:
27-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
28-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
27+
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
2928
run: |
30-
python setup.py sdist bdist_wheel
31-
twine upload dist/*
29+
poetry config pypi-token.pypi "${PYPI_PASSWORD}"
30+
poetry build
31+
poetry publish

.github/workflows/test_cpac.yml

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ on:
77
push:
88
paths-ignore:
99
- README.rst
10-
pull_request:
1110

1211
jobs:
1312
test_cpac:
@@ -22,7 +21,7 @@ jobs:
2221
platform: [docker]
2322
tag: [latest, nightly]
2423
go: [1.14]
25-
python: [3.7, 3.8, 3.9, "3.10", 3.11]
24+
python: [3.8, 3.9, '3.10', 3.11, 3.12]
2625
singularity: [3.6.4]
2726

2827
steps:
@@ -45,20 +44,8 @@ jobs:
4544
- name: Prepare Singularity cache and tmp directories
4645
if: ${{ matrix.platform == 'singularity' }}
4746
run: mkdir -p ${SINGULARITY_CACHEDIR} && mkdir -p ${SINGULARITY_TMPDIR}
48-
- name: Install dependencies
49-
run: |
50-
sudo apt-get install libffi-dev \
51-
flawfinder \
52-
libgpgme11-dev \
53-
libseccomp-dev \
54-
squashfs-tools \
55-
libssl1.1 libssl-dev \
56-
libuuid1 uuid-dev
57-
pip install -r requirements.txt
58-
pip install -r requirements-dev.txt
59-
pip install coverage coveralls nipype
6047
- name: Install cpac
61-
run: cd $GITHUB_WORKSPACE && pip install -e .
48+
run: cd $GITHUB_WORKSPACE && pip install -e ".[dev,testing]"
6249
- name: Test cpac, platform and tag specified
6350
run: |
6451
coverage run --append -m pytest --basetemp=${PWD}/tmp --doctest-modules --platform ${{ matrix.platform }} --tag ${{ matrix.tag }} .
@@ -81,12 +68,12 @@ jobs:
8168
- name: Report coverage
8269
uses: AndreMiras/coveralls-python-action@v20201129
8370
with:
84-
parallel: True
71+
parallel: true
8572
flag-name: Test cpac ${{ matrix.platform }} with Python ${{ matrix.python }}
8673
continue-on-error: true
8774
finalize_coverage-report:
88-
needs:
89-
- test_cpac
75+
needs:
76+
- test_cpac
9077
runs-on: ubuntu-latest
9178
steps:
9279
- name: Finalize coverage report
@@ -97,7 +84,7 @@ jobs:
9784
update_README:
9885
# Only update README if tests succeed
9986
needs:
100-
- test_cpac
87+
- test_cpac
10188
runs-on: ubuntu-latest
10289
steps:
10390
- uses: actions/checkout@v2

.pre-commit-config.yaml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
fail_fast: false
2+
3+
repos:
4+
- repo: https://github.com/astral-sh/ruff-pre-commit
5+
rev: v0.1.8
6+
hooks:
7+
- id: ruff
8+
args: [--fix]
9+
- id: ruff-format
10+
11+
- repo: https://github.com/pre-commit/mirrors-mypy
12+
rev: v1.4.1
13+
hooks:
14+
- id: mypy
15+
additional_dependencies:
16+
- types-tabulate
17+
- types-PyYAML
18+
args: [--python-version=3.8, --ignore-missing-imports]
19+
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
20+
rev: v2.11.0
21+
hooks:
22+
- id: pretty-format-yaml
23+
args:
24+
- --autofix
25+
- --indent=2
26+
- id: pretty-format-toml
27+
exclude: ^poetry.lock$
28+
args:
29+
- --autofix
30+
- --indent=2
31+
- --no-sort
32+
33+
- repo: https://github.com/python-poetry/poetry
34+
rev: 1.6.0
35+
hooks:
36+
- id: poetry-check
37+
- id: poetry-lock
38+
args: [--no-update]
39+
40+
- repo: https://github.com/pre-commit/pre-commit-hooks
41+
rev: v4.1.0
42+
hooks:
43+
- id: check-case-conflict
44+
- id: end-of-file-fixer
45+
- id: mixed-line-ending
46+
args:
47+
- --fix=lf
48+
- id: trailing-whitespace
49+
- id: pretty-format-json
50+
args:
51+
- --autofix
52+
- --indent=4
53+
- --no-sort-keys
54+
- id: check-merge-conflict
55+
- id: check-yaml
56+
- id: check-json
57+
- id: check-toml

CHANGELOG.rst

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
=========
22
Changelog
33
=========
4-
`Version 0.6.0: Support for C-PAC v1.8.5 <https://github.com/FCP-INDI/cpac/releases/tag/v0.6.0>`_
5-
===============
4+
5+
`Version 1.8.5: Support for C-PAC v1.8.5 <https://github.com/FCP-INDI/cpac/releases/tag/v1.8.5>`_
6+
=====================================================================================================
7+
8+
* Changes versioning scheme to match supported C-PAC version
69
* Handles relocation of default pipeline in C-PAC 1.8.5
710
* Fixes a bug preventing default bindings in Mac OS ≥ 10.15
811
* Replaces ``setup.cfg`` with ``pyproject.toml``
12+
* Replaces ``setuptools`` with ``poetry``
13+
* Adds pre-commit hooks for linting and formatting
14+
* Require Python ≥ 3.8
915

1016
`Version 0.5.0: Parse Resources <https://github.com/FCP-INDI/cpac/releases/tag/v0.5.0>`_
1117
========================================================================================
@@ -50,11 +56,11 @@ Changelog
5056
========================================================================
5157
* 📚 Update the main usage string to better articulate functionality
5258
* 📢🐳 Provide a clearer error message if package cannot connect to Docker.
53-
* 🐳 Fix a bug introduced in `v0.2.4 <https://github.com/shnizzedy/cpac/releases/tag/v0.2.4>` where some crashfiles would print for ``cpac --platform singularity crash`` but not for ``cpac --platform docker crash``
54-
* 🚑 Fix some installation issues:
59+
* 🐳 Fix a bug introduced in `v0.2.4 <https://github.com/shnizzedy/cpac/releases/tag/v0.2.4>` where some crashfiles would print for ``cpac --platform singularity crash`` but not for ``cpac --platform docker crash``
60+
* 🚑 Fix some installation issues:
5561
* All required packages are now installed with ``pip install cpac``
5662
* Version is now set correctly
57-
* 🐳 Fix a bug introduced in `v0.2.4 <https://github.com/shnizzedy/cpac/releases/tag/v0.2.4>`_ where some crashfiles would print for ``cpac --platform singularity crash`` but not for ``cpac --platform docker crash``
63+
* 🐳 Fix a bug introduced in `v0.2.4 <https://github.com/shnizzedy/cpac/releases/tag/v0.2.4>`_ where some crashfiles would print for ``cpac --platform singularity crash`` but not for ``cpac --platform docker crash``
5864
* 🔬 Set `coverage reports <http://coveralls.io/github/shnizzedy/cpac>`_ to report local paths
5965

6066
`Version 0.2.4 <https://github.com/shnizzedy/cpac/releases/tag/v0.2.4>`_

README.rst

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,16 @@ A Python package that wraps `C-PAC <http://fcp-indi.github.io>`_, enabling users
1010
Description
1111
===========
1212

13-
C-PAC Python Package is a lightweight Python package that handles interfacing a user's machine and a C-PAC container through a command line interface.
13+
cpac Python Package is a lightweight Python package that handles interfacing a user's machine and a C-PAC container through a command line interface.
14+
15+
.. admonition:: Note about cpac versioning
16+
17+
This package's versioning scheme changed in version 1.8.5 to match C-PAC's versioning. From cpac v1.8.5 forward, the version of cpac indicates the newest supported version of C-PAC.
1418

1519
Dependencies
1620
============
1721

18-
* `Python <https://www.python.org>`_ ≥3.7
22+
* `Python <https://www.python.org>`_ ≥ 3.8
1923
* `pip <https://pip.pypa.io>`_
2024
* At least one of:
2125

@@ -86,6 +90,8 @@ Usage
8690
enter (bash, shell)
8791
Enter a new C-PAC container via BASH.
8892
parse-resources (parse_resources)
93+
.
94+
8995
When provided with a `callback.log` file, this utility can sort through
9096
the memory `runtime` usage, `estimate`, and associated `efficiency`, to
9197
identify the `n` tasks with the `highest` or `lowest` of each of these
@@ -145,4 +151,3 @@ Usage
145151
.. |upload| image:: https://github.com/FCP-INDI/cpac/workflows/Upload%20Python%20Package/badge.svg
146152
:target: https://pypi.org/project/cpac/
147153
:alt: upload Python package to PyPI
148-

0 commit comments

Comments
 (0)