-
Notifications
You must be signed in to change notification settings - Fork 19
Update the workflow for deploying the package on anaconda #170
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
Open
rcervinoucm
wants to merge
83
commits into
main
Choose a base branch
from
conda_cd
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
83 commits
Select commit
Hold shift + click to select a range
44ba870
Create release_conda.yml
rcervinoucm 7cbdbac
Update release_conda.yml
rcervinoucm 24bcdea
Create meta.yaml
rcervinoucm 097b6a7
Update release_conda.yml
rcervinoucm cb201ee
Update release_conda.yml
rcervinoucm b3ebcd6
Update release_conda.yml
rcervinoucm 8d5d629
Update release_conda.yml
rcervinoucm 44478a3
Update release_conda.yml
rcervinoucm a3c6b04
Update release_conda.yml
rcervinoucm 7d6e42c
Update release_conda.yml
rcervinoucm 130a2f9
Update release_conda.yml
rcervinoucm 2e65a85
Update release_conda.yml
rcervinoucm fdcafc2
Update release_conda.yml
rcervinoucm e2646a6
Update release_conda.yml
rcervinoucm b5bfba4
Update release_conda.yml
rcervinoucm 6ec9cd8
Update release_conda.yml
rcervinoucm 03c72a1
Update release_conda.yml
rcervinoucm 5615b2a
Update release_conda.yml
rcervinoucm 8ec845d
Update meta.yaml
rcervinoucm 5db9fe4
Update meta.yaml
rcervinoucm 6b1d97e
Update meta.yaml
rcervinoucm f49d811
Update meta.yaml
rcervinoucm 0c98b6f
Update release_conda.yml
rcervinoucm e2eb7ae
Update release_conda.yml
rcervinoucm 6675544
Update release_conda.yml
rcervinoucm 0d72fee
Update release_conda.yml
rcervinoucm 39e1c3c
Update release_conda.yml
rcervinoucm 83e94ca
Update environment.yml
rcervinoucm 75df929
Update meta.yaml
rcervinoucm 8618843
Update meta.yaml
rcervinoucm c4342eb
Update release_conda.yml
rcervinoucm ada8e7a
Update release_conda.yml
rcervinoucm 35307cc
Update release_conda.yml
rcervinoucm f1a7f65
Update release_conda.yml
rcervinoucm 1cd9105
Update release_conda.yml
rcervinoucm 1e5b089
Update release_conda.yml
rcervinoucm dd45673
Update release_conda.yml
rcervinoucm 220b065
Update release_conda.yml
rcervinoucm bd0638a
Update release_conda.yml
rcervinoucm e39fd8e
Update release_conda.yml
rcervinoucm bc430f1
Update release_conda.yml
rcervinoucm 392bbb3
Update release_conda.yml
rcervinoucm 822bc12
Update release_conda.yml
rcervinoucm e715761
Update release_conda.yml
rcervinoucm 04c6e1f
Update release_conda.yml
rcervinoucm ec00548
Update release_conda.yml
rcervinoucm dbbb0d1
Update release_conda.yml
rcervinoucm 98fe6d6
Update release_conda.yml
rcervinoucm 5f166d8
Update release_conda.yml
rcervinoucm 7d4c9ab
Update release_conda.yml
rcervinoucm 55deb7c
Update release_conda.yml
rcervinoucm 4935e70
Update release_conda.yml
rcervinoucm 339a0cf
Update release_conda.yml
rcervinoucm eaa3fa5
Update release_conda.yml
rcervinoucm b8012d2
Update release_conda.yml
rcervinoucm b28b55b
Update release_conda.yml
rcervinoucm 16ac30b
Update release_conda.yml
rcervinoucm 85fceb4
Update release_conda.yml
rcervinoucm a288fbf
Update release_conda.yml
rcervinoucm 0251702
Update meta.yaml
rcervinoucm 2d7813e
Update release_conda.yml
rcervinoucm 0244bde
Update meta.yaml
rcervinoucm 8d19cb4
Update release_conda.yml
rcervinoucm 71cb34c
Update release_conda.yml
rcervinoucm 485fa19
Update release_conda.yml
rcervinoucm 478b1f6
Update release_conda.yml
rcervinoucm 70da932
Update meta.yaml
rcervinoucm 0be6255
Update release_conda.yml
rcervinoucm e518210
Update release_conda.yml
rcervinoucm 69a3e61
Update release_conda.yml
rcervinoucm b6e9e4d
Update release_conda.yml
rcervinoucm 8ebdfa5
Update release_conda.yml
rcervinoucm 1df4935
Update release_conda.yml
rcervinoucm 5a736c9
Update release_conda.yml
rcervinoucm 2ae9d69
Update release_conda.yml
rcervinoucm 5f38b72
Update release_conda.yml
rcervinoucm 22cc8d3
Update meta.yaml
rcervinoucm 0ab6b85
Update release_conda.yml
rcervinoucm e3fdae3
Update meta.yaml maintainers
rcervinoucm e5888b4
Update README.rst
rcervinoucm 0bd5556
Update README.rst
rcervinoucm 3d4fa63
Update README.rst
rcervinoucm 3572259
Update README.rst
rcervinoucm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{% set name = "dl1_data_handler" %} | ||
{% set version = os.environ.get('PACKAGE_VERSION', '0.0.0+dev') %} | ||
|
||
package: | ||
name: {{ name }} | ||
version: {{ version }} | ||
|
||
source: | ||
|
||
path: ../../ | ||
|
||
build: | ||
noarch: python | ||
number: 0 | ||
script: "{{ PYTHON }} -m pip install . --no-deps -vv" | ||
|
||
requirements: | ||
host: | ||
- python >=3.10 | ||
- pip | ||
- setuptools >=65 | ||
- setuptools_scm >=6.2 | ||
run: | ||
- python >=3.10 | ||
- astropy | ||
- numpy | ||
- pandas | ||
- pyyaml | ||
- scipy | ||
- traitlets | ||
- pydot | ||
- setuptools | ||
- ctapipe>=0.23,<0.26 | ||
|
||
|
||
test: | ||
imports: | ||
- dl1_data_handler | ||
|
||
about: | ||
home: https://github.com/cta-observatory/dl1-data-handler | ||
license: BSD-3-Clause | ||
summary: "Utilities for reading and processing CTA R1/DL0/DL1 data in a standardized format." | ||
description: | | ||
A package of utilities for reading and applying image processing to Cherenkov Telescope Array (CTA) | ||
R1/DL0/DL1 data in a standardized format. Created primarily for testing machine learning image | ||
analysis techniques on IACT data. | ||
dev_url: https://github.com/cta-observatory/dl1-data-handler | ||
|
||
extra: | ||
recipe-maintainers: | ||
- Daniel Nieto | ||
- Tjark Miener | ||
- Alexander Cervino |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Release Conda | ||
|
||
on: | ||
release: | ||
types: [published] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- name: Checkout repository and fetch tags | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup Miniconda and Conda Tools | ||
uses: conda-incubator/setup-miniconda@v3 | ||
with: | ||
python-version: '3.10' | ||
channels: conda-forge | ||
auto-update-conda: true | ||
mamba-version: "*" | ||
activate-environment: false | ||
|
||
- name: Install anaconda-client and conda-build | ||
shell: bash | ||
run: | | ||
mamba install anaconda-client conda-build -y | ||
|
||
- name: Conda Build and Upload Package | ||
shell: bash | ||
env: | ||
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }} | ||
run: | | ||
CONDA_RECIPE_DIR=".github/conda" | ||
ANACONDA_CHANNEL="ctlearn-project" | ||
|
||
FULL_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "0.0.0+dev") | ||
VERSION="${FULL_TAG#v}" | ||
VERSION="${VERSION#V}" | ||
|
||
echo "Building package version: $VERSION" | ||
export PACKAGE_VERSION=$VERSION | ||
|
||
conda run conda build $CONDA_RECIPE_DIR | ||
|
||
PACKAGE_PATH=$(conda run conda build $CONDA_RECIPE_DIR --output) | ||
|
||
if [[ "$VERSION" != "0.0.0+dev" ]]; then | ||
echo "Uploading $PACKAGE_PATH to $ANACONDA_CHANNEL channel..." | ||
conda run anaconda upload \ | ||
"$PACKAGE_PATH" \ | ||
--force \ | ||
--user $ANACONDA_CHANNEL | ||
else | ||
echo "Skipping upload: Version is $VERSION (development)." | ||
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.