Skip to content

Commit

Permalink
initial conda recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
rpreen committed Feb 6, 2025
1 parent 3a28a1e commit 5a453f4
Show file tree
Hide file tree
Showing 3 changed files with 102 additions and 0 deletions.
33 changes: 33 additions & 0 deletions conda/README.md
Original file line number Diff line number Diff line change
@@ -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
```
21 changes: 21 additions & 0 deletions conda/recipe/LICENSE
Original file line number Diff line number Diff line change
@@ -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.
48 changes: 48 additions & 0 deletions conda/recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -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
...

0 comments on commit 5a453f4

Please sign in to comment.