-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #371 from atlanhq/dvx-528
DVX-528 Add pyatlan to conda
- Loading branch information
Showing
2 changed files
with
105 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |