From 8afa299d6c08d0cf2d6ac4762b7d3e33cfbd8c20 Mon Sep 17 00:00:00 2001 From: Daniel K Lyons <dlyons@nrao.edu> Date: Thu, 28 May 2020 11:07:43 -0600 Subject: [PATCH] Initial conda-builds for some of our dependencies --- environment.yml | 6 ++- support/conda/jxmlease/meta.yaml | 38 ++++++++++++++++++ support/conda/pid/meta.yaml | 40 ++++++++++++++++++ support/conda/pyat/meta.yaml | 69 ++++++++++++++++++++++++++++++++ support/conda/pycapo/meta.yaml | 48 ++++++++++++++++++++++ 5 files changed, 200 insertions(+), 1 deletion(-) create mode 100644 support/conda/jxmlease/meta.yaml create mode 100644 support/conda/pid/meta.yaml create mode 100644 support/conda/pyat/meta.yaml create mode 100644 support/conda/pycapo/meta.yaml diff --git a/environment.yml b/environment.yml index 024b873af..154f68f6f 100644 --- a/environment.yml +++ b/environment.yml @@ -15,4 +15,8 @@ dependencies: - tqdm=4.46 - pendulum=2.1 - alembic=1.4 - - sqlalchemy=1.3 \ No newline at end of file + - sqlalchemy=1.3 + - conda-build=3.18 + - jxmlease=1.0 + - pid=2.2 + - pycapo=0.2.1.post1 \ No newline at end of file diff --git a/support/conda/jxmlease/meta.yaml b/support/conda/jxmlease/meta.yaml new file mode 100644 index 000000000..c6f2a1f2c --- /dev/null +++ b/support/conda/jxmlease/meta.yaml @@ -0,0 +1,38 @@ +{% set name = "jxmlease" %} +{% set version = "1.0.1" %} + +package: + name: "{{ name|lower }}" + version: "{{ version }}" + +source: + url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz + sha256: fb04cfd54d8d7e4cc533108750047e9ccf43139c3c0220f8a082274b19564e98 + +build: + number: 0 + script: "{{ PYTHON }} -m pip install . --no-deps --ignore-installed -vv " + +requirements: + host: + - pip + - python + run: + - python + +test: + imports: + - jxmlease + +about: + home: https://github.com/Juniper/jxmlease + license: MIT + license_family: MIT + license_file: + summary: jxmlease converts between XML and intelligent Python data structures. + doc_url: + dev_url: + +extra: + recipe-maintainers: + - your-github-id-here diff --git a/support/conda/pid/meta.yaml b/support/conda/pid/meta.yaml new file mode 100644 index 000000000..b6ede62f7 --- /dev/null +++ b/support/conda/pid/meta.yaml @@ -0,0 +1,40 @@ +{% set name = "pid" %} +{% set version = "2.2.5" %} + +package: + name: "{{ name|lower }}" + version: "{{ version }}" + +source: + url: "https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz" + sha256: "96eb7dba326b88f5164bc1afdc986c7793e0d32d7f62366256a3903c7b0614ef" + +build: + number: 0 + script: "{{ PYTHON }} -m pip install . --no-deps --ignore-installed -vv " + +requirements: + host: + - pip + - python + run: + - python + +test: + imports: + - pid + requires: + - nose >=1.0 + +about: + home: "https://github.com/trbs/pid/" + license: "Apache Software" + license_family: "APACHE" + license_file: "" + summary: "Pidfile featuring stale detection and file-locking, can also be used as context-manager or decorator" + doc_url: "" + dev_url: "" + +extra: + recipe-maintainers: + - your-github-id-here diff --git a/support/conda/pyat/meta.yaml b/support/conda/pyat/meta.yaml new file mode 100644 index 000000000..4f780864e --- /dev/null +++ b/support/conda/pyat/meta.yaml @@ -0,0 +1,69 @@ +{% set name = "pyat" %} +{% set version = "3.7.0rc1" %} + +package: + name: "{{ name|lower }}" + version: "{{ version }}" + +source: + path: ../.. + +requirements: + run: + - python + - astropy + - beautifulsoup4 + - blessings # console color + - cx_oracle + - jxmlease + - lxml + - mysqlclient + - numpy~=1.16 + - pendulum # date/time formatting + - pid + - pika~=1.0.0 # AMQP messaging + - psycopg2 + - py + - pycapo # NRAO settings + - pytest + - pytz + - python-dateutil # date/time parsing + - simplejson # JSON conversion + - sqlalchemy # ORM + - requests + - zope.sqlalchemy + host: + - python + - astropy + - beautifulsoup4 + - blessings # console color + - cx_oracle + - jxmlease + - lxml + - mysqlclient + - numpy~=1.16 + - pendulum # date/time formatting + - pid + - pika~=1.0.0 # AMQP messaging + - psycopg2 + - py + - pycapo # NRAO settings + - pytest + - pytz + - python-dateutil # date/time parsing + - simplejson # JSON conversion + - sqlalchemy # ORM + - requests + - zope.sqlalchemy + +build: + script: python setup.py install + +about: + home: https://open-bitbucket.nrao.edu/projects/SSA/repos/archive + license: GNU General Public v2 (GPLv2) + license_family: GPL2 + license_file: + summary: Python Archive Tool (pyat) + doc_url: + dev_url: diff --git a/support/conda/pycapo/meta.yaml b/support/conda/pycapo/meta.yaml new file mode 100644 index 000000000..caab0fdce --- /dev/null +++ b/support/conda/pycapo/meta.yaml @@ -0,0 +1,48 @@ +{% set name = "pycapo" %} +{% set version = "0.2.1.post1" %} + +package: + name: "{{ name|lower }}" + version: "{{ version }}" + +source: + url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz + sha256: 703002d913d4e38a4bcce7748674ef58d4fd63c9fd099316b4643a89955ff361 + +build: + number: 0 + entry_points: + - pycapo = pycapo.commands:pycapo + script: "{{ PYTHON }} -m pip install . --no-deps --ignore-installed -vv " + +requirements: + host: + - pip + - python + - pytest + - pytest-runner + run: + - python + +test: + imports: + - pycapo + - tests + commands: + - pycapo --help + requires: + - pytest + - pytest-runner + +about: + home: https://open-bitbucket.nrao.edu/projects/SSA/repos/pycapo + license: GNU General Public v2 (GPLv2) + license_family: GPL2 + license_file: + summary: CAPO (CASA, Archive, and Pipeline Options) for Python + doc_url: + dev_url: + +extra: + recipe-maintainers: + - your-github-id-here -- GitLab