Skip to content

Commit a85bc9e

Browse files
committed
fix: add package data
1 parent ae2887e commit a85bc9e

File tree

3 files changed

+23
-17
lines changed

3 files changed

+23
-17
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
strategy:
1818
matrix:
1919
python-version: [3.6, 3.7, 3.8]
20+
pip: ["pip", "pip~=10.0.1"]
2021

2122
steps:
2223
- uses: actions/checkout@v2
@@ -35,8 +36,8 @@ jobs:
3536
run: |
3637
python -m venv /tmp/buildenv
3738
source /tmp/buildenv/bin/activate
38-
python -m pip install "setuptools ~= 42.0" wheel "setuptools_scm[toml] >= 3.4" \
39-
setuptools_scm_git_archive "pip>=10.0.1" twine docutils
39+
python -m pip install -U "setuptools ~= 42.0" wheel "setuptools_scm[toml] >= 3.4" \
40+
setuptools_scm_git_archive pip twine docutils
4041
python setup.py sdist bdist_wheel
4142
python -m twine check dist/templateflow*
4243
@@ -58,7 +59,7 @@ jobs:
5859
run: |
5960
python -m venv /tmp/pip
6061
source /tmp/pip/bin/activate
61-
python -m pip install "setuptools ~= 42.0" "pip>=10.0.1"
62+
python -m pip install -U "setuptools ~= 42.0" "setuptools_scm[toml] >= 3.4" "${{ matrix.pip }}"
6263
python -m pip install .
6364
INSTALLED_VERSION=$(python -c 'import templateflow as tf; print(tf.__version__, end="")')
6465
echo "VERSION: \"${THISVERSION}\""
@@ -71,7 +72,7 @@ jobs:
7172
run: |
7273
python -m venv /tmp/install_sdist
7374
source /tmp/install_sdist/bin/activate
74-
python -m pip install "setuptools ~= 42.0" "pip>=10.0.1"
75+
python -m pip install -U "setuptools ~= 42.0" "${{ matrix.pip }}"
7576
python -m pip install /tmp/package/templateflow*.tar.gz
7677
INSTALLED_VERSION=$(python -c 'import templateflow as tf; print(tf.__version__, end="")')
7778
echo "VERSION: \"${THISVERSION}\""
@@ -103,7 +104,7 @@ jobs:
103104
run: |
104105
python -m venv /tmp/install_wheel
105106
source /tmp/install_wheel/bin/activate
106-
python -m pip install "setuptools ~= 42.0" "pip>=10.0.1"
107+
python -m pip install -U "setuptools ~= 42.0" "${{ matrix.pip }}"
107108
python -m pip install /tmp/package/templateflow*.whl
108109
INSTALLED_VERSION=$(python -c 'import templateflow as tf; print(tf.__version__, end="")')
109110
echo "INSTALLED: \"${INSTALLED_VERSION}\""
@@ -136,8 +137,8 @@ jobs:
136137
run: |
137138
python -m venv /tmp/setup_install
138139
source /tmp/setup_install/bin/activate
139-
python -m pip install "setuptools ~= 42.0" wheel "setuptools_scm[toml] >= 3.4" \
140-
setuptools_scm_git_archive "pip>=10.0.1"
140+
python -m pip install -U "setuptools ~= 42.0" wheel "setuptools_scm[toml] >= 3.4" \
141+
setuptools_scm_git_archive "${{ matrix.pip }}"
141142
python setup.py install
142143
INSTALLED_VERSION=$(python -c 'import templateflow as tf; print(tf.__version__, end="")')
143144
echo "INSTALLED: \"${INSTALLED_VERSION}\""
@@ -168,8 +169,8 @@ jobs:
168169
run: |
169170
python -m venv /tmp/setup_develop
170171
source /tmp/setup_develop/bin/activate
171-
python -m pip install "setuptools ~= 42.0" wheel "setuptools_scm[toml] >= 3.4" \
172-
setuptools_scm_git_archive "pip>=10.0.1"
172+
python -m pip install -U "setuptools ~= 42.0" wheel "setuptools_scm[toml] >= 3.4" \
173+
setuptools_scm_git_archive "${{ matrix.pip }}"
173174
python setup.py develop
174175
INSTALLED_VERSION=$(python -c 'import templateflow as tf; print(tf.__version__, end="")')
175176
echo "INSTALLED: \"${INSTALLED_VERSION}\""

MANIFEST.in

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
# data
2-
include templateflow/conf/config.json
3-
include templateflow/conf/templateflow-skel.zip
4-
include templateflow/conf/templateflow-skel.md5
1+
recursive-exclude templateflow/tests *
2+
recursive-exclude templateflow/conf/tests *
3+
recursive-exclude docs/ *
54

65
recursive-exclude .circleci/ *
76
recursive-exclude .github/ *
8-
recursive-exclude docker/ *
9-
recursive-exclude docs/ *
10-
recursive-exclude joss/ *
11-
exclude .codecov.yml .coveragerc .gitignore .gitattributes .pep8speaks.yml .travis.yml .zenodo.json codecov.yml Dockerfile update_changes.sh
7+
8+
exclude .gitignore .gitattributes .git_archival.txt .travis.yml .zenodo.json codecov.yml update_changes.sh

setup.cfg

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,17 @@ test_requires =
3737
packages = find:
3838
zip_safe = true
3939

40+
[options.package_data]
41+
templateflow =
42+
conf/config.json
43+
conf/templateflow-skel.zip
44+
conf/templateflow-skel.md5
45+
4046
[options.packages.find]
4147
exclude =
4248
*.tests
49+
tests.*
50+
*.tests.*
4351

4452
[options.extras_require]
4553
citations =

0 commit comments

Comments
 (0)