From d4348cc6bb5d4301fb312cc641b2e33a69c1179f Mon Sep 17 00:00:00 2001 From: gdulafactset <156331405+gdulafactset@users.noreply.github.com> Date: Fri, 10 May 2024 16:45:09 +0100 Subject: [PATCH 01/38] chore(publish): anaconda --- .github/workflows/publish.yml | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 390bc5b..3034bc5 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -3,12 +3,14 @@ name: Publish on: release: types: [published] + pull_request: jobs: deploy: name: Deploy to package index runs-on: ubuntu-20.04 env: + PYTHON_VERSION: 3.9 REPOSITORY_USERNAME: ${{ secrets.PYPI_USERNAME }} REPOSITORY_PASSWORD: ${{ secrets.PYPI_PASSWORD }} REPOSITORY_URL: ${{ secrets.PYPI_PUBLISH_URL }} @@ -20,7 +22,14 @@ jobs: - name: Setup Python uses: actions/setup-python@v5 with: - python-version: '3.9' + python-version: $PYTHON_VERSION + + - name: Setup Conda + uses: conda-incubator/setup-miniconda@v3 + with: + miniconda-version: "latest" + activate-environment: foo + python-version: $PYTHON_VERSION - name: Install Poetry uses: snok/install-poetry@v1 @@ -34,6 +43,11 @@ jobs: run: | poetry build - - name: Publish + - name: Publish to Anaconda + shell: bash -el {0} run: | - poetry publish -r publish + conda install grayskull conda-build anaconda-client + conda info + conda list + grayskull --version + anaconda --version From 98235b7beed21a0aec4a1d6d9ff57fda21ba01b0 Mon Sep 17 00:00:00 2001 From: gdulafactset <156331405+gdulafactset@users.noreply.github.com> Date: Mon, 20 May 2024 13:51:05 +0100 Subject: [PATCH 02/38] chore: try fixing error --- .github/workflows/publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 3034bc5..f691101 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -22,14 +22,14 @@ jobs: - name: Setup Python uses: actions/setup-python@v5 with: - python-version: $PYTHON_VERSION + python-version: ${{ env.PYTHON_VERSION }} - name: Setup Conda uses: conda-incubator/setup-miniconda@v3 with: miniconda-version: "latest" activate-environment: foo - python-version: $PYTHON_VERSION + python-version: ${{ env.PYTHON_VERSION }} - name: Install Poetry uses: snok/install-poetry@v1 From 2cc5f4b432eb98d0807ae69103efe66690142c66 Mon Sep 17 00:00:00 2001 From: gdulafactset <156331405+gdulafactset@users.noreply.github.com> Date: Tue, 18 Jun 2024 17:38:03 +0100 Subject: [PATCH 03/38] chore: test conda build process --- .github/workflows/publish.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f691101..497902b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -51,3 +51,7 @@ jobs: conda list grayskull --version anaconda --version + + grayskull pypi fds.sdk.utils + conda config --set anaconda_upload no + conda build fds.sdk.utils --output From 17b020ab2f09e26b65a13c74ffdd2d12a25b158a Mon Sep 17 00:00:00 2001 From: gdulafactset <156331405+gdulafactset@users.noreply.github.com> Date: Wed, 19 Jun 2024 17:01:21 +0100 Subject: [PATCH 04/38] chore: modify meta.yaml --- .github/workflows/publish.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 497902b..e2bc7a6 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -55,3 +55,11 @@ jobs: grayskull pypi fds.sdk.utils conda config --set anaconda_upload no conda build fds.sdk.utils --output + + sed -i '' -e "/recipe-maintainers:/,/extra:/ s/- .*/- gdulafactset/" fds.sdk.utils/meta.yaml + echo " - mima0815" >> fds.sdk.utils/meta.yaml + echo " - eschmidtfds" >> fds.sdk.utils/meta.yaml + echo " - Filip1x9" >> fds.sdk.utils/meta.yaml + echo " - dgawande12" >> fds.sdk.utils/meta.yaml + + cat fds.sdk.utils/meta.yaml From 91244ad89eb8ac2cb1e79070507292ea6671c1ab Mon Sep 17 00:00:00 2001 From: gdulafactset <156331405+gdulafactset@users.noreply.github.com> Date: Wed, 19 Jun 2024 17:29:57 +0100 Subject: [PATCH 05/38] chore: try debugging --- .github/workflows/publish.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e2bc7a6..6afd413 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -53,8 +53,8 @@ jobs: anaconda --version grayskull pypi fds.sdk.utils - conda config --set anaconda_upload no - conda build fds.sdk.utils --output + + ls sed -i '' -e "/recipe-maintainers:/,/extra:/ s/- .*/- gdulafactset/" fds.sdk.utils/meta.yaml echo " - mima0815" >> fds.sdk.utils/meta.yaml @@ -63,3 +63,6 @@ jobs: echo " - dgawande12" >> fds.sdk.utils/meta.yaml cat fds.sdk.utils/meta.yaml + + conda config --set anaconda_upload no + conda build fds.sdk.utils --output From 9b3f3b9c238a14152107082a804cb3c7b1bfaea6 Mon Sep 17 00:00:00 2001 From: gdulafactset <156331405+gdulafactset@users.noreply.github.com> Date: Wed, 19 Jun 2024 17:41:22 +0100 Subject: [PATCH 06/38] chore: fix sed command for ubuntu machine --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 6afd413..3546144 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -56,7 +56,7 @@ jobs: ls - sed -i '' -e "/recipe-maintainers:/,/extra:/ s/- .*/- gdulafactset/" fds.sdk.utils/meta.yaml + sed -i "/recipe-maintainers:/,/extra:/ s/- .*/- gdulafactset/" fds.sdk.utils/meta.yaml echo " - mima0815" >> fds.sdk.utils/meta.yaml echo " - eschmidtfds" >> fds.sdk.utils/meta.yaml echo " - Filip1x9" >> fds.sdk.utils/meta.yaml From b260910d44302b3395b01734fb8af7ea049ee129 Mon Sep 17 00:00:00 2001 From: gdulafactset <156331405+gdulafactset@users.noreply.github.com> Date: Thu, 20 Jun 2024 14:08:21 +0100 Subject: [PATCH 07/38] chore: test if tag name is retrieved correctly --- .github/workflows/publish.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 3546144..532db6e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -66,3 +66,5 @@ jobs: conda config --set anaconda_upload no conda build fds.sdk.utils --output + + echo "${{ github.event.release.tag_name }}" From 647f6110afda56362a287219fd08c01f564bc996 Mon Sep 17 00:00:00 2001 From: gdulafactset <156331405+gdulafactset@users.noreply.github.com> Date: Thu, 20 Jun 2024 14:52:00 +0100 Subject: [PATCH 08/38] chore: add clearer marker --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 532db6e..6025fe1 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -67,4 +67,4 @@ jobs: conda config --set anaconda_upload no conda build fds.sdk.utils --output - echo "${{ github.event.release.tag_name }}" + echo "####: ${{ github.event.release.tag_name }}" From c4963cd5f81f0a1ced16313d947c4663d0d3ad54 Mon Sep 17 00:00:00 2001 From: gdulafactset <156331405+gdulafactset@users.noreply.github.com> Date: Thu, 20 Jun 2024 15:57:07 +0100 Subject: [PATCH 09/38] chore: checks if package exists otherwise waits --- .github/workflows/publish.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 6025fe1..f1d1cb9 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -67,4 +67,12 @@ jobs: conda config --set anaconda_upload no conda build fds.sdk.utils --output - echo "####: ${{ github.event.release.tag_name }}" + while true; do + if pip install fds.sdk.utils==2.0.0 --dry-run &>/dev/null; then + echo "Version 2.0.0 of fds.sdk.utils is available on PyPI." + break + else + echo "Version not found, rechecking in 1 second..." + sleep 1 + fi + done From 7f986da11d6979bff16833fa6741ecc65684a3d6 Mon Sep 17 00:00:00 2001 From: gdulafactset <156331405+gdulafactset@users.noreply.github.com> Date: Thu, 20 Jun 2024 16:01:23 +0100 Subject: [PATCH 10/38] chore: test waiting looping --- .github/workflows/publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f1d1cb9..ebfe035 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -68,8 +68,8 @@ jobs: conda build fds.sdk.utils --output while true; do - if pip install fds.sdk.utils==2.0.0 --dry-run &>/dev/null; then - echo "Version 2.0.0 of fds.sdk.utils is available on PyPI." + if pip install fds.sdk.utils==2.0.1 --dry-run &>/dev/null; then + echo "Version 2.0.1 of fds.sdk.utils is available on PyPI." break else echo "Version not found, rechecking in 1 second..." From 32d9d322f1d37340294709d554fce0867c4510e9 Mon Sep 17 00:00:00 2001 From: gdulafactset <156331405+gdulafactset@users.noreply.github.com> Date: Thu, 20 Jun 2024 16:11:18 +0100 Subject: [PATCH 11/38] chore: max retry mechanism --- .github/workflows/publish.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ebfe035..069b9c1 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -67,12 +67,20 @@ jobs: conda config --set anaconda_upload no conda build fds.sdk.utils --output - while true; do + count=0 + max_retries=5 + while [ $count -lt $max_retries ]; do if pip install fds.sdk.utils==2.0.1 --dry-run &>/dev/null; then echo "Version 2.0.1 of fds.sdk.utils is available on PyPI." break else echo "Version not found, rechecking in 1 second..." sleep 1 + count=$((count + 1)) fi done + + if [ $count -eq $max_retries ]; then + echo "Maximum retries reached, package with that version was not found, publish failed." + exit 1 + fi From 666a94df2fbe139dc406cb3f328b93fcb9c25d39 Mon Sep 17 00:00:00 2001 From: gdulafactset <156331405+gdulafactset@users.noreply.github.com> Date: Thu, 20 Jun 2024 16:18:51 +0100 Subject: [PATCH 12/38] chore: exponential sleep time --- .github/workflows/publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 069b9c1..fbe6660 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -74,8 +74,8 @@ jobs: echo "Version 2.0.1 of fds.sdk.utils is available on PyPI." break else - echo "Version not found, rechecking in 1 second..." - sleep 1 + echo "Version not found, rechecking in $((2 ** count)) second..." + sleep $((2 ** count)) count=$((count + 1)) fi done From 39efdb37cc9794bb071a4b1fa639c22a41e00eaa Mon Sep 17 00:00:00 2001 From: gdulafactset <156331405+gdulafactset@users.noreply.github.com> Date: Thu, 20 Jun 2024 16:40:36 +0100 Subject: [PATCH 13/38] chore: moved conda build logic within loop --- .github/workflows/publish.yml | 46 +++++++++++++++++------------------ 1 file changed, 22 insertions(+), 24 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index fbe6660..b15a916 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -46,35 +46,33 @@ jobs: - name: Publish to Anaconda shell: bash -el {0} run: | - conda install grayskull conda-build anaconda-client - conda info - conda list - grayskull --version - anaconda --version - - grayskull pypi fds.sdk.utils - - ls - - sed -i "/recipe-maintainers:/,/extra:/ s/- .*/- gdulafactset/" fds.sdk.utils/meta.yaml - echo " - mima0815" >> fds.sdk.utils/meta.yaml - echo " - eschmidtfds" >> fds.sdk.utils/meta.yaml - echo " - Filip1x9" >> fds.sdk.utils/meta.yaml - echo " - dgawande12" >> fds.sdk.utils/meta.yaml - - cat fds.sdk.utils/meta.yaml - - conda config --set anaconda_upload no - conda build fds.sdk.utils --output - count=0 max_retries=5 while [ $count -lt $max_retries ]; do - if pip install fds.sdk.utils==2.0.1 --dry-run &>/dev/null; then - echo "Version 2.0.1 of fds.sdk.utils is available on PyPI." + if pip install fds.sdk.utils==2.0.0 --dry-run &>/dev/null; then + echo "Version 2.0.0 of fds.sdk.utils is available on PyPI." + + conda install grayskull conda-build anaconda-client + conda info + conda list + grayskull --version + anaconda --version + + grayskull pypi fds.sdk.utils==2.0.0 + + sed -i "/recipe-maintainers:/,/extra:/ s/- .*/- gdulafactset/" fds.sdk.utils/meta.yaml + echo " - mima0815" >> fds.sdk.utils/meta.yaml + echo " - eschmidtfds" >> fds.sdk.utils/meta.yaml + echo " - Filip1x9" >> fds.sdk.utils/meta.yaml + echo " - dgawande12" >> fds.sdk.utils/meta.yaml + + cat fds.sdk.utils/meta.yaml + + conda config --set anaconda_upload no + conda build fds.sdk.utils --output break else - echo "Version not found, rechecking in $((2 ** count)) second..." + echo "Version not found, rechecking in $((2 ** count)) seconds..." sleep $((2 ** count)) count=$((count + 1)) fi From 331cef5dda4410e078d5887dd9dd80d27809c8c1 Mon Sep 17 00:00:00 2001 From: gdulafactset <156331405+gdulafactset@users.noreply.github.com> Date: Thu, 20 Jun 2024 16:51:08 +0100 Subject: [PATCH 14/38] chore: use real tag_name + script comments --- .github/workflows/publish.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b15a916..12e6b30 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -49,25 +49,26 @@ jobs: count=0 max_retries=5 while [ $count -lt $max_retries ]; do - if pip install fds.sdk.utils==2.0.0 --dry-run &>/dev/null; then - echo "Version 2.0.0 of fds.sdk.utils is available on PyPI." + if pip install fds.sdk.utils==${{ github.event.release.tag_name }} --dry-run &>/dev/null; then + echo "Version ${{ github.event.release.tag_name }} of fds.sdk.utils is available on PyPI." conda install grayskull conda-build anaconda-client conda info conda list grayskull --version anaconda --version - - grayskull pypi fds.sdk.utils==2.0.0 - + + # Create meta.yaml recipe for the package pulled from PyPi + grayskull pypi fds.sdk.utils==${{ github.event.release.tag_name }} + + # Modify the meta.yaml recipe-maintainers property to include all maintainers of this repo sed -i "/recipe-maintainers:/,/extra:/ s/- .*/- gdulafactset/" fds.sdk.utils/meta.yaml echo " - mima0815" >> fds.sdk.utils/meta.yaml echo " - eschmidtfds" >> fds.sdk.utils/meta.yaml echo " - Filip1x9" >> fds.sdk.utils/meta.yaml echo " - dgawande12" >> fds.sdk.utils/meta.yaml - cat fds.sdk.utils/meta.yaml - + # Build conda package conda config --set anaconda_upload no conda build fds.sdk.utils --output break From a5384d61f922a60ce52b5ae24c18e51f06323bcc Mon Sep 17 00:00:00 2001 From: gdulafactset <156331405+gdulafactset@users.noreply.github.com> Date: Fri, 21 Jun 2024 11:06:43 +0100 Subject: [PATCH 15/38] chore: fix version extracted from tag --- .github/workflows/publish.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 12e6b30..985a9ab 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -48,9 +48,11 @@ jobs: run: | count=0 max_retries=5 + tag=${{ github.event.release.tag_name }} + version=${tag#v} while [ $count -lt $max_retries ]; do - if pip install fds.sdk.utils==${{ github.event.release.tag_name }} --dry-run &>/dev/null; then - echo "Version ${{ github.event.release.tag_name }} of fds.sdk.utils is available on PyPI." + if pip install fds.sdk.utils==${version} --dry-run &>/dev/null; then + echo "Version ${version} of fds.sdk.utils is available on PyPI." conda install grayskull conda-build anaconda-client conda info @@ -59,7 +61,7 @@ jobs: anaconda --version # Create meta.yaml recipe for the package pulled from PyPi - grayskull pypi fds.sdk.utils==${{ github.event.release.tag_name }} + grayskull pypi fds.sdk.utils==${version} # Modify the meta.yaml recipe-maintainers property to include all maintainers of this repo sed -i "/recipe-maintainers:/,/extra:/ s/- .*/- gdulafactset/" fds.sdk.utils/meta.yaml From 90c9695a48d7c3ed9e787ba7afdee597b4d10683 Mon Sep 17 00:00:00 2001 From: gdulafactset <156331405+gdulafactset@users.noreply.github.com> Date: Fri, 28 Jun 2024 16:36:22 +0100 Subject: [PATCH 16/38] chore: add version to echo + try hardcoded version --- .github/workflows/publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 985a9ab..0995535 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -49,7 +49,7 @@ jobs: count=0 max_retries=5 tag=${{ github.event.release.tag_name }} - version=${tag#v} + version=0.9.0 while [ $count -lt $max_retries ]; do if pip install fds.sdk.utils==${version} --dry-run &>/dev/null; then echo "Version ${version} of fds.sdk.utils is available on PyPI." @@ -75,7 +75,7 @@ jobs: conda build fds.sdk.utils --output break else - echo "Version not found, rechecking in $((2 ** count)) seconds..." + echo "Version ${version} not found, rechecking in $((2 ** count)) seconds..." sleep $((2 ** count)) count=$((count + 1)) fi From c3ac0d35c81eaab63808ddaca2d92813093c0b85 Mon Sep 17 00:00:00 2001 From: gdulafactset <156331405+gdulafactset@users.noreply.github.com> Date: Fri, 28 Jun 2024 16:52:30 +0100 Subject: [PATCH 17/38] chore: further testing --- .github/workflows/publish.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 0995535..477a7ff 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -14,6 +14,7 @@ jobs: REPOSITORY_USERNAME: ${{ secrets.PYPI_USERNAME }} REPOSITORY_PASSWORD: ${{ secrets.PYPI_PASSWORD }} REPOSITORY_URL: ${{ secrets.PYPI_PUBLISH_URL }} + CONDA_ENV_NAME: conda-env steps: - name: Checkout repository @@ -28,7 +29,7 @@ jobs: uses: conda-incubator/setup-miniconda@v3 with: miniconda-version: "latest" - activate-environment: foo + activate-environment: ${{ env.CONDA_ENV_NAME }} python-version: ${{ env.PYTHON_VERSION }} - name: Install Poetry @@ -49,7 +50,7 @@ jobs: count=0 max_retries=5 tag=${{ github.event.release.tag_name }} - version=0.9.0 + version=0.10.0 while [ $count -lt $max_retries ]; do if pip install fds.sdk.utils==${version} --dry-run &>/dev/null; then echo "Version ${version} of fds.sdk.utils is available on PyPI." @@ -73,6 +74,7 @@ jobs: # Build conda package conda config --set anaconda_upload no conda build fds.sdk.utils --output + echo "/home/runner/miniconda3/envs/${{ CONDA_ENV_NAME }}/conda-bld/noarch/fds.sdk.utils-0.9.0-py_0.tar.bz2" break else echo "Version ${version} not found, rechecking in $((2 ** count)) seconds..." From 8cdb1d77d6db8260b28684f2a021e44f77128969 Mon Sep 17 00:00:00 2001 From: gdulafactset <156331405+gdulafactset@users.noreply.github.com> Date: Fri, 28 Jun 2024 16:56:13 +0100 Subject: [PATCH 18/38] chore: fix env reference --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 477a7ff..b17f3e1 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -74,7 +74,7 @@ jobs: # Build conda package conda config --set anaconda_upload no conda build fds.sdk.utils --output - echo "/home/runner/miniconda3/envs/${{ CONDA_ENV_NAME }}/conda-bld/noarch/fds.sdk.utils-0.9.0-py_0.tar.bz2" + echo "/home/runner/miniconda3/envs/$CONDA_ENV_NAME/conda-bld/noarch/fds.sdk.utils-0.9.0-py_0.tar.bz2" break else echo "Version ${version} not found, rechecking in $((2 ** count)) seconds..." From 9034ac91c09a0be06def8fd1d8258c50cd576cd7 Mon Sep 17 00:00:00 2001 From: gdulafactset <156331405+gdulafactset@users.noreply.github.com> Date: Fri, 28 Jun 2024 17:04:17 +0100 Subject: [PATCH 19/38] chore: capturing package path --- .github/workflows/publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b17f3e1..dc5355e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -73,8 +73,8 @@ jobs: # Build conda package conda config --set anaconda_upload no - conda build fds.sdk.utils --output - echo "/home/runner/miniconda3/envs/$CONDA_ENV_NAME/conda-bld/noarch/fds.sdk.utils-0.9.0-py_0.tar.bz2" + package_file=$(conda build fds.sdk.utils --output) + echo "${package_file}" break else echo "Version ${version} not found, rechecking in $((2 ** count)) seconds..." From c3662ce179269331436666accd37712100f7ac3e Mon Sep 17 00:00:00 2001 From: gdulafactset <156331405+gdulafactset@users.noreply.github.com> Date: Mon, 1 Jul 2024 11:13:09 +0100 Subject: [PATCH 20/38] chore: publish command to publish 0.9.0 --- .github/workflows/publish.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index dc5355e..38cd376 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -14,6 +14,7 @@ jobs: REPOSITORY_USERNAME: ${{ secrets.PYPI_USERNAME }} REPOSITORY_PASSWORD: ${{ secrets.PYPI_PASSWORD }} REPOSITORY_URL: ${{ secrets.PYPI_PUBLISH_URL }} + ANACONDA_TOKEN: ${{ secrets.ANACONDA_TOKEN }} CONDA_ENV_NAME: conda-env steps: @@ -50,7 +51,7 @@ jobs: count=0 max_retries=5 tag=${{ github.event.release.tag_name }} - version=0.10.0 + version=0.9.0 while [ $count -lt $max_retries ]; do if pip install fds.sdk.utils==${version} --dry-run &>/dev/null; then echo "Version ${version} of fds.sdk.utils is available on PyPI." @@ -74,7 +75,8 @@ jobs: # Build conda package conda config --set anaconda_upload no package_file=$(conda build fds.sdk.utils --output) - echo "${package_file}" + + anaconda -t $ANACONDA_TOKEN upload -u factset -l main ${package_file} break else echo "Version ${version} not found, rechecking in $((2 ** count)) seconds..." From 3497f92ef645b2b1be55eafd7acb001a0fcea007 Mon Sep 17 00:00:00 2001 From: gdulafactset <156331405+gdulafactset@users.noreply.github.com> Date: Mon, 1 Jul 2024 11:18:07 +0100 Subject: [PATCH 21/38] chore: check paths --- .github/workflows/publish.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 38cd376..961f721 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -75,6 +75,11 @@ jobs: # Build conda package conda config --set anaconda_upload no package_file=$(conda build fds.sdk.utils --output) + + cd /home/runner/miniconda3/envs/conda-env/conda-bld/noarch + ls + cd /home/runner/work/enterprise-sdk-utils-python/enterprise-sdk-utils-python + ls anaconda -t $ANACONDA_TOKEN upload -u factset -l main ${package_file} break From 3cc3aed82913b1429170344941a216c290661e46 Mon Sep 17 00:00:00 2001 From: gdulafactset <156331405+gdulafactset@users.noreply.github.com> Date: Mon, 1 Jul 2024 11:21:23 +0100 Subject: [PATCH 22/38] chore: more testing of paths --- .github/workflows/publish.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 961f721..89a5bd0 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -77,9 +77,9 @@ jobs: package_file=$(conda build fds.sdk.utils --output) cd /home/runner/miniconda3/envs/conda-env/conda-bld/noarch - ls - cd /home/runner/work/enterprise-sdk-utils-python/enterprise-sdk-utils-python - ls + ls -la + cd /home/runner/work/enterprise-sdk-utils-python/enterprise-sdk-utils-python/fds.sdk.utils + ls -la anaconda -t $ANACONDA_TOKEN upload -u factset -l main ${package_file} break From 75c2c5cf7d3aae4f5299d96bf7c1c6678bdb867a Mon Sep 17 00:00:00 2001 From: gdulafactset <156331405+gdulafactset@users.noreply.github.com> Date: Mon, 1 Jul 2024 11:27:39 +0100 Subject: [PATCH 23/38] chore: try running build command separately --- .github/workflows/publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 89a5bd0..13b9d9a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -74,14 +74,14 @@ jobs: # Build conda package conda config --set anaconda_upload no - package_file=$(conda build fds.sdk.utils --output) + conda build fds.sdk.utils --output cd /home/runner/miniconda3/envs/conda-env/conda-bld/noarch ls -la cd /home/runner/work/enterprise-sdk-utils-python/enterprise-sdk-utils-python/fds.sdk.utils ls -la - anaconda -t $ANACONDA_TOKEN upload -u factset -l main ${package_file} + anaconda -t $ANACONDA_TOKEN upload -u factset -l main /home/runner/miniconda3/envs/conda-env/conda-bld/noarch/fds.sdk.utils-0.9.0-py_0.tar.bz2 break else echo "Version ${version} not found, rechecking in $((2 ** count)) seconds..." From f3eaa828a2bd01a1d8771c683c8b0449dad58a43 Mon Sep 17 00:00:00 2001 From: gdulafactset <156331405+gdulafactset@users.noreply.github.com> Date: Mon, 1 Jul 2024 11:32:03 +0100 Subject: [PATCH 24/38] chore: try different folder --- .github/workflows/publish.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 13b9d9a..a7697e1 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -74,14 +74,15 @@ jobs: # Build conda package conda config --set anaconda_upload no - conda build fds.sdk.utils --output + package_file=$(conda build fds.sdk.utils --output) - cd /home/runner/miniconda3/envs/conda-env/conda-bld/noarch + cd /home/runner/miniconda3/envs/conda-env/conda-bld/noarch/.cache ls -la + echo "#####" cd /home/runner/work/enterprise-sdk-utils-python/enterprise-sdk-utils-python/fds.sdk.utils ls -la - anaconda -t $ANACONDA_TOKEN upload -u factset -l main /home/runner/miniconda3/envs/conda-env/conda-bld/noarch/fds.sdk.utils-0.9.0-py_0.tar.bz2 + anaconda -t $ANACONDA_TOKEN upload -u factset -l main ${package_file} break else echo "Version ${version} not found, rechecking in $((2 ** count)) seconds..." From 40572657bce05b51958efe526a253d5bf14db38c Mon Sep 17 00:00:00 2001 From: gdulafactset <156331405+gdulafactset@users.noreply.github.com> Date: Mon, 1 Jul 2024 11:35:36 +0100 Subject: [PATCH 25/38] chore: test out all paths --- .github/workflows/publish.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a7697e1..c490549 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -76,7 +76,19 @@ jobs: conda config --set anaconda_upload no package_file=$(conda build fds.sdk.utils --output) - cd /home/runner/miniconda3/envs/conda-env/conda-bld/noarch/.cache + cd /home/runner/miniconda3/envs/conda-env/conda-bld/noarch + ls -la + echo "#####" + cd /home/runner/miniconda3/envs/conda-env/conda-bld + ls -la + echo "#####" + cd /home/runner/miniconda3/envs/conda-env + ls -la + echo "#####" + cd /home/runner/miniconda3/envs + ls -la + echo "#####" + cd /home/runner/miniconda ls -la echo "#####" cd /home/runner/work/enterprise-sdk-utils-python/enterprise-sdk-utils-python/fds.sdk.utils From 899e89e6aeab581c82a5d1a673ff2aef54679baf Mon Sep 17 00:00:00 2001 From: gdulafactset <156331405+gdulafactset@users.noreply.github.com> Date: Mon, 1 Jul 2024 11:48:35 +0100 Subject: [PATCH 26/38] chore: try build without output flag --- .github/workflows/publish.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c490549..6e3cf6a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -74,7 +74,7 @@ jobs: # Build conda package conda config --set anaconda_upload no - package_file=$(conda build fds.sdk.utils --output) + conda build fds.sdk.utils cd /home/runner/miniconda3/envs/conda-env/conda-bld/noarch ls -la @@ -88,13 +88,10 @@ jobs: cd /home/runner/miniconda3/envs ls -la echo "#####" - cd /home/runner/miniconda - ls -la - echo "#####" - cd /home/runner/work/enterprise-sdk-utils-python/enterprise-sdk-utils-python/fds.sdk.utils + cd /home/runner/miniconda3 ls -la - anaconda -t $ANACONDA_TOKEN upload -u factset -l main ${package_file} + anaconda -t $ANACONDA_TOKEN upload -u factset -l main /home/runner/miniconda3/envs/conda-env/conda-bld/noarch/fds.sdk.utils-0.9.0-py_0.tar.bz2 break else echo "Version ${version} not found, rechecking in $((2 ** count)) seconds..." From 79f11760a91d19351b0f03aadc48b7027bd494ef Mon Sep 17 00:00:00 2001 From: gdulafactset <156331405+gdulafactset@users.noreply.github.com> Date: Mon, 1 Jul 2024 11:57:36 +0100 Subject: [PATCH 27/38] chore: cleanup build/publish command --- .github/workflows/publish.yml | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 6e3cf6a..4be33c7 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -74,24 +74,10 @@ jobs: # Build conda package conda config --set anaconda_upload no + package_file=${conda build fds.sdk.utils --output} conda build fds.sdk.utils - - cd /home/runner/miniconda3/envs/conda-env/conda-bld/noarch - ls -la - echo "#####" - cd /home/runner/miniconda3/envs/conda-env/conda-bld - ls -la - echo "#####" - cd /home/runner/miniconda3/envs/conda-env - ls -la - echo "#####" - cd /home/runner/miniconda3/envs - ls -la - echo "#####" - cd /home/runner/miniconda3 - ls -la - anaconda -t $ANACONDA_TOKEN upload -u factset -l main /home/runner/miniconda3/envs/conda-env/conda-bld/noarch/fds.sdk.utils-0.9.0-py_0.tar.bz2 + anaconda -t $ANACONDA_TOKEN upload -u factset -l main ${package_file} break else echo "Version ${version} not found, rechecking in $((2 ** count)) seconds..." From 0bc1df1a52660f5f01306d841841d39630b47ad3 Mon Sep 17 00:00:00 2001 From: gdulafactset <156331405+gdulafactset@users.noreply.github.com> Date: Mon, 1 Jul 2024 11:59:16 +0100 Subject: [PATCH 28/38] chore: fix syntax error --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 4be33c7..3d415a9 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -74,7 +74,7 @@ jobs: # Build conda package conda config --set anaconda_upload no - package_file=${conda build fds.sdk.utils --output} + package_file=$(conda build fds.sdk.utils --output) conda build fds.sdk.utils anaconda -t $ANACONDA_TOKEN upload -u factset -l main ${package_file} From b29b60de42776c617dbbb1789f5511e5a4975525 Mon Sep 17 00:00:00 2001 From: gdulafactset <156331405+gdulafactset@users.noreply.github.com> Date: Mon, 1 Jul 2024 14:27:11 +0100 Subject: [PATCH 29/38] chore: description + dev_url to conda package --- .github/workflows/publish.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 3d415a9..601bc4a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -51,7 +51,7 @@ jobs: count=0 max_retries=5 tag=${{ github.event.release.tag_name }} - version=0.9.0 + version=0.10.0 while [ $count -lt $max_retries ]; do if pip install fds.sdk.utils==${version} --dry-run &>/dev/null; then echo "Version ${version} of fds.sdk.utils is available on PyPI." @@ -72,12 +72,20 @@ jobs: echo " - Filip1x9" >> fds.sdk.utils/meta.yaml echo " - dgawande12" >> fds.sdk.utils/meta.yaml + # Modify meta.yaml to include description and dev_url + sed -i "/about:/a \\ + dev_url: \"https://github.com/factset/enterprise-sdk-utils-python\"\\ + description: \"This repository contains a collection of utilities that supports FactSet's SDK in Python and facilitate usage of FactSet APIs.\" + " "fds.sdk.utils/meta.yaml" + + cat fds.sdk.utils/meta.yaml + # Build conda package conda config --set anaconda_upload no package_file=$(conda build fds.sdk.utils --output) conda build fds.sdk.utils - anaconda -t $ANACONDA_TOKEN upload -u factset -l main ${package_file} + # anaconda -t $ANACONDA_TOKEN upload -u factset -l main ${package_file} break else echo "Version ${version} not found, rechecking in $((2 ** count)) seconds..." From cd81ffb8f809db17c997b60b4ec792016a9e7f8a Mon Sep 17 00:00:00 2001 From: gdulafactset <156331405+gdulafactset@users.noreply.github.com> Date: Mon, 1 Jul 2024 14:29:30 +0100 Subject: [PATCH 30/38] chore: remove tabbing --- .github/workflows/publish.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 601bc4a..568f7de 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -74,9 +74,9 @@ jobs: # Modify meta.yaml to include description and dev_url sed -i "/about:/a \\ - dev_url: \"https://github.com/factset/enterprise-sdk-utils-python\"\\ - description: \"This repository contains a collection of utilities that supports FactSet's SDK in Python and facilitate usage of FactSet APIs.\" - " "fds.sdk.utils/meta.yaml" + dev_url: \"https://github.com/factset/enterprise-sdk-utils-python\"\\ + description: \"This repository contains a collection of utilities that supports FactSet's SDK in Python and facilitate usage of FactSet APIs.\" + " "fds.sdk.utils/meta.yaml" cat fds.sdk.utils/meta.yaml From 7406d8cb40c8527019439e1f9b6c94cec7fe5458 Mon Sep 17 00:00:00 2001 From: gdulafactset <156331405+gdulafactset@users.noreply.github.com> Date: Mon, 1 Jul 2024 14:40:30 +0100 Subject: [PATCH 31/38] chore: try fixing the tabbing --- .github/workflows/publish.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 568f7de..6a7a1b9 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -74,9 +74,9 @@ jobs: # Modify meta.yaml to include description and dev_url sed -i "/about:/a \\ - dev_url: \"https://github.com/factset/enterprise-sdk-utils-python\"\\ - description: \"This repository contains a collection of utilities that supports FactSet's SDK in Python and facilitate usage of FactSet APIs.\" - " "fds.sdk.utils/meta.yaml" + dev_url: \"https://github.com/factset/enterprise-sdk-utils-python\"\\ + description: \"This repository contains a collection of utilities that supports FactSet's SDK in Python and facilitate usage of FactSet APIs.\" + " "fds.sdk.utils/meta.yaml" cat fds.sdk.utils/meta.yaml From ba1966ff963e72c178df9db61531cd08ef53f55b Mon Sep 17 00:00:00 2001 From: gdulafactset <156331405+gdulafactset@users.noreply.github.com> Date: Mon, 1 Jul 2024 14:43:34 +0100 Subject: [PATCH 32/38] chore: publishing v0.10.0 to try out new properties --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 6a7a1b9..bcb986c 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -85,7 +85,7 @@ jobs: package_file=$(conda build fds.sdk.utils --output) conda build fds.sdk.utils - # anaconda -t $ANACONDA_TOKEN upload -u factset -l main ${package_file} + anaconda -t $ANACONDA_TOKEN upload -u factset -l main ${package_file} break else echo "Version ${version} not found, rechecking in $((2 ** count)) seconds..." From d109b862659fb23279b3f9fc33dffa359954f57d Mon Sep 17 00:00:00 2001 From: gdulafactset <156331405+gdulafactset@users.noreply.github.com> Date: Mon, 1 Jul 2024 16:50:57 +0100 Subject: [PATCH 33/38] chore: remove pypi check --- .github/workflows/publish.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index bcb986c..21db5a4 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -48,22 +48,22 @@ jobs: - name: Publish to Anaconda shell: bash -el {0} run: | + conda install grayskull conda-build anaconda-client + conda info + conda list + grayskull --version + anaconda --version + count=0 max_retries=5 tag=${{ github.event.release.tag_name }} version=0.10.0 while [ $count -lt $max_retries ]; do - if pip install fds.sdk.utils==${version} --dry-run &>/dev/null; then + # Create meta.yaml recipe for the package pulled from PyPi + grayskull pypi fds.sdk.utils==${version} + + if [ -f ./fds.sdk.utils/meta.yaml ]; then echo "Version ${version} of fds.sdk.utils is available on PyPI." - - conda install grayskull conda-build anaconda-client - conda info - conda list - grayskull --version - anaconda --version - - # Create meta.yaml recipe for the package pulled from PyPi - grayskull pypi fds.sdk.utils==${version} # Modify the meta.yaml recipe-maintainers property to include all maintainers of this repo sed -i "/recipe-maintainers:/,/extra:/ s/- .*/- gdulafactset/" fds.sdk.utils/meta.yaml From c1d037f6ad3e3c52adf8fed0e73a88dd52d2cfb4 Mon Sep 17 00:00:00 2001 From: gdulafactset <156331405+gdulafactset@users.noreply.github.com> Date: Mon, 1 Jul 2024 16:56:20 +0100 Subject: [PATCH 34/38] chore: test out force flag --- .github/workflows/publish.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 21db5a4..3f4d083 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -78,14 +78,12 @@ jobs: description: \"This repository contains a collection of utilities that supports FactSet's SDK in Python and facilitate usage of FactSet APIs.\" " "fds.sdk.utils/meta.yaml" - cat fds.sdk.utils/meta.yaml - # Build conda package conda config --set anaconda_upload no package_file=$(conda build fds.sdk.utils --output) conda build fds.sdk.utils - anaconda -t $ANACONDA_TOKEN upload -u factset -l main ${package_file} + anaconda -t $ANACONDA_TOKEN upload -u factset -l main --force ${package_file} break else echo "Version ${version} not found, rechecking in $((2 ** count)) seconds..." From 750d49427c76a7534f2f8f56d545a2603ff78a01 Mon Sep 17 00:00:00 2001 From: gdulafactset <156331405+gdulafactset@users.noreply.github.com> Date: Mon, 1 Jul 2024 17:00:53 +0100 Subject: [PATCH 35/38] chore: publishing 2.0.0 to anaconda --- .github/workflows/publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 3f4d083..b4a61fe 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -57,7 +57,7 @@ jobs: count=0 max_retries=5 tag=${{ github.event.release.tag_name }} - version=0.10.0 + version=2.0.0 while [ $count -lt $max_retries ]; do # Create meta.yaml recipe for the package pulled from PyPi grayskull pypi fds.sdk.utils==${version} @@ -83,7 +83,7 @@ jobs: package_file=$(conda build fds.sdk.utils --output) conda build fds.sdk.utils - anaconda -t $ANACONDA_TOKEN upload -u factset -l main --force ${package_file} + anaconda -t $ANACONDA_TOKEN upload -u factset -l main ${package_file} break else echo "Version ${version} not found, rechecking in $((2 ** count)) seconds..." From b605d1a85579be7289533c47a32d79c254c0ce88 Mon Sep 17 00:00:00 2001 From: gdulafactset <156331405+gdulafactset@users.noreply.github.com> Date: Tue, 2 Jul 2024 11:36:42 +0100 Subject: [PATCH 36/38] chore: set channel priority to try fix build issue --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b4a61fe..8017e47 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -81,7 +81,7 @@ jobs: # Build conda package conda config --set anaconda_upload no package_file=$(conda build fds.sdk.utils --output) - conda build fds.sdk.utils + conda build -c conda-forge fds.sdk.utils anaconda -t $ANACONDA_TOKEN upload -u factset -l main ${package_file} break From 3e96d3971d7567cdf9e1de124df47a7de49cfd79 Mon Sep 17 00:00:00 2001 From: gdulafactset <156331405+gdulafactset@users.noreply.github.com> Date: Tue, 2 Jul 2024 11:51:26 +0100 Subject: [PATCH 37/38] chore: cleanup workflow --- .github/workflows/publish.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8017e47..6cd71f8 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -3,7 +3,6 @@ name: Publish on: release: types: [published] - pull_request: jobs: deploy: @@ -45,6 +44,10 @@ jobs: run: | poetry build + - name: Publish + run: | + poetry publish -r publish + - name: Publish to Anaconda shell: bash -el {0} run: | @@ -57,7 +60,7 @@ jobs: count=0 max_retries=5 tag=${{ github.event.release.tag_name }} - version=2.0.0 + version=${tag#v} while [ $count -lt $max_retries ]; do # Create meta.yaml recipe for the package pulled from PyPi grayskull pypi fds.sdk.utils==${version} From e7de3564544ba60fbc47ad8fd51b12bfaef0bac6 Mon Sep 17 00:00:00 2001 From: gdulafactset <156331405+gdulafactset@users.noreply.github.com> Date: Tue, 2 Jul 2024 11:56:31 +0100 Subject: [PATCH 38/38] docs: update README with conda info --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index de0ad7f..eaaa026 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ # FactSet SDK Utilities for Python [![PyPi](https://img.shields.io/pypi/v/fds.sdk.utils)](https://pypi.org/project/fds.sdk.utils/) +[![Anaconda-Server Badge](https://anaconda.org/factset/fds.sdk.utils/badges/version.svg)](https://anaconda.org/factset/fds.sdk.utils) [![Apache-2 license](https://img.shields.io/badge/license-Apache2-brightgreen.svg)](https://www.apache.org/licenses/LICENSE-2.0) This repository contains a collection of utilities that supports FactSet's SDK in Python and facilitate usage of FactSet @@ -22,6 +23,12 @@ poetry add fds.sdk.utils pip install fds.sdk.utils ``` +### Conda + +```sh +conda install factset::fds.sdk.utils +``` + ## Usage This library contains multiple modules, sample usage of each module is below.