-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
70 lines (61 loc) · 2.13 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
70
import io
import re
import sys
import os
from os import path
from setuptools import setup, find_packages
if sys.argv[-1] == "publish":
os.system("python setup.py sdist upload")
sys.exit()
install_requires = ["wagtail"]
tests_require = ["pytest-django", "wagtail-factories", "pytest"]
# Convert markdown to rst
# try:
# from pypandoc import convert_file
# long_description = convert_file("README.md", "rst")
# except: # NOQA
# long_description = ""
version = ''
with io.open('wagtail_icon_picker/__init__.py', 'r', encoding='utf8') as fd:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
fd.read(), re.MULTILINE).group(1)
setup(
version=version,
name="wagtail-icon-picker",
description="Wagtail CMS icon picker including Bootstrap Icons, Boxicons, Icofont & Font awesome libraries.",
long_description='',
author="Mahmud Abdur Rahman",
author_email="[email protected]",
url="https://github.com/xeroticikot/wagtail-icon-picker",
project_urls={
"Bug Tracker": "https://github.com/xeroticikot/wagtail-icon-picker/issues",
},
packages=find_packages(
exclude=("*.tests", "*.tests.*", "tests.*", "tests", "example*")
),
include_package_data=True,
install_requires=install_requires,
zip_safe=False,
tests_require=tests_require,
extras_require={"test": tests_require},
license="MIT",
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Web Environment",
"Framework :: Django",
"Framework :: Wagtail",
"Framework :: Wagtail :: 2",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Topic :: Utilities",
],
setup_requires=["setuptools_scm", "pytest-runner"],
python_requires=">=3.6",
)