forked from timmyomahony/django-pagedown
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
59 lines (51 loc) · 1.86 KB
/
Copy pathsetup.py
File metadata and controls
59 lines (51 loc) · 1.86 KB
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
from os import path
from setuptools import setup
from subprocess import check_call
from distutils.command.build import build
from setuptools.command.develop import develop
from pagedown import VERSION
def get_submodules():
if path.exists('.git'):
check_call(['rm', '-rf', 'pagedown/static/pagedown'])
check_call(['rm', '-rf', 'pagedown/static/pagedown-extra'])
check_call(['git', 'reset', '--hard'])
check_call(['git', 'submodule', 'update', '--init', '--recursive'])
class build_with_submodules(build):
def run(self):
get_submodules()
build.run(self)
class develop_with_submodules(develop):
def run(self):
get_submodules()
develop.run(self)
setup(
name="django-pagedown",
version=".".join(map(str, VERSION)),
author="Timmy O'Mahony",
author_email="hey@timmyomahony.com",
url="https://github.com/timmyomahony/django-pagedown",
description=("A django app that allows the easy addition of Stack Overflow's 'PageDown' markdown editor to a django form field"),
long_description=open('README.md').read(),
packages=['pagedown'],
include_package_data=True,
# _Should_ work back to 1.10 but untested
install_requires=[
"Django >= 1.8",
],
license='LICENSE.txt',
cmdclass={"build": build_with_submodules, "develop": develop_with_submodules},
zip_safe=False,
classifiers=[
'Intended Audience :: Developers',
'Topic :: Text Editors',
'Framework :: Django :: 1.8',
'Framework :: Django :: 1.9',
'Framework :: Django :: 2.0',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4'
]
)