Skip to content

Commit 36468b3

Browse files
authored
Merge pull request #1108 from effigies/fix/packaging
fix(build): Install package data
2 parents 0e283a0 + 311de86 commit 36468b3

File tree

4,435 files changed

+42
-11520
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

4,435 files changed

+42
-11520
lines changed

.github/workflows/test.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,39 @@ permissions:
3232
contents: read
3333

3434
jobs:
35+
build:
36+
name: Build & verify package
37+
runs-on: ubuntu-latest
38+
permissions:
39+
attestations: write
40+
id-token: write
41+
steps:
42+
- uses: actions/checkout@v4
43+
with:
44+
fetch-depth: 0
45+
- uses: hynek/build-and-inspect-python-package@v2
46+
with:
47+
attest-build-provenance-github: ${{ github.event_name != 'pull_request' }}
48+
3549
test:
3650
# Check each OS, all supported Python, minimum versions and latest releases
3751
runs-on: ${{ matrix.os }}
52+
needs: [build]
3853
strategy:
3954
matrix:
4055
os: ['ubuntu-latest', 'macos-latest']
4156
python-version: ['3.9', '3.10', '3.11', '3.12']
4257
dependencies: ['full', 'pre']
58+
source: ['repo']
4359
include:
4460
- os: ubuntu-latest
4561
python-version: '3.9'
4662
dependencies: min
63+
source: 'repo'
64+
- os: ubuntu-latest
65+
python-version: '3'
66+
dependencies: full
67+
source: 'sdist'
4768
exclude:
4869
# Drop pre tests for SPEC-0-unsupported Python versions
4970
# See https://scientific-python.org/specs/spec-0000/
@@ -58,9 +79,19 @@ jobs:
5879

5980
steps:
6081
- uses: actions/checkout@v4
82+
if: matrix.source == 'repo'
6183
with:
6284
submodules: recursive
6385
fetch-depth: 0
86+
- name: Download packages built by build-and-inspect-python-package
87+
if: matrix.source == 'sdist'
88+
uses: actions/download-artifact@v4
89+
with:
90+
name: Packages
91+
path: dist
92+
- name: Extract sdist
93+
if: matrix.source == 'sdist'
94+
run: tar --strip-components=1 -xzf dist/*.tar.gz
6495
- name: Set up Python ${{ matrix.python-version }}
6596
uses: actions/setup-python@v5
6697
with:

MANIFEST.in

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
graft src
2+
graft tests
3+
graft doc
4+
5+
include tox.ini
6+
7+
recursive-exclude src README.md

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ Homepage = "https://github.com/bids-standard/pybids"
7878
[project.scripts]
7979
pybids = "bids.cli:cli"
8080

81+
[tool.setuptools.package-data]
82+
"*" = ["data/*", "data/*/*"]
83+
"bids.layout.config" = ["*.json"]
84+
8185
[tool.versioneer]
8286
VCS = "git"
8387
style = "pep440-pre"

tests/data/ds005/derivatives/affine/matrix/_subject_id_sub-01/sub-01_T1w_corrected_brain_flirt.mat

Whitespace-only changes.

tests/data/ds005/derivatives/affine/matrix/_subject_id_sub-02/sub-02_T1w_corrected_brain_flirt.mat

Whitespace-only changes.

tests/data/ds005/derivatives/affine/matrix/_subject_id_sub-03/sub-03_T1w_corrected_brain_flirt.mat

Whitespace-only changes.

tests/data/ds005/derivatives/affine/matrix/_subject_id_sub-04/sub-04_T1w_corrected_brain_flirt.mat

Whitespace-only changes.

tests/data/ds005/derivatives/affine/matrix/_subject_id_sub-05/sub-05_T1w_corrected_brain_flirt.mat

Whitespace-only changes.

tests/data/ds005/derivatives/affine/matrix/_subject_id_sub-06/sub-06_T1w_corrected_brain_flirt.mat

Whitespace-only changes.

tests/data/ds005/derivatives/affine/matrix/_subject_id_sub-07/sub-07_T1w_corrected_brain_flirt.mat

Whitespace-only changes.

0 commit comments

Comments
 (0)