forked from dimagi/django-prbac
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
54 lines (47 loc) · 1.75 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import os
import re
from io import open
from setuptools import setup, find_packages
THISDIR = os.path.dirname(os.path.abspath(__file__))
def get_version():
version_re = re.compile(r"""^__version__ = (['"])(.*?)\1$""", re.M)
path = os.path.join(THISDIR, "django_prbac/__init__.py")
with open(path, encoding="utf-8") as fh:
return version_re.search(fh.read()).group(2)
def get_readme():
path = os.path.join(THISDIR, "README.rst")
with open(path, encoding="utf-8") as fh:
return fh.read()
setup(
name='django-prbac',
version=get_version(),
description='Parameterized Role-Based Access Control for Django',
long_description=get_readme(),
author='Dimagi',
author_email='dev@dimagi.com',
url='http://github.com/dimagi/django-prbac',
packages=find_packages(),
zip_safe=False,
install_requires=[
# avoid django 2 <2.2.10 and django 3 < 3.0.7
# https://github.com/advisories/GHSA-hmr4-m2h5-33qx
'django>=2.2.13,!=3.0.0,!=3.0.1,!=3.0.2,!=3.0.3,!=3.0.4,!=3.0.5,!=3.0.6,<=4.2.9',
'django-jsonfield-backport>=1.0,<2',
'simplejson',
],
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Topic :: Software Development :: Libraries :: Python Modules',
],
options={"bdist_wheel": {"universal": "1"}},
)