-
Notifications
You must be signed in to change notification settings - Fork 345
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(pymilvus/settings.py): Load configuration without altering the environment #2192
feat(pymilvus/settings.py): Load configuration without altering the environment #2192
Conversation
Welcome @laipz8200! It looks like this is your first PR to milvus-io/pymilvus 🎉 |
…nvironment. Signed-off-by: -LAN- <[email protected]>
8fa848a
to
4854c64
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please replace the dependencies in pyproject.toml too.
Signed-off-by: -LAN- <[email protected]>
47f605f
to
61bd7ce
Compare
/lgtm |
Hello @XuanYang-cn, will this be merged? What should I do? |
Requested changes to ensure env vars set in other ways precede ones set in .env |
Signed-off-by: -LAN- <[email protected]>
694be0f
to
d12b6e5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
request to loosen version constraint
…s >=1.0.1 and <2.0.0 in pyproject.toml and requirements.txt. Signed-off-by: -LAN- <[email protected]>
LGTM! |
@XuanYang-cn can you approve again please? The lgtm label was removed. |
Hello @XuanYang-cn! Could you please let me know when this change can be merged? Is there anything else I need to do? |
Sorry about the late response! |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dr3s, laipz8200, XuanYang-cn The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@XuanYang-cn Thank you:) |
…nvironment (milvus-io#2192) related milvus-io#2166. This PR will replace `environs` with the more lightweight `python-dotenv`. It can load configuration from the dot env file without altering the system environment. --------- Signed-off-by: -LAN- <[email protected]> Signed-off-by: hasan <[email protected]>
- Added grpc as a valid protocol for uri (milvus-io#2090) - build(deps): bump urllib3 from 1.26.18 to 1.26.19 (milvus-io#2140) - build(deps): bump certifi from 2023.7.22 to 2024.7.4 (milvus-io#2170) - feat(pymilvus/settings.py): Load configuration without altering the environment (milvus-io#2192) - feat: Add compact, get_server_version and flush api (milvus-io#2326) - Fix typo and correct grammar (milvus-io#2333) - Update return type of describe_role to Dict (milvus-io#2337) - enhance: Reorganize the examples (milvus-io#2340) Related: milvus-io#2166, milvus-io#2325, milvus-io#2332 Co-authored-by: Bruno Faria <[email protected]> Co-authored-by: Bruno Faria <[email protected]> Co-authored-by: dependabot[bot] <[email protected]> Co-authored-by: -LAN- <[email protected]> Co-authored-by: zhenshan.cao <[email protected]> Co-authored-by: NamCaoHai <[email protected]> Co-authored-by: yangxuan <[email protected]>
- Added grpc as a valid protocol for uri (milvus-io#2090) - build(deps): bump urllib3 from 1.26.18 to 1.26.19 (milvus-io#2140) - build(deps): bump certifi from 2023.7.22 to 2024.7.4 (milvus-io#2170) - feat(pymilvus/settings.py): Load configuration without altering the environment (milvus-io#2192) - feat: Add compact, get_server_version and flush api (milvus-io#2326) - Fix typo and correct grammar (milvus-io#2333) - Update return type of describe_role to Dict (milvus-io#2337) - enhance: Reorganize the examples (milvus-io#2340) Related: milvus-io#2166, milvus-io#2325, milvus-io#2332 Co-authored-by: Bruno Faria <[email protected]> Co-authored-by: Bruno Faria <[email protected]> Co-authored-by: dependabot[bot] <[email protected]> Co-authored-by: -LAN- <[email protected]> Co-authored-by: zhenshan.cao <[email protected]> Co-authored-by: NamCaoHai <[email protected]> Co-authored-by: yangxuan <[email protected]> Signed-off-by: yangxuan <[email protected]>
- Added grpc as a valid protocol for uri (#2090) - build(deps): bump urllib3 from 1.26.18 to 1.26.19 (#2140) - build(deps): bump certifi from 2023.7.22 to 2024.7.4 (#2170) - feat(pymilvus/settings.py): Load configuration without altering the environment (#2192) - feat: Add compact, get_server_version and flush api (#2326) - Fix typo and correct grammar (#2333) - Update return type of describe_role to Dict (#2337) - enhance: Reorganize the examples (#2340) Related: #2166, #2325, #2332 Signed-off-by: yangxuan <[email protected]> Co-authored-by: Bruno Faria <[email protected]> Co-authored-by: Bruno Faria <[email protected]> Co-authored-by: dependabot[bot] <[email protected]> Co-authored-by: -LAN- <[email protected]> Co-authored-by: zhenshan.cao <[email protected]> Co-authored-by: NamCaoHai <[email protected]>
fwiw, i'm planning to add support for reading btw this isn't to argue againt this PR getting merged--i'm all for removing dependencies when sensible, even if they're my libraries 😅 . just raising that this PR may not have achieved its original intent |
related #2166.
This PR will replace
environs
with the more lightweightpython-dotenv
. It can load configuration from the dot env file without altering the system environment.