From caddbf151073a289fa77c4e534620d32e563e209 Mon Sep 17 00:00:00 2001 From: Yang Luo Date: Mon, 18 May 2020 12:25:08 +0800 Subject: [PATCH] Improve setup.py --- setup.py | 35 ++++++++++++++++++++++++++++++----- 1 file changed, 30 insertions(+), 5 deletions(-) diff --git a/setup.py b/setup.py index 545012b..8a9afa7 100644 --- a/setup.py +++ b/setup.py @@ -1,8 +1,33 @@ -from setuptools import setup, find_packages +import setuptools -setup( - name='casbin-django-orm-adapter', +desc_file = "README.md" + +with open(desc_file, "r") as fh: + long_description = fh.read() + +setuptools.setup( + name="casbin-django-orm-adapter", version="0.0.1", - packages=find_packages(), - license="Apache-2.0", + author="Yang Luo", + author_email="hsluoyz@qq.com", + description="Django's ORM adapter for PyCasbin", + long_description=long_description, + long_description_content_type="text/markdown", + url="https://github.com/pycasbin/django-orm-adapter", + keywords=["casbin", "adapter", "storage-driver", "django", "orm", "django-orm", "access-control", "authorization"], + packages=setuptools.find_packages(exclude=("tests",)), + install_requires=["casbin", "django"], + python_requires=">=3.3", + license="Apache 2.0", + classifiers=[ + "Programming Language :: Python :: 3.3", + "Programming Language :: Python :: 3.4", + "Programming Language :: Python :: 3.5", + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "License :: OSI Approved :: Apache Software License", + "Operating System :: OS Independent", + ], + data_files=[desc_file], ) \ No newline at end of file