Skip to content

Commit

Permalink
Merge pull request #109 from slacgismo/bmeyers-patch-1
Browse files Browse the repository at this point in the history
Update meta.yaml
Fixes #108
  • Loading branch information
Thistleman authored Oct 26, 2023
2 parents 48356ac + 96d4d4e commit 5929994
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 20 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,9 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Install Python
uses: actions/setup-python@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: '3.10'

# Much better than manual installation, original version Miniconda2-4.7.10-Linux-x86_64.sh is broken
- name: Install Miniconda
Expand All @@ -53,25 +52,23 @@ jobs:
activate-environment: ""
miniconda-version: "latest"

- name: Install the Mamba Dependencies
- name: Install the Conda Dependencies
run: |
conda config --set always_yes yes --set auto_update_conda false
conda update conda
conda install mamba -n base -c conda-forge
conda install -n base conda-libmamba-solver
mamba install python=3.10 "conda-build=3.21.9" colorama pip ruamel ruamel.yaml rich mamba jsonschema -c conda-forge
conda install python=3.10 conda-build colorama pip ruamel ruamel.yaml rich jsonschema -c conda-forge
pip install -e .
# echo yes before login to prevent anaconda bug breaking automation
# git tags MUST be fetched otherwise output will be blank
# bash variables cannot be used in github actions, must use actions specific syntax and methods
# channels need to be specified on build and are saved in the package for installs
- name: Build the Anaconda Package
id: mambabuild
id: condabuild
run: |
mamba install anaconda-client
conda install anaconda-client
conda config --set anaconda_upload no --set solver libmamba
echo yes | anaconda login --username ${{ secrets.ANACONDA_CLOUD_USERNAME }} --password ${{ secrets.ANACONDA_CLOUD_PASSWORD }}
git fetch --prune --unshallow --tags
VERSION_FROM_GIT_TAG=$(git tag --list "v*[0-9]" --sort=version:refname | tail -1 | cut -c 2-) conda build . -c mosek -c anaconda -c pvlib -c slacgismo -c conda-forge --numpy 1.22.0
echo '::set-output name=gitversion::$(git tag --list "v*[0-9]" --sort=version:refname | tail -1 | cut -c 2-)'
Expand Down
19 changes: 8 additions & 11 deletions .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Install Python
uses: actions/setup-python@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: '3.10'

- name: Install Twine
run: sudo pip install twine
Expand All @@ -34,10 +33,9 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Install Python
uses: actions/setup-python@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: '3.10'

# Much better than manual installation, original version Miniconda2-4.7.10-Linux-x86_64.sh is broken
- name: Install Miniconda
Expand All @@ -47,23 +45,22 @@ jobs:
activate-environment: ""
miniconda-version: "latest"

- name: Install the Mamba Dependencies
- name: Install the Conda Dependencies
run: |
conda config --set always_yes yes --set auto_update_conda false
conda update conda
conda install mamba -n base -c conda-forge
conda install -n base conda-libmamba-solver
mamba install python=3.10 "conda-build=3.21.9" colorama pip ruamel ruamel.yaml rich mamba jsonschema -c conda-forge
conda install python=3.10 conda-build colorama pip ruamel ruamel.yaml rich jsonschema -c conda-forge
pip install -e .
# echo yes before login to prevent anaconda bug breaking automation
# git tags MUST be fetched otherwise output will be blank
# bash variables cannot be used in github actions, must use actions specific syntax and methods
# channels need to be specified on build and are saved in the package for installs
- name: Build the Anaconda Package
id: mambabuild
id: condabuild
run: |
mamba install anaconda-client
conda install anaconda-client
conda config --set anaconda_upload no --set solver libmamba
git fetch --prune --unshallow --tags
VERSION_FROM_GIT_TAG=$(git tag --list "v*[0-9]" --sort=version:refname | tail -1 | cut -c 2-)test conda build . -c mosek -c anaconda -c pvlib -c slacgismo -c conda-forge --numpy 1.22.0
Expand Down
2 changes: 2 additions & 0 deletions conda_recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ requirements:
- haversine
- boto3
- Mosek
- clarabel

run:
- scipy
Expand All @@ -44,6 +45,7 @@ requirements:
- pvlib
- cvxpy
- python
- clarabel

about:
home: https://github.com/bmeyers/solar-data-tools
Expand Down

0 comments on commit 5929994

Please sign in to comment.