Skip to content

Commit 00b2eb1

Browse files
authored
Merge pull request #8 from hsluoyz/master
Improve setup.py
2 parents e361a22 + caddbf1 commit 00b2eb1

1 file changed

Lines changed: 30 additions & 5 deletions

File tree

setup.py

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,33 @@
1-
from setuptools import setup, find_packages
1+
import setuptools
22

3-
setup(
4-
name='casbin-django-orm-adapter',
3+
desc_file = "README.md"
4+
5+
with open(desc_file, "r") as fh:
6+
long_description = fh.read()
7+
8+
setuptools.setup(
9+
name="casbin-django-orm-adapter",
510
version="0.0.1",
6-
packages=find_packages(),
7-
license="Apache-2.0",
11+
author="Yang Luo",
12+
author_email="hsluoyz@qq.com",
13+
description="Django's ORM adapter for PyCasbin",
14+
long_description=long_description,
15+
long_description_content_type="text/markdown",
16+
url="https://github.com/pycasbin/django-orm-adapter",
17+
keywords=["casbin", "adapter", "storage-driver", "django", "orm", "django-orm", "access-control", "authorization"],
18+
packages=setuptools.find_packages(exclude=("tests",)),
19+
install_requires=["casbin", "django"],
20+
python_requires=">=3.3",
21+
license="Apache 2.0",
22+
classifiers=[
23+
"Programming Language :: Python :: 3.3",
24+
"Programming Language :: Python :: 3.4",
25+
"Programming Language :: Python :: 3.5",
26+
"Programming Language :: Python :: 3.6",
27+
"Programming Language :: Python :: 3.7",
28+
"Programming Language :: Python :: 3.8",
29+
"License :: OSI Approved :: Apache Software License",
30+
"Operating System :: OS Independent",
31+
],
32+
data_files=[desc_file],
833
)

0 commit comments

Comments
 (0)