From 483f250cec8681fc4e9f0c8129ce4209e08942f4 Mon Sep 17 00:00:00 2001 From: Austin DeNoble Date: Mon, 2 Oct 2023 14:45:11 -0400 Subject: [PATCH] fix nightly-release workflow to adjust module name in pyproject.toml rather than setup.py which was removed, tweak package naming --- .github/workflows/nightly-release.yaml | 18 +++++++++--------- pyproject.toml | 5 ++++- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/.github/workflows/nightly-release.yaml b/.github/workflows/nightly-release.yaml index 7799b0530..ddd5d9e16 100644 --- a/.github/workflows/nightly-release.yaml +++ b/.github/workflows/nightly-release.yaml @@ -17,7 +17,7 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 - + - name: Get recent changes id: list-commits run: | @@ -31,19 +31,19 @@ jobs: - name: Set dev version id: version run: | - versionFile="pinecone/__version__" - currentDate=$(date +%Y%m%d%H%M%S) - versionNumber=$(cat $versionFile) - devVersion="${versionNumber}.dev${currentDate}" - echo "$devVersion" > $versionFile + versionFile="pinecone/__version__" + currentDate=$(date +%Y%m%d%H%M%S) + versionNumber=$(cat $versionFile) + devVersion="${versionNumber}.dev${currentDate}" + echo "$devVersion" > $versionFile - name: Adjust module name run: | - sed -i 's/pinecone-client/pinecone-client-nightly/g' setup.py - + sed -i 's/pinecone-client/pinecone-client-nightly/g' pyproject.toml + - name: Update README run: | - echo "This is a nightly developer build of the Pinecone Python client. It is not intended for production use." > README.md + echo "This is a nightly developer build of the Pinecone Python client. It is not intended for production use." > README.md - uses: actions/setup-python@v4 with: diff --git a/pyproject.toml b/pyproject.toml index 525792200..79045e717 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,8 +22,11 @@ exclude = ''' ''' [tool.poetry] -name = "pinecone" +name = "pinecone-client" version = "2.2.4" +packages = [ + { include="pinecone", from="." }, +] description = "Pinecone client and SDK" authors = ["Pinecone Systems, Inc. "] license = "Apache-2.0"