From 5a453f4d08b913caa81737a033561d1fb93fe2bc Mon Sep 17 00:00:00 2001 From: Richard Preen Date: Thu, 6 Feb 2025 15:32:45 +0000 Subject: [PATCH] initial conda recipe --- conda/README.md | 33 +++++++++++++++++++++++++++++ conda/recipe/LICENSE | 21 ++++++++++++++++++ conda/recipe/meta.yaml | 48 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 102 insertions(+) create mode 100644 conda/README.md create mode 100644 conda/recipe/LICENSE create mode 100644 conda/recipe/meta.yaml diff --git a/conda/README.md b/conda/README.md new file mode 100644 index 0000000..34f8743 --- /dev/null +++ b/conda/README.md @@ -0,0 +1,33 @@ +# Recipes for building ACRO conda packages + +## Development + +### Create a new conda environment +``` +$ conda create -n test-env python=3.9 +``` + +### Activate the conda environment +``` +$ conda activate test-env +``` + +### Build the conda package +``` +$ conda build . +``` + +### Install the built conda package +``` +$ conda install --use-local acro +``` + +### Deactivate the conda environment +``` +$ conda deactivate +``` + +### Clean up: remove the conda environment +``` +$ conda env remove -n test-env +``` diff --git a/conda/recipe/LICENSE b/conda/recipe/LICENSE new file mode 100644 index 0000000..df98843 --- /dev/null +++ b/conda/recipe/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2022 AI-SDC + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/conda/recipe/meta.yaml b/conda/recipe/meta.yaml new file mode 100644 index 0000000..592fd16 --- /dev/null +++ b/conda/recipe/meta.yaml @@ -0,0 +1,48 @@ +--- +package: + name: acro + version: "0.4.8" + +source: + url: https://pypi.org/packages/source/a/acro/acro-0.4.8.tar.gz + sha256: fb4f4fe738bb56385802de27b2984cbba2145d8d00a8c33261ffd2eb6e0e8207 + +build: + number: 0 + noarch: python + script: python -m pip install . -vv + +requirements: + host: + - python >=3.9 + - setuptools + - pip + run: + - python >=3.9 + - lxml + - matplotlib-base + - numpy + - openpyxl + - pandas >=1.5.0,<2.3 + - PyYAML + - statsmodels + +test: + imports: + - acro + commands: + - pip check + - python -c "from acro import ACRO; a = ACRO()" + requires: + - pip + +about: + home: https://github.com/AI-SDC/ACRO + summary: "ACRO: Tools for the Semi-Automatic Checking of Research Outputs" + license: MIT + license_file: LICENSE + +extra: + recipe-maintainers: + - rpreen +...