diff --git a/.github/workflows/publish-to-pypi.yaml b/.github/workflows/publish-to-pypi.yaml index 7b49f743d..0bb7f1dc6 100644 --- a/.github/workflows/publish-to-pypi.yaml +++ b/.github/workflows/publish-to-pypi.yaml @@ -47,34 +47,34 @@ jobs: fetch-depth: 0 # Need full history and tags to compute list of commits in release ref: ${{ inputs.ref }} - - name: Verify prereleaseSuffix not empty if isPrerelease is true - if: ${{ inputs.isPrerelease == true }} - run: | - if [ -z "${{ inputs.prereleaseSuffix }}" ]; then - echo "prereleaseSuffix cannot be empty if isPrerelease is true" - exit 1 - fi + # - name: Verify prereleaseSuffix not empty if isPrerelease is true + # if: ${{ inputs.isPrerelease == true }} + # run: | + # if [ -z "${{ inputs.prereleaseSuffix }}" ]; then + # echo "prereleaseSuffix cannot be empty if isPrerelease is true" + # exit 1 + # fi - - name: Bump version - id: bump - uses: './.github/actions/bump-version' - with: - versionFile: pinecone/__version__ - bumpType: ${{ inputs.releaseLevel }} - prereleaseSuffix: ${{ inputs.prereleaseSuffix }} + # - name: Bump version + # id: bump + # uses: './.github/actions/bump-version' + # with: + # versionFile: pinecone/__version__ + # bumpType: ${{ inputs.releaseLevel }} + # prereleaseSuffix: ${{ inputs.prereleaseSuffix }} - - name: Verify unique release number - run: | - TAG_NAME=${{ steps.bump.outputs.VERSION_TAG }} - if git rev-parse -q --verify "refs/tags/$TAG_NAME" >/dev/null; then - echo "Tag $TAG_NAME already exists." - exit 1 - fi + # - name: Verify unique release number + # run: | + # TAG_NAME=${{ steps.bump.outputs.VERSION_TAG }} + # if git rev-parse -q --verify "refs/tags/$TAG_NAME" >/dev/null; then + # echo "Tag $TAG_NAME already exists." + # exit 1 + # fi - - name: Set up Git - run: | - git config --global user.name "Pinecone CI" - git config --global user.email "clients@pinecone.io" + # - name: Set up Git + # run: | + # git config --global user.name "Pinecone CI" + # git config --global user.email "clients@pinecone.io" - uses: actions/setup-python@v4 with: @@ -91,29 +91,29 @@ jobs: TWINE_REPOSITORY: ${{ inputs.TWINE_REPOSITORY }} run: make upload - - name: Discard changes, if prerelease - if: ${{ inputs.isPrerelease == true }} - run: | - git checkout pinecone/__version__ + # - name: Discard changes (prerelease) + # if: ${{ inputs.isPrerelease == true }} + # run: | + # git checkout pinecone/__version__ - - name: Commit changes, if not prerelease - if: ${{ inputs.isPrerelease == false }} - run: | - git add pinecone/__version__ - git commit -m "[skip ci] Bump version to ${{ steps.bump.outputs.VERSION_TAG }}" + # - name: Commit changes (production release) + # if: ${{ inputs.isPrerelease == false }} + # run: | + # git add pinecone/__version__ + # git commit -m "[skip ci] Bump version to ${{ steps.bump.outputs.VERSION_TAG }}" - - name: Tag version - run: | - newVersionTag="${{ steps.bump.outputs.VERSION_TAG }}" - git tag -a $newVersionTag -m "Release $newVersionTag" + # - name: Tag version + # run: | + # newVersionTag="${{ steps.bump.outputs.VERSION_TAG }}" + # git tag -a $newVersionTag -m "Release $newVersionTag" - - name: Push tags (prerelease) - if: ${{ inputs.isPrerelease == true }} - # In the case of the prerelease, we discarded the version changes - # instead of committing them. So we need a slightly different - # command to push the git tag we created. - run: git push --tags + # - name: Push tags (prerelease) + # if: ${{ inputs.isPrerelease == true }} + # # In the case of the prerelease, we discarded the version changes + # # instead of committing them. So we need a slightly different + # # command to push the git tag we created. + # run: git push --tags - - name: Push tags (production release) - if: ${{ inputs.isPrerelease == false }} - run: git push --follow-tags \ No newline at end of file + # - name: Push tags (production release) + # if: ${{ inputs.isPrerelease == false }} + # run: git push --follow-tags \ No newline at end of file diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index e03c94e9f..9efe2674e 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -18,10 +18,6 @@ on: - 'minor' # new features, backwards compatible - 'major' # breaking changes -env: - PYPI_USERNAME: ${{ secrets.TEST_PYPI_USERNAME }} - PYPI_PASSWORD: ${{ secrets.TEST_PYPI_PASSWORD }} - jobs: testing: uses: './.github/workflows/testing.yaml' diff --git a/setup.py b/setup.py index ad24df8b2..7cb36b75f 100644 --- a/setup.py +++ b/setup.py @@ -18,7 +18,7 @@ def read(fname): setuptools.setup( - name="pinecone-client", + name="pinecone", version=read("pinecone/__version__").strip(), description="Pinecone client and SDK", license="Proprietary License",