Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some ideas for more modern conda build recipes for ska packages #1

Merged
merged 25 commits into from
Jun 23, 2018
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
b315c31
Reboot conda builds
jeanconn Jun 17, 2017
6afecc3
Add more packages (kadi tests still don't pass)
jeanconn Jun 17, 2017
d34054b
Remove some meta.yaml text copied in error
jeanconn Jun 17, 2017
27f7234
WIP: Add more packages (untested builds / wip)
jeanconn Jun 30, 2017
e09d57e
Update the build order list
jzuhone Jun 30, 2017
67676db
Add ska.tdb
jzuhone Jun 30, 2017
0a58345
Add Ska.ParseCM
jzuhone Jun 30, 2017
018ad04
Add Chandra.Maneuver
jzuhone Jul 5, 2017
e5c16f2
Add cmd_states package
jzuhone Jul 5, 2017
40b4d95
Add xija recipe
jzuhone Jul 7, 2017
a417694
Update build order
jzuhone Jul 7, 2017
c17313e
Bash script to build all of the packages
jzuhone Jul 19, 2017
3e530b1
Use GIT_DESCRIBE_TAG to get version number
jzuhone Jul 21, 2017
16c8681
Clean up this script and simplify it
jzuhone Jul 21, 2017
f7d41fc
Separate the function of building the package into another script
jzuhone Jul 24, 2017
2939765
For now, use AstroPy 1.3
jzuhone Jul 25, 2017
78dba25
These are required to get this package to build
jzuhone Jul 25, 2017
3b843e0
Adding more build packages to several packages
jzuhone Jul 25, 2017
f60d9b5
Comment these last two out for now until we can build them
jzuhone Jul 25, 2017
683ac9c
Don't build something in build_order.txt which is commented out
jzuhone Jul 25, 2017
1223ac2
Added build requirements for agasc
jzuhone Jul 25, 2017
83a7424
Add in xija
jzuhone Jul 25, 2017
b1dd89b
This way actually skips commented lines
jzuhone Jul 25, 2017
acc4fc7
Add notes file
jzuhone Jul 25, 2017
da54819
Use AstroPy 2.0 instead
jzuhone Jul 25, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
45 changes: 45 additions & 0 deletions agasc/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{% set data = load_setup_py_data() %}

package:
name: agasc
version: {{ data.get('version') }}

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
# 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()

12 changes: 12 additions & 0 deletions build_order.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
ska.shell
ska.file
pyyaks
ska_path
testr
chandra.time
ska.dbi
ska.ftp
ska.numpy
quaternion
ska.engarchive
kadi
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
47 changes: 47 additions & 0 deletions chandra.time/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{% set data = load_setup_py_data() %}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like this doesn't work on Py3, I think because load_setup_py_data is trying to JSON serialize the cythonize portion of the setup

      ext_modules=cythonize(extensions),

Not sure why this seems to work on Py2. A work-around for this is just to specify the version until we patch load_setup_py_data().

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like conda-build 2.1.15 works fine with this (and ignores the the bits that don't JSON serialize). conda-build 2.1.16 and conda-build 3.0.6 seem to break on the same recipe, however. Oy.


package:
name: chandra.time
version: {{ data.get('version') }}

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
49 changes: 49 additions & 0 deletions chandra_aca/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{% set data = load_setup_py_data() %}

package:
name: chandra_aca
version: {{ data.get('version') }}

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 kadi/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 kadi/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{% set data = load_setup_py_data() %}

package:
name: kadi
version: {{ data.get('version') }}

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
45 changes: 45 additions & 0 deletions pyyaks/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{% set data = load_setup_py_data() %}

package:
name: pyyaks
version: {{ data.get('version') }}

build:
script_env:
- SKA_TOP_SRC_DIR

source:
path: {{ SKA_TOP_SRC_DIR }}/pyyaks


# 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
# Packages required to run the package. These are the dependencies that
# will be installed automatically whenever the package is installed.
run:
- python
- setuptools
- jinja2

test:
requires:
- pytest
- six
imports:
- pyyaks
- pyyaks.context
- pyyaks.logger
- pyyaks.fileutil
- pyyaks.task

about:
home: https://github.com/sot/pyyaks
license: BSD
summary: Pipeline running tools

1 change: 1 addition & 0 deletions quaternion/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python setup.py install
40 changes: 40 additions & 0 deletions quaternion/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{% set data = load_setup_py_data() %}

package:
name: quaternion
version: {{ data.get('version') }}

build:
script_env:
- SKA_TOP_SRC_DIR

source:
path: {{ SKA_TOP_SRC_DIR }}/Quaternion


# 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
# 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
- testr

test:
imports:
- Quaternion


about:
home: https://github.com/sot/Quaternion
2 changes: 2 additions & 0 deletions quaternion/run_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import Quaternion
Quaternion.test()
1 change: 1 addition & 0 deletions ska.dbi/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 ska.dbi/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{% set data = load_setup_py_data() %}

package:
name: ska.dbi
version: {{ data.get('version') }}

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

source:
path: {{ SKA_TOP_SRC_DIR }}/Ska.DBI


# 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
- sqlite
# Packages required to run the package. These are the dependencies that
# will be installed automatically whenever the package is installed.
run:
- python
- setuptools
- six
- sqlite
- pytest
- testr

test:
requires:
- numpy
imports:
- Ska.DBI

about:
home: https://github.com/sot/Ska.DBI


2 changes: 2 additions & 0 deletions ska.dbi/run_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import Ska.DBI
Ska.DBI.test()
1 change: 1 addition & 0 deletions ska.engarchive/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python setup.py install
Loading