-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathsetup.py
69 lines (62 loc) · 1.86 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
import sys
from io import open
from setuptools import find_packages, setup
extras_require = {
'dev': [
'django',
'django_mock_queries',
'pylint',
'pytest-pylint',
'pytest',
'pytest-cov',
'pytest-watch',
'tox',
'six'
],
'code-quality': [
'isort',
'bandit',
'xenon'
],
}
def get_version():
version = '0.0'
for arg in sys.argv:
if arg.startswith('--version'):
version = arg.split("=")[1]
sys.argv.remove(arg)
break
return version if version[0] != 'v' else version[1:]
setup(
name='django-admin-search',
version=get_version(),
description='The "Django Admin Search" is a advanced search modal for django admin',
long_description=open('README.md', encoding='utf-8').read(),
long_description_content_type='text/markdown',
author='Shinneider Libanio da Silva',
author_email='[email protected]',
url='https://github.com/shinneider/django_admin_search',
license='MIT',
packages=find_packages(exclude=['tests*']),
include_package_data=True,
python_requires=">=3.3",
extras_require=extras_require,
install_requires=[
'django',
],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Software Development :: Libraries :: Python Modules',
]
)