Skip to content

Commit

Permalink
Updated setup.py to use requirements.txt during installation
Browse files Browse the repository at this point in the history
  • Loading branch information
hayesgb committed Sep 12, 2020
1 parent e77fdff commit db9dd79
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,20 @@
import versioneer


def is_ignored(line):
line = line.strip()
return (not line) or (line[0] == "#")

def load_deps(path):
"""Load dependencies from requirements file"""
with open(path) as fp:
return [line.strip() for line in fp if not is_ignored(line)]

with open("README.md") as fp:
long_desc = fp.read()

install_requires = list(load_deps("requirements.txt"))

setup(
name="adlfs",
version=versioneer.get_version(),
Expand All @@ -18,15 +32,7 @@
packages=["adlfs"],
long_description_content_type="text/markdown",
long_description=open("README.md").read() if exists("README.md") else "",
install_requires=[
"aiohttp",
"azure-core>=1.5.0",
"azure-datalake-store>=0.0.46,<0.1",
"azure-identity",
"azure-storage-blob>=12.5.0",
"fsspec>=0.8.0",
"msrestazure",
],
install_requires=install_requires,
tests_require=["pytest>5.0,<6.0", "docker"],
zip_safe=False,
)

0 comments on commit db9dd79

Please sign in to comment.