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

Add first draft conda stuff #615

Merged
merged 2 commits into from
Feb 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2020 HED Standard Working Group
Copyright (c) 2020+ HED Standard Working Group

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
24 changes: 24 additions & 0 deletions hedtools/conda_build_info.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
To create the base meta.yaml I used grayskull:
https://conda-forge.org/docs/maintainer/adding_pkgs.html#build

Commands for building(uploading to conda-forge - note this is just for testing):
# Make sure conda forge is allowed
conda config --add channels conda-forge
# Make sure we try to always get from the same repo if there are conflicts
# see https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-channels.html for more details on channels
# this avoids issues with conflicting c libraries and similar.
conda config --set channel_priority strict
# Actually build the recipe.
conda build hedtools

To locally install it after building:
conda install --use-local hedtools

Then you follow the instructions here to make a PR(this is the actual upload to conda forge):
https://conda-forge.org/docs/maintainer/adding_pkgs.html#staging-test-locally

To install from conda-forge(in theory, doesn't work yet):
# Note the -c conda-forge shouldn't be required if you called the build config step above.(but users won't have done this)
conda install hedtools -c conda-forge


63 changes: 63 additions & 0 deletions hedtools/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{% set name = "hedtools" %}
{% set version = "0.2.0" %}

package:
name: {{ name|lower }}
version: {{ version }}

source:
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/hedtools-{{ version }}.tar.gz
sha256: 2452f8e4e79e50750147a437410ccfd9ea04ad4e6390edc14dbcd663a7a9fa08

build:
entry_points:
- run_remodel=hed.tools.remodeling.cli.run_remodel:main
- run_remodel_backup=hed.tools.remodeling.cli.run_remodel_backup:main
- run_remodel_restore=hed.tools.remodeling.cli.run_remodel_restore:main
noarch: python
script: {{ PYTHON }} -m pip install . -vv
number: 0

requirements:
host:
- python >=3.7
- setuptools >=42
- versioneer-518
- pip
run:
- python >=3.7
- defusedxml
- et-xmlfile
- inflect
- jdcal
- numpy
- openpyxl
- pandas
- portalocker
- python-dateutil
- pytz
- semantic_version
- six
- werkzeug

test:
imports:
hed
commands:
- run_remodel --help
- run_remodel_backup --help
- run_remodel_restore --help
requires:
- pip

about:
home: https://github.com/hed-standard/hed-python/
summary: HED validation, summary, and analysis tools.
license: MIT
license_file: LICENSE

extra:
recipe-maintainers:
- hed-maintainers
- VisLab
- IanCa