Skip to content
This repository has been archived by the owner on Sep 1, 2021. It is now read-only.

Commit

Permalink
Fix bug: and dependency_link to setup.py (#133)
Browse files Browse the repository at this point in the history
Signed-off-by: zhenshan.cao <[email protected]>
  • Loading branch information
czs007 authored May 28, 2021
1 parent cd17d88 commit 1fdebfc
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,18 @@
with io.open("pymilvus_orm/__init__.py", "rt", encoding="utf8") as f:
version = re.search(r'__version__ = "(.*?)"', f.read()).group(1)

requirements = []
with open("requirements.txt", 'r') as f:
for line in f.readlines():
requirements.append(line.strip())

def simple_parse_requirements(fpath):
requirements = []
with open("requirements.txt", 'r') as f:
for line in f.readlines():
if line.startswith("--"):
continue
requirements.append(line.strip())
return requirements


requirements = simple_parse_requirements("requirements.txt")

setuptools.setup(
name="pymilvus-orm",
Expand All @@ -24,6 +32,9 @@
url='https://github.com/milvus-io/pymilvus-orm.git',
license="Apache-2.0",
packages=setuptools.find_packages(),
dependency_links=[
'https://test.pypi.org/simple/pymilvus',
],
include_package_data=True,
install_requires=requirements,
classifiers=[
Expand Down

0 comments on commit 1fdebfc

Please sign in to comment.