-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
46 lines (42 loc) · 1.56 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
#!/usr/bin/env python
# http://docs.python.org/distutils/setupscript.html
# http://docs.python.org/2/distutils/examples.html
from setuptools import setup, find_packages
import re
import os
from codecs import open
name = "bang"
with open(os.path.join(name, "__init__.py"), encoding='utf-8') as f:
version = re.search("^__version__\s*=\s*[\'\"]([^\'\"]+)", f.read(), flags=re.I | re.M).group(1)
long_description = ""
if os.path.isfile('README.rst'):
with open('README.rst', encoding='utf-8') as f:
long_description = f.read()
setup(
name="{}text".format(name),
version=version,
description='A static site generator',
long_description=long_description,
author='Jay Marcyes',
author_email='jay@marcyes.com',
url='http://github.com/jaymon/{}'.format(name),
packages=find_packages(),
package_data={name: ['data/*', 'plugins/breadcrumbs/data/*']},
license="MIT",
install_requires=['Jinja2', 'Markdown', 'requests', 'datatypes'],
classifiers=[ # https://pypi.python.org/pypi?:action=list_classifiers
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Topic :: Database',
'Topic :: Software Development :: Libraries',
'Topic :: Utilities',
'Programming Language :: Python :: 3',
],
#test_suite = "{}_test".format(name),
entry_points = {
'console_scripts': ['{} = {}.__main__:console'.format(name, name)]
}
)