File tree Expand file tree Collapse file tree 2 files changed +1
-15
lines changed Expand file tree Collapse file tree 2 files changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -144,20 +144,12 @@ jobs:
144
144
steps :
145
145
- checkout
146
146
- run :
147
- name : Setup Python environment with virtualenvs
148
- command : |
149
- python -m pip install --user --upgrade virtualenv pip
150
- - run :
151
- name : Prepare build environment
147
+ name : Prepare environment & build
152
148
command : |
153
149
python3 -m venv /tmp/buildenv
154
150
source /tmp/buildenv/bin/activate
155
151
python3 -m pip install "setuptools ~= 42.0" wheel "setuptools_scm[toml] >= 3.4" \
156
152
"pip>=10.0.1" twine docutils
157
- - run :
158
- name : Build NiTransforms in build environment and check
159
- command : |
160
- source /tmp/buildenv/bin/activate
161
153
python setup.py sdist bdist_wheel
162
154
twine check dist/nitransforms*
163
155
- store_artifacts :
Original file line number Diff line number Diff line change 1
1
"""Prepare package for distribution."""
2
- from pathlib import Path
3
2
from setuptools import setup
4
- from toml import loads
5
3
6
4
if __name__ == "__main__" :
7
- scm_cfg = loads (
8
- (Path (__file__ ).parent / "pyproject.toml" ).read_text ()
9
- )["tool" ]["setuptools_scm" ]
10
5
setup (
11
6
name = "nitransforms" ,
12
- use_scm_version = scm_cfg ,
13
7
)
You can’t perform that action at this time.
0 commit comments