-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathsetup.py
69 lines (52 loc) · 1.84 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 setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path
CURRENT_PYTHON = sys.version_info[:2]
REQUIRED_PYTHON = (3, 5)
if CURRENT_PYTHON < REQUIRED_PYTHON:
sys.stderr.write("""
==========================
Unsupported Python version
==========================
Django Prototyper requires Python {}.{}, but you're trying to
install it on Python {}.{}.
""".format(*(REQUIRED_PYTHON + CURRENT_PYTHON)))
sys.exit(1)
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
version = __import__('prototyper').VERSION
setup(
name='django-prototyper',
version=version,
description='Django prototyping tool',
long_description=long_description,
url='https://github.com/vitalik/django-prototyper',
author='Vitaliy Kucheryaviy',
author_email='[email protected]',
packages=find_packages(exclude=['tests']),
install_requires=['django>=2'],
package_data={'prototyper': [
'static/build.js', 'static/logo.png', 'static/welcome.png', # TODO: make it automatic
'demo_plugins/**/*.json',
]},
include_package_data=True,
entry_points={
'console_scripts': [
'prototyper=prototyper.cli:main',
],
},
classifiers=[
'Development Status :: 3 - Alpha', # 3 - Alpha, 4 - Beta, 5 - Production
'Intended Audience :: Developers',
'Topic :: Software Development :: Build Tools',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
],
keywords='django prototype boilerplate development uml diagrams',
)