Skip to content

Commit

Permalink
Merge pull request #1 from sot/reboot
Browse files Browse the repository at this point in the history
Some ideas for more modern conda build recipes for ska packages
  • Loading branch information
jeanconn authored Jun 23, 2018
2 parents 64d793e + da54819 commit da4248e
Show file tree
Hide file tree
Showing 61 changed files with 1,058 additions and 0 deletions.
1 change: 1 addition & 0 deletions agasc/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python setup.py install
48 changes: 48 additions & 0 deletions agasc/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
package:
name: agasc
version: {{ GIT_DESCRIBE_TAG }}

build:
script_env:
- USER
- SKA_TOP_SRC_DIR

source:
path: {{ SKA_TOP_SRC_DIR }}/agasc


# the build and runtime requirements. Dependencies of these requirements
# are included automatically.
requirements:
# Packages required to build the package. python and numpy must be
# listed explicitly if they are required.
build:
- python
- setuptools
- six
- numpy
- numexpr
- pytables
- ska_path
- chandra.time
# Packages required to run the package. These are the dependencies that
# will be installed automatically whenever the package is installed.
run:
- python
- six
- pytables
- numpy
- numexpr
- chandra.time
- ska_path
- astropy
- testr

test:
imports:
- agasc


about:
home: https://github.com/sot/agasc

3 changes: 3 additions & 0 deletions agasc/run_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import agasc
agasc.test()

7 changes: 7 additions & 0 deletions build_all_packages.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

while IFS='' read -r line || [[ -n "$line" ]]; do
if [[ ${line:0:1} != '#' ]]; then
. build_one_package.sh $line
fi
done < "build_order.txt"
8 changes: 8 additions & 0 deletions build_one_package.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

SKA_CONDA_ROOT="$HOME/Projects/ska"
export SKA_TOP_SRC_DIR="${SKA_CONDA_ROOT}/src"
export MACOSX_DEPLOYMENT_TARGET="10.9"

echo "Building $1."
conda-build --croot ${SKA_CONDA_ROOT}/builds --no-anaconda-upload $1
22 changes: 22 additions & 0 deletions build_order.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
ska.shell
ska.file
pyyaks
ska_path
testr
ska.tdb
chandra.time
ska.parsecm
ska.dbi
ska.ftp
ska.numpy
quaternion
ska.engarchive
kadi
ska.matplotlib
ska.quatutil
ska.sun
chandra.maneuver
cmd_states
xija
#agasc
#chandra_aca
1 change: 1 addition & 0 deletions chandra.maneuver/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python setup.py install
45 changes: 45 additions & 0 deletions chandra.maneuver/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
package:
name: chandra.maneuver
version: {{ GIT_DESCRIBE_TAG }}

build:
script_env:
- SKA_TOP_SRC_DIR
preserve_egg_dir: yes # (default no)

source:
path: {{ SKA_TOP_SRC_DIR }}/Chandra.Maneuver


# the build and runtime requirements. Dependencies of these requirements
# are included automatically.
requirements:
# Packages required to build the package. python and numpy must be
# listed explicitly if they are required.
build:
- python
- setuptools
- numpy
- six
- chandra.time
- quaternion
- ska.sun
# Packages required to run the package. These are the dependencies that
# will be installed automatically whenever the package is installed.
run:
- python
- setuptools
- six
- testr
- quaternion
- chandra.time
- ska.sun

test:
imports:
- Chandra.Maneuver


about:
home: https://github.com/sot/Chandra.Maneuver

2 changes: 2 additions & 0 deletions chandra.maneuver/run_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import Chandra.Maneuver
Chandra.Maneuver.test()
1 change: 1 addition & 0 deletions chandra.time/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python setup.py install
45 changes: 45 additions & 0 deletions chandra.time/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
package:
name: chandra.time
version: {{ GIT_DESCRIBE_TAG }}

build:
script_env:
- SKA_TOP_SRC_DIR
preserve_egg_dir: yes # (default no)
entry_points:
- entry = conda_version_test.manual_entry:main

source:
path: {{ SKA_TOP_SRC_DIR }}/Chandra.Time


