forked from EnigmaCurry/blogofile
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
72 lines (66 loc) · 1.85 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
71
72
# -*- coding: utf-8 -*-
import sys
from setuptools import setup
import blogofobe
py_version = sys.version_info[:2]
PY3 = py_version[0] == 3
PY26 = py_version == (2, 6)
if PY3:
if py_version < (3, 2):
raise RuntimeError(
'On Python 3, blogofobe requires Python 3.2 or later')
else:
if py_version < (2, 6):
raise RuntimeError(
'On Python 2, blogofobe requires Python 2.6 or later')
with open('README.md', 'rt') as readme:
long_description = readme.read()
install_requires = [
'docutils',
'Jinja2',
'Mako',
'Markdown',
'MarkupSafe',
'Pygments',
'pytz',
'PyYAML',
'six',
'Unidecode',
]
dependency_links = []
if PY3:
install_requires.append('textile==2.1.4-py3k')
dependency_links = [
'http://github.com/EnigmaCurry/textile-py3k/tarball/2.1.4'
'#egg=textile-2.1.4-py3k']
else:
install_requires.append('textile')
if PY26:
install_requires.append('argparse')
classifiers = [
'Programming Language :: Python :: {0}'.format(py_version)
for py_version in ['2', '2.6', '2.7', '3', '3.2']]
classifiers.extend([
'Development Status :: 4 - Beta',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: Implementation :: CPython',
'Environment :: Console',
'Natural Language :: English',
])
setup(
name="blogofobe",
version=blogofobe.__version__,
description="A static website compiler and blog engine",
long_description=long_description,
author=blogofobe.__author__,
author_email="[email protected]",
url="http://github.com/wxl/blogofobe",
license="MIT",
classifiers=classifiers,
packages=["blogofobe"],
install_requires=install_requires,
dependency_links=dependency_links,
zip_safe=False,
entry_points={
'console_scripts': ['blogofobe = blogofobe.main:main']},
)