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 Commit final version of code to deploy to anaconda #372

Merged
merged 17 commits into from
Aug 19, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
8 changes: 8 additions & 0 deletions .conda-envs/build-env.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
channels: # write here the list of channels to look for your library dependencies
- atlanhq
- conda-forge
- default

dependencies: # Keep this block with only these two packages
- anaconda-client
- conda-build
24 changes: 1 addition & 23 deletions .conda-envs/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package:
version: "{{ environ['GIT_DESCRIBE_TAG'] }}"

source:
path: ../../
path: ../

build:
number: 0
Expand All @@ -28,28 +28,6 @@ requirements:
- 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"
Expand Down
19 changes: 10 additions & 9 deletions .github/workflows/build_and_upload_conda_packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
name: Build and upload conda packages

on:
release:
types: [ published ]
workflow_dispatch:

jobs:
Expand All @@ -10,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -19,18 +21,17 @@ jobs:
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
environment-file: .conda-envs/build-env.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
meta_yaml_dir: .conda-envs
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
platform_all: true
user: atlanhq
label: main
token: ${{ secrets.ANACONDA_API_TOKEN }}
upload: true
Loading