# the build and runtime requirements. Dependencies of these requirements
# are included automatically.
requirements:
# Packages required to build the package. python and numpy must be
# listed explicitly if they are required.
build:
- python
- setuptools
- cython >=0.20.1
- six
- numpy
# Packages required to run the package. These are the dependencies that
# will be installed automatically whenever the package is installed.
run:
- python
- setuptools
- six
- numpy
- astropy
- testr

test:
imports:
- Chandra.Time


about:
home: https://github.com/sot/Chandra.Time
license: BSD
summary: Chandra Time package
2 changes: 2 additions & 0 deletions chandra.time/run_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import Chandra.Time
Chandra.Time.test()
1 change: 1 addition & 0 deletions chandra_aca/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python setup.py install
47 changes: 47 additions & 0 deletions chandra_aca/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
package:
name: chandra_aca
version: {{ GIT_DESCRIBE_TAG }}

build:
script_env:
- USER
- SKA_TOP_SRC_DIR

source:
path: {{ SKA_TOP_SRC_DIR }}/chandra_aca


# the build and runtime requirements. Dependencies of these requirements
# are included automatically.
requirements:
# Packages required to build the package. python and numpy must be
# listed explicitly if they are required.
build:
- python
- six
# Packages required to run the package. These are the dependencies that
# will be installed automatically whenever the package is installed.
run:
- python
- numpy
- testr
- numba
- scipy
- chandra.time
- ska.numpy
- quaternion
- astropy
- agasc
- ska.quatutil
- matplotlib
- six


test:
imports:
- chandra_aca


about:
home: https://github.com/sot/chandra_aca

3 changes: 3 additions & 0 deletions chandra_aca/run_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import chandra_aca
chandra_aca.test()

1 change: 1 addition & 0 deletions cmd_states/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python setup.py install
53 changes: 53 additions & 0 deletions cmd_states/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
package:
name: cmd_states
version: {{ GIT_DESCRIBE_TAG }}

build:
script_env:
- SKA_TOP_SRC_DIR
preserve_egg_dir: yes # (default no)

source:
path: {{ SKA_TOP_SRC_DIR }}/cmd_states


# the build and runtime requirements. Dependencies of these requirements
# are included automatically.
requirements:
# Packages required to build the package. python and numpy must be
# listed explicitly if they are required.
build:
- python
- setuptools
- six
- numpy
- ska.file
- ska.dbi
- chandra.time
- chandra.maneuver
- ska.parsecm
- ska.numpy
# Packages required to run the package. These are the dependencies that
# will be installed automatically whenever the package is installed.
run:
- python
- setuptools
- six
- chandra.time
- ska.dbi
- ska.file
- chandra.maneuver
- quaternion
- ska.sun
- ska.parsecm
- ska.numpy
- ska.ftp
- kadi

test:
imports:
- Chandra.cmd_states


about:
home: https://github.com/sot/cmd_states
2 changes: 2 additions & 0 deletions cmd_states/run_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import Chandra.cmd_states
Chandra.cmd_states.test()
1 change: 1 addition & 0 deletions kadi/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python setup.py install
51 changes: 51 additions & 0 deletions kadi/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
package:
name: kadi
version: {{ GIT_DESCRIBE_TAG }}

build:
script_env:
- USER
- SKA_TOP_SRC_DIR

source:
path: {{ SKA_TOP_SRC_DIR }}/kadi


# the build and runtime requirements. Dependencies of these requirements
# are included automatically.
requirements:
# Packages required to build the package. python and numpy must be
# listed explicitly if they are required.
build:
- python
- six
# Packages required to run the package. These are the dependencies that
# will be installed automatically whenever the package is installed.
run:
- python
- six
- pytables
- configobj
- requests
- django
- pyyaks
- ska.dbi
- ska.file
- ska.ftp
- ska.numpy
- astropy
- quaternion
- chandra.time
- ska.engarchive
- numpy
- testr

test:
imports:
- kadi


about:
home: https://github.com/sot/Chandra.Time
license: BSD
summary: Chandra Time package
3 changes: 3 additions & 0 deletions kadi/run_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import kadi
kadi.test()

1 change: 1 addition & 0 deletions pyyaks/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python setup.py install
Loading

0 comments on commit da4248e

Please sign in to comment.