diff --git a/.github/workflows/publish-conda.yml b/.github/workflows/publish-conda.yml new file mode 100644 index 000000000..5d3989c12 --- /dev/null +++ b/.github/workflows/publish-conda.yml @@ -0,0 +1,32 @@ +name: Publish Python 🐍 distributions 📦 to Conda + +on: + push: + tags: + - '*' + workflow_dispatch: + + +jobs: + build-n-publish: + name: Build and publish Python 🐍 distributions 📦 to Conda + runs-on: ubuntu-latest + steps: + + - uses: actions/checkout@v3 + + - uses: conda-incubator/setup-miniconda@v2 + with: + auto-update-conda: true + + - name: Build Conda Packages + # Bash shells do not use ~/.profile or ~/.bashrc so these shells need to be explicitely declared as shell: + # bash -l {0} on steps that need to be properly activated + shell: bash -l {0} + env: + ANACONDA_TOKEN: ${{ secrets.ANACONDA_TOKEN }} + run: | + conda install conda-build anaconda-client conda-verify + conda config --set anaconda_upload yes + cd conda + conda build -c conda-forge -c pytorch -c dglteam -c districtdatalabs --token "$ANACONDA_TOKEN" . \ No newline at end of file diff --git a/bld.bat b/bld.bat new file mode 100644 index 000000000..602113031 --- /dev/null +++ b/bld.bat @@ -0,0 +1,2 @@ +"%PYTHON%" setup.py install +if errorlevel 1 exit 1 \ No newline at end of file diff --git a/build.sh b/build.sh new file mode 100644 index 000000000..aa8a1fc34 --- /dev/null +++ b/build.sh @@ -0,0 +1 @@ +python setup.py install \ No newline at end of file diff --git a/conda/meta.yaml b/conda/meta.yaml new file mode 100644 index 000000000..a8f773381 --- /dev/null +++ b/conda/meta.yaml @@ -0,0 +1,83 @@ +package: + name: graphistry + version: {{ GIT_DESCRIBE_TAG }} + +source: + git_rev: {{ GIT_DESCRIBE_TAG }} + git_url: https://github.com/graphistry/pygraphistry + +requirements: + host: + - python + - setuptools + run: + - graphistry.graphistry-core + - graphistry.graphistry-umap + - graphistry.graphistry-ai + +test: + requires: + - flake8 + - mock + - mypy + - pytest + - pandas-stubs + - types-requests + +outputs: + - name: graphistry.graphistry-core + requirements: + - packaging>=20.1 + - typing-extensions + - numpy + - pandas>=0.17.0 + - protobuf>=2.6.0 + - pyarrow>=0.15.0 + - requests + description: test desc + - name: graphistry.graphistry-umap + requirements: + - umap-learn + - dirty_cat==0.2.0 + - scikit-learn>=1.0 + - name: graphistry.graphistry-ai + requirements: + - scikit-learn>=1.0 + - scipy + - umap-learn + - dirty_cat==0.2.0 + - dgl + - pytorch + - sentence-transformers + + +about: + home: https://www.graphistry.com/ + license: BSD3 + license_file: ../LICENSE.txt + summary: Graphistry Visual Graph Analytics library for Python + description: | + Graphistry is a visual graph analytics library for extracting, transforming, + displaying, and sharing big graphs with end-to-end GPU acceleration. + + You can install the whole package via: + + `conda install -c pygraphistry_dev graphistry` + + Just the core package via: + + `conda install -c pygraphistry_dev graphistry.graphistry-core` + + Or other parts of the package via: + + `conda install -c pygraphistry_dev graphistry.graphistry-ai` + + `conda install -c pygraphistry_dev graphistry.graphistry-umap` + doc_url: https://hub.graphistry.com/docs + dev_url: https://github.com/graphistry/pygraphistry + +extra: + author: The Graphistry Team + author_email: pygraphistry@graphistry.com + +