Skip to content

Commit

Permalink
Merge pull request #371 from atlanhq/dvx-528
Browse files Browse the repository at this point in the history
DVX-528 Add pyatlan to conda
  • Loading branch information
ErnestoLoma authored Aug 14, 2024
2 parents a15ff15 + 1699cc9 commit 43a4d72
Show file tree
Hide file tree
Showing 2 changed files with 105 additions and 0 deletions.
69 changes: 69 additions & 0 deletions .conda-envs/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
package:
name: "pyatlan"
version: "{{ environ['GIT_DESCRIBE_TAG'] }}"

source:
path: ../../

build:
number: 0
script: "{{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation"

requirements:
host:
- jinja2 ==3.1.4
- lazy_loader~=0.4
- pip
- pydantic >=2.0.0,<3.0.0
- python
- requests >=2.24
- tenacity ==8.2.3
- urllib3 >=1.26.0,<3
run:
- jinja2 ==3.1.4
- lazy_loader~=0.4
- pydantic >=2.0.0,<3.0.0
- python
- requests >=2.24
- tenacity ==8.2.3
- urllib3 >=1.26.0,<3

test:
imports:
- pyatlan
- pyatlan.cache
- pyatlan.client
- pyatlan.events
- pyatlan.generator
- pyatlan.generator.templates
- pyatlan.model
- pyatlan.model.assets
- pyatlan.model.assets.core
- pyatlan.model.fields
- pyatlan.model.packages
- pyatlan.model.packages.base
- pyatlan.pkg
- pyatlan.pkg.templates
- tests
- tests.integration
- tests.unit
- tests.unit.model
- tests.unit.model.fields
- tests.unit.pkg

about:
home: "https://github.com/atlanhq/atlan-python"
license: Apache Software
license_family: APACHE
license_file: LICENSE
license_url: https://github.com/atlanhq/atlan-python/blob/main/LICENSE
summary: "Atlan Python Client"
doc_url: https://developer.atlan.com/sdks/python
dev_url:

extra:
recipe-maintainers:
- https://github.com/ErnestoLoma
- https://github.com/cmgrote
- https://github.com/Aryamanz29
- https://github.com/0xquark
36 changes: 36 additions & 0 deletions .github/workflows/build_and_upload_conda_packages.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@

name: Build and upload conda packages

on:
workflow_dispatch:

jobs:
conda_deployment_with_new_tag:
name: Conda deployment of package with Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9"]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Conda environment creation and activation
uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.python-version }}
environment-file: pyatlan/.conda-envs/meta.yaml # Path to the build conda environment
auto-update-conda: false
auto-activate-base: false
show-channel-urls: true
- name: Build and upload the conda packages
uses: uibcdf/[email protected]
with:
meta_yaml_dir: devtools/conda-build
python-version: ${{ matrix.python-version }} # Values previously defined in `matrix`
platform_linux-64: true
platform_osx-64: true
platform_win-64: true
user: uibcdf
label: auto
token: ${{ secrets.ANACONDA_API_TOKEN }} # Replace with the right name of your secret

0 comments on commit 43a4d72

Please sign in to comment.