Skip to content

Commit

Permalink
Improved conda build
Browse files Browse the repository at this point in the history
Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
  • Loading branch information
prabhu committed Oct 18, 2023
1 parent b80093b commit 6dd5406
Show file tree
Hide file tree
Showing 5 changed files with 81 additions and 42 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
# Test conda build
$CONDA/bin/conda update -n base -c defaults conda
$CONDA/bin/conda install anaconda-client conda-build
$CONDA/bin/conda build --output-folder ./conda-out/ ./conda/
$CONDA/bin/conda build -c conda-forge --output-folder ./conda-out/ chenpy
- uses: actions/cache@v3
with:
path: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
run: |
poetry publish --build --username $PYPI_USERNAME --password $PYPI_PASSWORD
$CONDA/bin/conda update -n base -c defaults conda
$CONDA/bin/conda build --output-folder ./conda-out/ ./conda/
$CONDA/bin/conda build -c conda-forge --output-folder ./conda-out/ chenpy
anaconda upload --label main -u appthreat ./conda-out/noarch/*.tar.bz2
env:
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
Expand Down
79 changes: 79 additions & 0 deletions chenpy/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
{% set version = "0.0.19" %}

package:
name: chen
version: {{ version }}
about:
home: https://github.com/appthreat/chen
license: Apache-2.0
license_file: LICENSE
summary: "Code Hierarchy Exploration Net (chen)"
dev_url: https://github.com/appthreat/chen
dependencies:
- python>=3.8.1,<3.12
- conda-forge::httpx>=0.24.1,<0.25.0
- conda-forge::websockets>=11.0.2,<12.0.0
- conda-forge::orjson>=3.9.0,<4.0.0
- conda-forge::rich>=13.4.1,<14.0.0
- conda-forge::oras-py>=0.1.25
- conda-forge::appdirs>=1.4.4,<2.0.0
- conda-forge::psutil>=5.9.5,<6.0.0
- conda-forge::packageurl-python>=0.11.2,<0.12.0
- conda-forge::gitpython>=3.1.37,<4.0.0
- conda-forge::networkx>=3.1
- conda-forge::numpy>=1.26
- conda-forge::scipy>=1.11.3
requirements:
build:
- python
- pip
host:
- pip
- python
- setuptools
- poetry
run:
- python
- httpx
- websockets
- orjson
- rich
- oras-py
- appdirs
- psutil
- packageurl-python
- gitpython
- networkx
- numpy
- scipy

build:
noarch: python
script: |
cp ${RECIPE_DIR}/../pyproject.toml ${SRC_DIR}/
cp ${RECIPE_DIR}/../LICENSE ${SRC_DIR}/
cp ${RECIPE_DIR}/../README.md ${SRC_DIR}/
cp ${RECIPE_DIR}/../docker-compose.yml ${SRC_DIR}/
cp -rf ${RECIPE_DIR}/../docs ${SRC_DIR}/
cp -rf ${RECIPE_DIR}/../notebooks ${SRC_DIR}/
{{ PYTHON }} -m pip install --no-build-isolation --no-deps --ignore-installed .
entry_points:
- chen = chenpy.cli:main

source:
path: .
folder: chenpy

outputs:
- name: chen
files:
- chenpy
- docs
- notebooks
- README.md
- LICENSE
- docker-compose.yml

extra:
maintainers:
- Team AppThreat <cloud@appthreat.com>
5 changes: 0 additions & 5 deletions conda/conda_build_config.yaml

This file was deleted.

35 changes: 0 additions & 35 deletions conda/meta.yaml

This file was deleted.

0 comments on commit 6dd5406

Please sign in to comment.