Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fslpy
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FSL
fslpy
Commits
b901d2fb
Commit
b901d2fb
authored
7 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
Test that conda/pypi builds are installable
parent
b611a497
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.ci/build_conda_dist.sh
+9
-0
9 additions, 0 deletions
.ci/build_conda_dist.sh
.ci/build_pypi_dist.sh
+26
-0
26 additions, 0 deletions
.ci/build_pypi_dist.sh
with
35 additions
and
0 deletions
.ci/build_conda_dist.sh
+
9
−
0
View file @
b901d2fb
...
...
@@ -27,3 +27,12 @@ conda build --output-folder=dist .conda
# tar it up
cd
dist
tar
czf
"
$name
"
-
"
$version
"
-conda
.tar.gz
*
cd
..
# Make sure package is installable
for
pyver
in
2.7 3.4 3.5 3.6
;
do
conda create
-y
--name
"test
$pyver
"
python
=
$pyver
source
activate
test
$pyver
conda
install
-y
-c
file://
`
pwd
`
/dist fslpy
source
deactivate
done
This diff is collapsed.
Click to expand it.
.ci/build_pypi_dist.sh
+
26
−
0
View file @
b901d2fb
...
...
@@ -5,3 +5,29 @@ set -e
pip
install
wheel
python setup.py sdist
python setup.py bdist_wheel
# do a test install from both source and wheel
sdist
=
`
find dist
-maxdepth
1
-name
*
.tar.gz
`
wheel
=
`
find dist
-maxdepth
1
-name
*
.whl
`
# pip < 10 will not install wheels
# with an invalid name. So we can
# generate builds from non-releases
# (e.g. master master branch),
# we hack the wheel file name here
# so that pip will accept it.
#
# This will no longer be necessary
# when pip 10 is available.
nwheel
=
`
echo
-n
$wheel
|
sed
-e
's/fslpy-/fslpy-0/g'
`
mv
$wheel
$nwheel
wheel
=
$nwheel
for
target
in
$sdist
$wheel
;
do
python
-m
venv test.venv
.
test.venv/bin/activate
pip
install
--upgrade
pip setuptools
pip
install
$target
deactivate
rm
-r
test.venv
done
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment