Skip to content

Commit

Permalink
enhance: use trusted publisher and remove deprecated
Browse files Browse the repository at this point in the history
- enhance: Publishing with trusted publisher (milvus-io#2547)
- Remove long deprecated Milvus class (milvus-io#2544)

Ref: https://docs.pypi.org/trusted-publishers/using-a-publisher/
See also: milvus-io#2440, milvus-io#2543

Signed-off-by: yangxuan <xuan.yang@zilliz.com>
  • Loading branch information
XuanYang-cn committed Jan 7, 2025
1 parent 8a7d80f commit da103da
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 1,713 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/publish_dev_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to TestPyPI
runs-on: ubuntu-latest
environment: testpypi
permissions:
id-token: write

steps:
- name: Check out from Git
Expand Down Expand Up @@ -38,6 +41,5 @@ jobs:
- name: Publish distribution 📦 to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.TOKEN_TEST_PYPI }}
repository-url: https://test.pypi.org/legacy/

2 changes: 0 additions & 2 deletions pymilvus/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
from .client.abstract import AnnSearchRequest, Hit, Hits, RRFRanker, SearchResult, WeightedRanker
from .client.asynch import SearchFuture
from .client.prepare import Prepare
from .client.stub import Milvus
from .client.types import (
BulkInsertState,
DataType,
Expand Down Expand Up @@ -89,7 +88,6 @@
"Hits",
"Index",
"IndexType",
"Milvus",
"MilvusClient",
"MilvusException",
"MilvusUnavailableException",
Expand Down
Loading

0 comments on commit da103da

Please sign in to comment.