Skip to content
Snippets Groups Projects
Commit 07467694 authored by Nathan Hertz's avatar Nathan Hertz
Browse files

Added meta.yaml files for datafetcher and pycapo 0.3.0; some changes to some other files as well

parent 157a7a0f
No related branches found
No related tags found
No related merge requests found
import os
class Recipe:
def __init__(self, buildout, name, options):
options['created'] = "{}/dist/{}".format(options['path'], name + "-4.0.0a1.dev1.tar.bz2")
self.options = options
def install(self):
self.options.created(self.options['created'])
home = os.getcwd()
# cd into correct directory
os.chdir(self.options['path'])
# Run setup.py
os.system("conda run -n data python3 setup.py bdist")
os.chdir(home)
# Deploy conda package to builder
builder_path = "/home/builder.aoc.nrao.edu/content/conda/"
platform = "osx64"
os.system("scp {}/{} builder:{}".format(home, self.options['created'], builder_path + platform))
os.system("ssh builder 'cd {} && conda index'".format(builder_path))
return self.options.created()
update = install
\ No newline at end of file
from setuptools import setup
setup(
name='bdistrecipe',
version='0.1',
py_modules = ['bdistrecipe'],
entry_points = {"zc.buildout": ["default=bdistrecipe:Recipe"]}
)
\ No newline at end of file
import os
class Recipe:
def __init__(self, buildout, name, options):
options['created'] = "{}/envs/{}".format(options['path'], name + options['env'])
self.options = options
def install(self):
self.options.created(self.options['created'])
os.system("source /opt/miniconda3/etc/profile.d/conda.sh && conda activate data")
return self.options.created()
update = install
\ No newline at end of file
from setuptools import setup
setup(
name='condarecipe',
version='0.1',
py_modules = ['condarecipe'],
entry_points = {"zc.buildout": ["default=condarecipe:Recipe"]},
)
\ No newline at end of file
{% set name = "datafetcher" %}
{% set version = "4.0.0a1.dev1" %}
package:
name: "{{ name|lower }}"
version: "{{ version }}"
build:
entry_points:
- datafetcher = datafetcher.commands:main
script: python setup.py install
source:
path: /Users/nhertz/data/apps/cli/executables/datafetcher
requirements:
run:
- python
- pika==1.1.0
- pycapo
- bs4
- beautifulsoup4==4.9.1
- lxml==4.3.2
- psycopg2==2.8.5
- pyinstaller
- pyopenssl=19.1.0
- tox
#test:
# requires:
# - pytest
# - pytest-runner
# commands:
# - pytest -x --showlocals
about:
license: "GPL"
license_family: "GPL"
summary: "NRAO Archive Data Fetcher Script"
{% set name = "events" %}
{% set version = "4.0.0a1.dev1" %}
package:
name: "{{ name|lower }}"
version: "{{ version }}"
source:
path: /Users/nhertz/data/shared/messaging/events
build:
number: 0
script:
- python setup.py install
requirements:
run:
- python=3.8
- pika
- pycapo
about:
license: "GPL"
license_family: "GPL"
summary: "NRAO Archive Data Fetcher Script"
{% set name = "pycapo" %}
{% set version = "0.2.1.post1" %}
{% set version = "0.3.0" %}
package:
name: "{{ name|lower }}"
......@@ -7,7 +7,7 @@ package:
source:
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
sha256: 703002d913d4e38a4bcce7748674ef58d4fd63c9fd099316b4643a89955ff361
sha256: 507d47278a66f2a67dc817e2dae533374ad0c8312aed7ab6e23e1b322baef5c6
build:
number: 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment