-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
117 lines (89 loc) · 2.71 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
#!/usr/bin/env python3
#
# Konstrukteur - Static website generator
# Copyright 2013 Sebastian Fastner
#
import sys
if sys.version < "3.2":
print("Konstrukteur requires Python 3.2 or higher")
sys.exit(1)
# Prefer setuptools (aka distribute) over distutils
# - Distutils comes with Python3 but is not capable of installing requires, extras, etc.
# - Distribute is a fork of the Setuptools project (http://packages.python.org/distribute/)
try:
from setuptools import setup
uses = "distribute"
except ImportError:
print("Konstrukteur prefers distribute over distutils for installing dependencies!")
from distutils.core import setup
uses = "distutils"
if uses == "distribute":
extra = {
#"test_suite" : "jasy.test",
"install_requires" : [
"jasy==1.5-beta7",
"pystache>=0.5.3",
"beautifulsoup4>=4.3.2",
"misaka>=1.0.2",
# Requirements of watchdog lib
"pathtools>=0.1.1",
"PyYAML>=3.09",
"argh>=0.8.1",
"unidecode>=0.4.14",
"python-dateutil>=2.2"
]
}
else:
extra = {}
# Integrate batch script for win32 only
extra["scripts"] = [ "bin/konstrukteur" ]
if sys.platform == "win32":
extra["scripts"] += [ "bin/konstrukteur.bat" ]
# Import konstrukteur for version info etc.
import konstrukteur
# Run setup
setup(
name = 'konstrukteur',
version = konstrukteur.__version__,
author = 'Sebastian Software',
author_email = '[email protected]',
maintainer = 'Sebastian Software',
maintainer_email = '[email protected]',
url = 'http://github.com/fastner/konstrukteur',
download_url = "http://pypi.python.org/packages/source/k/konstrukteur/konstrukteur-%s.zip" % konstrukteur.__version__,
license = "MIT",
platforms = 'any',
description = "Static website generator",
long_description = """Konstrukteur is a static website generator based upon jasy.""",
# Via: http://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'License :: Freely Distributable',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Topic :: Software Development :: Code Generators',
'Topic :: Software Development :: Internationalization',
"Topic :: Internet :: WWW/HTTP"
],
packages = [
"konstrukteur",
"konstrukteurlibs/watchdog/src/watchdog",
"konstrukteurlibs/watchdog/src/watchdog/utils",
"konstrukteurlibs/watchdog/src/watchdog/observers",
],
data_files = [
("konstrukteur", [
"LICENSE.md",
"README.md"
]
)
],
**extra
)