Skip to content

Commit

Permalink
Conda tries (#327)
Browse files Browse the repository at this point in the history
* Adding conda meta.yaml file

* v0

* adding details to meta.yaml

* adding action to publish to conda

* Fixing license

Co-authored-by: Jonthan Liberman <jonthanliberman@ip-192-168-1-10.eu-west-1.compute.internal>
  • Loading branch information
ItayGabbay and Jonthan Liberman committed Dec 27, 2021
1 parent 45a0d82 commit ab39bc3
Show file tree
Hide file tree
Showing 5 changed files with 114 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/conda_publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# ----------------------------------------------------------------------------
# Copyright (C) 2021 Deepchecks (https://www.deepchecks.com)
#
# This file is part of Deepchecks.
# Deepchecks is distributed under the terms of the GNU Affero General
# Public License (version 3 or later).
# You should have received a copy of the GNU Affero General Public License
# along with Deepchecks. If not, see <http://www.gnu.org/licenses/>.
# ----------------------------------------------------------------------------
#
name: publish_conda

on:
release:
types: [published]

jobs:
conda-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up conda env
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: 3.9
conda-build-version: 3.21.7
- name: publish-to-conda
uses: maxibor/conda-package-publish-action@v1.1
with:
subDir: 'conda-recipe'
AnacondaToken: ${{ secrets.ANACONDA_TOKEN }}

#de-a1b2e610-0f68-4990-8993-022b9c1797cc
1 change: 1 addition & 0 deletions .licenserc_fix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ header:
- 'examples/'
- 'docs/'
- 'deepchecks/ppscore.py'
- '.projectignore'
comment: on-failure

dependency:
Expand Down
12 changes: 12 additions & 0 deletions conda-recipe/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# ----------------------------------------------------------------------------
# Copyright (C) 2021 Deepchecks (https://www.deepchecks.com)
#
# This file is part of Deepchecks.
# Deepchecks is distributed under the terms of the GNU Affero General
# Public License (version 3 or later).
# You should have received a copy of the GNU Affero General Public License
# along with Deepchecks. If not, see <http://www.gnu.org/licenses/>.
# ----------------------------------------------------------------------------
#
set -m
$PYTHON -m pip install --no-deps --ignore-installed .
49 changes: 49 additions & 0 deletions conda-recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# ----------------------------------------------------------------------------
# Copyright (C) 2021 Deepchecks (https://www.deepchecks.com)
#
# This file is part of Deepchecks.
# Deepchecks is distributed under the terms of the GNU Affero General
# Public License (version 3 or later).
# You should have received a copy of the GNU Affero General Public License
# along with Deepchecks. If not, see <http://www.gnu.org/licenses/>.
# ----------------------------------------------------------------------------
#
{% set data = load_setup_py_data() %}

package:
name: deepchecks
version: {{ data.get('version') }}

about:
home: https://github.com/deepchecks/deepchecks
license: AGPLv3
license_file: ../LICENSE
source:
# Relative path to the parent directory.
path: ..

build:
number: 0
noarch: python

requirements:
host:
- python
- setuptools
build:
- python
run:
- python
- pandas
- numpy
- scikit-learn
- ipython
- ipykernel
- ipywidgets
- tqdm
- category_encoders
- scipy
- typing_extensions
- dataclasses
- plotly
- matplotlib
18 changes: 18 additions & 0 deletions deepchecks/.projectignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# This file contains a list of match patterns that instructs
# anaconda-project to exclude certain files or directories when
# building a project archive. The file format is a simplfied
# version of Git's .gitignore file format. In fact, if the
# project is hosted in a Git repository, these patterns can be
# merged into the .gitignore file and this file removed.
# See the anaconda-project documentation for more details.

# Python caching
*.pyc
*.pyd
*.pyo
__pycache__/

# Jupyter & Spyder stuff
.ipynb_checkpoints/
.Trash-*/
/.spyderproject

0 comments on commit ab39bc3

Please sign in to comment.