-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
56 lines (51 loc) · 1.77 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
"""Setup.py for django-vega-admin."""
import os
import sys
from setuptools import find_packages, setup
import vega_admin
with open(os.path.join(os.path.dirname(__file__), "README.md")) as readme:
README = readme.read()
if sys.argv[-1] == "publish":
if os.system("pip freeze | grep twine"):
print("twine not installed.\nUse `pip install twine`.\nExiting.")
sys.exit()
os.system("rm -rf build/ *.egg-info/")
os.system("python setup.py sdist bdist_wheel")
os.system("twine upload dist/* --skip-existing")
print("You probably want to also tag the version now:")
print(
f" git tag -a v{vega_admin.__version__} -m 'version {vega_admin.__version__}'"
)
print(" git push --tags")
sys.exit()
setup(
name="django-vega-admin",
version=vega_admin.__version__,
description="Simple and fast automated CRUD for any Django model",
long_description=README,
long_description_content_type="text/markdown",
license="MIT",
author="Kelvin Jayanoris",
author_email="[email protected]",
url="https://github.com/moshthepitt/django-vega-admin",
packages=find_packages(exclude=["docs", "*.egg-info", "build", "tests.*", "tests"]),
install_requires=[
"Django >=2.2",
"django-crispy-forms",
"django-braces",
"django-filter",
"django-tables2",
"tablib",
"pyyaml>=4.2b1", # fixes security vulnerability
],
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Framework :: Django",
"Framework :: Django :: 2.2",
"Framework :: Django :: 3.0",
],
include_package_data=True,
)