Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DVX-528 Add pyatlan to conda #371

Merged
merged 5 commits into from
Aug 14, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 65 additions & 0 deletions .conda-envs/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
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
ErnestoLoma marked this conversation as resolved.
Show resolved Hide resolved
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
ErnestoLoma marked this conversation as resolved.
Show resolved Hide resolved

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:
ErnestoLoma marked this conversation as resolved.
Show resolved Hide resolved
summary: "Atlan Python Client"
doc_url:
ErnestoLoma marked this conversation as resolved.
Show resolved Hide resolved
dev_url:

extra:
recipe-maintainers:
- your-github-id-here
ErnestoLoma marked this conversation as resolved.
Show resolved Hide resolved
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
Loading