forked from django-ckeditor/django-ckeditor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
60 lines (50 loc) · 1.67 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
#!/usr/bin/env python3
import os
import sys
from setuptools import find_packages, setup
version = __import__("ckeditor").__version__
if sys.argv[-1] == "publish":
os.system("python setup.py sdist upload")
os.system("python setup.py bdist_wheel upload")
sys.exit()
if sys.argv[-1] == "tag":
os.system("git tag -a %s -m 'version %s'" % (version, version))
os.system("git push --tags")
sys.exit()
long_description = "\n".join(
[
open("README.rst", "r").read(),
open("AUTHORS.rst", "r").read(),
open("CHANGELOG.rst", "r").read(),
]
)
def get_source_files():
for dirname, _, files in os.walk("ckeditor/static/ckeditor/ckeditor/_source"):
for filename in files:
yield os.path.join("/".join(dirname.split("/")[1:]), filename)
setup(
name="django-ckeditor",
version=version,
description="Django admin CKEditor integration.",
long_description=long_description,
author="Shaun Sephton & Piotr Malinski",
author_email="[email protected]",
url="https://github.com/django-ckeditor/django-ckeditor",
packages=find_packages(exclude=["*.demo"]),
zip_safe=False,
install_requires=[
"django-js-asset>=1.2.2",
],
include_package_data=True,
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Framework :: Django",
"Intended Audience :: Developers",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
],
)