Skip to content

Commit

Permalink
fix: optimized install_requires parsing process
Browse files Browse the repository at this point in the history
  • Loading branch information
ffyuanda committed May 12, 2021
1 parent 72272a2 commit 34d3a4f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
import setuptools
from os import path

desc_file = "README.md"

here = path.abspath(path.dirname(__file__))

with open(desc_file, "r") as fh:
long_description = fh.read()

# get the dependencies and installs
with open(path.join(here, "requirements.txt"), encoding="utf-8") as f:
all_reqs = f.read().split("\n")

install_requires = [x.strip() for x in all_reqs if "git+" not in x]

setuptools.setup(
name="casbin",
author="TechLee",
Expand All @@ -15,7 +24,7 @@
url="https://github.com/casbin/pycasbin",
keywords=["casbin", "acl", "rbac", "abac", "auth", "authz", "authorization", "access control", "permission"],
packages=setuptools.find_packages(exclude=("tests",)),
install_requires=['simpleeval>=0.9.10'],
install_requires=install_requires,
python_requires=">=3.3",
license="Apache 2.0",
classifiers=[
Expand Down

0 comments on commit 34d3a4f

Please sign in to comment.