Skip to content

Commit 3b2b444

Browse files
authored
Change packaging to use hatch-vcs and pyproject.toml (#897)
1 parent 7d52817 commit 3b2b444

18 files changed

+231
-2523
lines changed

.circleci/config.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -316,13 +316,7 @@ jobs:
316316
no_output_timeout: 3h
317317
command: |
318318
# Get version, update files.
319-
THISVERSION=$( python3 get_version.py )
320-
if [[ ${THISVERSION:0:1} == "0" ]] ; then
321-
echo "WARNING: latest git tag could not be found"
322-
echo "Please, make sure you fetch all tags from upstream with"
323-
echo "the command ``git fetch --tags --verbose`` and push"
324-
echo "them to your fork with ``git push origin --tags``"
325-
fi
319+
THISVERSION=$(python -c "from aslprep import __version__; print(__version__)")
326320
sed -i "s/title = {xcp_d}/title = {xcp_d ${CIRCLE_TAG:-$THISVERSION}}/" xcp_d/data/boilerplate.bib
327321
# Build docker image
328322
e=1 && for i in {1..5}; do

.codespellrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[codespell]
2+
skip = .git,*.pdf,*.svg,*.html,dataset_description.json
3+
# te - TE
4+
# Weill - name
5+
# reson - Reson. abbreviation in citation
6+
ignore-words-list = te,weill,reson

.git_archival.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node: $Format:%H$
2+
node-date: $Format:%cI$
3+
describe-name: $Format:%(describe:tags=true,match=*[0-9]*)$
4+
ref-names: $Format:%D$

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.git_archival.txt export-subst

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: Install flake8 and related packages
3232
run: python -m pip install \
3333
flake8 flake8-absolute-import flake8-black flake8-docstrings \
34-
flake8-isort flake8-unused-arguments flake8-use-fstring \
35-
flake8-warnings pep8-naming
34+
flake8-isort flake8-pyproject flake8-unused-arguments \
35+
flake8-use-fstring flake8-warnings pep8-naming
3636
- name: Check xcp_d
3737
run: python -m flake8 xcp_d

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ xcp_d/tests/test_data
44
xcp_d/tests/data/test_data
55
.circleci/local_xcpd_path.txt
66

7+
# setuptools-scm
8+
xcp_d/_version.py
9+
710
# documentation
811
docs/api/
912
docs/generated/

.pre-commit-config.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.4.0
4+
hooks:
5+
- id: trailing-whitespace
6+
- id: end-of-file-fixer
7+
- id: check-yaml
8+
- id: check-added-large-files
9+
- repo: https://github.com/psf/black
10+
rev: 23.1.0
11+
hooks:
12+
- id: black
13+
- repo: https://github.com/pycqa/isort
14+
rev: 5.12.0
15+
hooks:
16+
- id: isort

.versions.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"flagged": {
3+
"0.0.1": "Denoised BOLD data contained interpolated volumes.",
4+
"0.0.2": "Denoised BOLD data contained interpolated volumes.",
5+
"0.0.3": "Denoised BOLD data contained interpolated volumes.",
6+
"0.0.4": "Denoised BOLD data contained interpolated volumes.",
7+
"0.0.5": "Denoised BOLD data contained interpolated volumes.",
8+
"0.0.6": "Denoised BOLD data contained interpolated volumes.",
9+
"0.0.7": "Denoised BOLD data contained interpolated volumes.",
10+
"0.0.8": "Denoised BOLD data contained interpolated volumes.",
11+
"0.0.9": "Denoised BOLD data contained interpolated volumes.",
12+
"0.1.0": "Denoised BOLD data contained interpolated volumes.",
13+
"0.1.1": "Denoised BOLD data contained interpolated volumes.",
14+
"0.1.2": "Denoised BOLD data contained interpolated volumes.",
15+
"0.1.3": "Denoised BOLD data contained interpolated volumes.",
16+
"0.2.0": "Denoised BOLD data contained interpolated volumes.",
17+
"0.2.1": "Denoised BOLD data contained interpolated volumes.",
18+
"0.2.2": "Denoised BOLD data contained interpolated volumes.",
19+
"0.3.0": "Denoised BOLD data contained interpolated volumes.",
20+
"0.3.1": "Denoised BOLD data contained interpolated volumes.",
21+
"0.3.2": "Denoised BOLD data contained interpolated volumes."
22+
}
23+
}

MANIFEST.in

Lines changed: 0 additions & 7 deletions
This file was deleted.

get_version.py

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)