-
Notifications
You must be signed in to change notification settings - Fork 337
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- <laipz8200@outlook.com>
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- <laipz8200@outlook.com>
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- <laipz8200@outlook.com>
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- <laipz8200@outlook.com>
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- <laipz8200@outlook.com> Signed-off-by: hasan <hasan@m2sys.com>
- 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 <brunocf@ibm.com> Co-authored-by: Bruno Faria <brunocfnba@gmail.com> Co-authored-by: dependabot[bot] <support@github.com> Co-authored-by: -LAN- <laipz8200@outlook.com> Co-authored-by: zhenshan.cao <zhenshan.cao@zilliz.com> Co-authored-by: NamCaoHai <namch.hust@gmail.com> Co-authored-by: yangxuan <xuan.yang@zilliz.com>
- 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 <brunocf@ibm.com> Co-authored-by: Bruno Faria <brunocfnba@gmail.com> Co-authored-by: dependabot[bot] <support@github.com> Co-authored-by: -LAN- <laipz8200@outlook.com> Co-authored-by: zhenshan.cao <zhenshan.cao@zilliz.com> Co-authored-by: NamCaoHai <namch.hust@gmail.com> Co-authored-by: yangxuan <xuan.yang@zilliz.com> Signed-off-by: yangxuan <xuan.yang@zilliz.com>
- 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 <xuan.yang@zilliz.com> Co-authored-by: Bruno Faria <brunocfnba@gmail.com> Co-authored-by: Bruno Faria <brunocf@ibm.com> Co-authored-by: dependabot[bot] <support@github.com> Co-authored-by: -LAN- <laipz8200@outlook.com> Co-authored-by: zhenshan.cao <zhenshan.cao@zilliz.com> Co-authored-by: NamCaoHai <namch.hust@gmail.com>
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.