forked from ibrahimawadhamid/wagtail_blocks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
69 lines (62 loc) · 2.27 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 os
from setuptools import setup, find_packages
try:
from pip._internal.req import parse_requirements
from pip._internal.download import PipSession
except ImportError:
from pip.req import parse_requirements
from pip.download import PipSession
CURRENT_FILE_PATH = os.path.abspath(__file__)
CURRENT_DIR = os.path.dirname(CURRENT_FILE_PATH)
session = PipSession()
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
# Package dependencies
install_reqs = parse_requirements(
os.path.join(CURRENT_DIR, "requirements.txt"), session=session)
reqs = [str(ir.req) for ir in install_reqs]
# Testing dependencies
testing_extras = [
]
# Documentation dependencies
documentation_extras = [
]
setup(
name='wagtail_blocks',
version=__import__('wagtail_blocks').__version__,
packages=find_packages(),
include_package_data=True,
license='MIT',
description='A Collection of awesome Wagtail CMS stream-field blocks and Charts',
long_description=README,
long_description_content_type='text/markdown',
url='https://github.com/ibrahimawadhamid/wagtail_blocks/',
author='IbrahimAwadHamid',
author_email='[email protected]',
keywords=['WAGTAIL', 'STREAMFIELD', 'WAGTAIL_BLOCKS', 'WAGTAIL CMS'],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development',
],
install_requires=reqs,
extras_require={
'testing': testing_extras,
'docs': documentation_extras
},
)