Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FSL
fslpy
Commits
29e9d944
Commit
29e9d944
authored
Nov 08, 2017
by
Paul McCarthy
🚵
Browse files
I give up. Dependencies duplicated in meta.yaml
parent
d187e20d
Changes
3
Hide whitespace changes
Inline
Side-by-side
.ci/build_conda_dist.sh
View file @
29e9d944
...
...
@@ -3,17 +3,24 @@
conda update conda
conda
install
setuptools conda-build
cd
.conda
mkdir
-p
dist
mkdir
-p
../dist
cd
.conda
# get version and name
# get version and name. We call
# setup.py beforehand because it
# will install a bunch of deps,
# and output a bunch of stuff.
python ../setup.py
-V
&> /dev/null
version
=
`
python ../setup.py
-V
`
name
=
`
python ../setup.py
--name
`
cat
../requirements.txt
>
requirements.txt
cat
../requirements-dev.txt
>>
requirements.txt
# invoking setup.py causes it to
# install deps, which conda will
# incklude in thye build
rm
-rf
.eggs
# insert name/version into meta.yaml
echo
"{% set name = '
$name
' %}"
>
vars.txt
echo
"{% set version = '
$version
' %}"
>>
vars.txt
...
...
@@ -21,4 +28,10 @@ cat vars.txt meta.yaml > tempfile
mv
tempfile meta.yaml
rm
vars.txt
# do the build
conda build
--output-folder
=
../dist
.
# tar it up
cd
../dist
tar
czf
"
$name
"
-
"
$version
"
-conda
.tar.gz
*
cd
..
.ci/deploy_conda.sh
0 → 100644
View file @
29e9d944
#!/usr/bin/env bash
rsync
-rv
dist/
*
conda.tar.gz
"condadeploy:"
.conda/meta.yaml
View file @
29e9d944
...
...
@@ -15,6 +15,28 @@ requirements:
build
:
-
python
-
setuptools
-
six 1.*
-
deprecation 1.*
-
numpy 1.*
-
scipy >=0.18,<1
-
nibabel 2.*
# - indexed_gzip >=0.6.1,<1
-
wxpython >=3.0.2.0,<4.1
-
sphinx 1.6.*
-
sphinx_rtd_theme 0.*
-
mock 2.*
-
coverage 4.*
-
pytest 3.*
-
pytest-cov 2.*
-
pytest-runner >=2.*,<=3.*
run
:
-
python
-
six 1.*
-
deprecation 1.*
-
numpy 1.*
-
scipy >=0.18,<1
-
nibabel 2.*
# - indexed_gzip >=0.6.1,<1
-
wxpython >=3.0.2.0,<4.1
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment