Skip to content

Commit 11f0e58

Browse files
committed
chore(deployment): fix deployment script [3rd iteration]
1 parent bc017e5 commit 11f0e58

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

.circleci/config.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -162,12 +162,15 @@ jobs:
162162
twine check dist/nitransforms*
163163
- store_artifacts:
164164
path: /tmp/src/nitransforms/dist
165+
- persist_to_workspace:
166+
root: /tmp/src/nitransforms
167+
paths: dist
165168
- run:
166169
name: Install on separate environment and check version [sdist]
167170
command: |
168171
python3 -m venv /tmp/install_sdist
169172
source /tmp/install_sdist/bin/activate
170-
python3 -m pip install "setuptools ~= 42.0" "setuptools_scm[toml] >= 3.4" "pip>=10.0.1"
173+
python3 -m pip install "setuptools ~= 42.0" "pip>=10.0.1"
171174
172175
THISVERSION=$( python3 setup.py --version )
173176
THISVERSION=${CIRCLE_TAG:-$THISVERSION}
@@ -181,7 +184,7 @@ jobs:
181184
command: |
182185
python3 -m venv /tmp/install_wheel
183186
source /tmp/install_wheel/bin/activate
184-
python3 -m pip install "setuptools ~= 42.0" wheel "setuptools_scm[toml] >= 3.4" "pip>=10.0.1"
187+
python3 -m pip install "setuptools ~= 42.0" "pip>=10.0.1"
185188
186189
THISVERSION=$( python3 setup.py --version )
187190
THISVERSION=${CIRCLE_TAG:-$THISVERSION}
@@ -196,14 +199,14 @@ jobs:
196199
- image: circleci/python:3.7.4
197200
working_directory: /tmp/src/nitransforms
198201
steps:
199-
- checkout
202+
- attach_workspace:
203+
at: /tmp/src/nitransforms
200204
- run:
201-
name: Build and upload to Pypi
205+
name: Upload to Pypi
202206
command: |
203-
python3 -m venv /tmp/buildenv
204-
source /tmp/buildenv/bin/activate
205-
python3 -m pip install "setuptools ~= 42.0" "setuptools_scm[toml] >= 3.4" wheel "pip>=10.0.1" twine docutils
206-
python3 setup.py sdist bdist_wheel
207+
python3 -m venv /tmp/upload
208+
source /tmp/upload/bin/activate
209+
python3 -m pip install twine
207210
python3 -m twine check dist/*
208211
python3 -m twine upload dist/*
209212

0 commit comments

Comments
 (0)