forked from pyblosxom/pyblosxom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
60 lines (52 loc) · 1.84 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
#!/usr/bin/env python
#######################################################################
# This file is part of Pyblosxom.
#
# Copyright (C) 2003-2011 by the Pyblosxom team. See AUTHORS.
#
# Pyblosxom is distributed under the MIT license. See the file
# LICENSE for distribution details.
#######################################################################
import os
import re
from setuptools import setup, find_packages
READMEFILE = "README.rst"
VERSIONFILE = os.path.join("Pyblosxom", "_version.py")
VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
def get_version():
verstrline = open(VERSIONFILE, "rt").read()
mo = re.search(VSRE, verstrline, re.M)
if mo:
return mo.group(1)
else:
raise RuntimeError(
"Unable to find version string in %s." % VERSIONFILE)
setup(
name="pyblosxom",
version=get_version(),
description="Pyblosxom is a file-based weblog engine.",
long_description=open(READMEFILE).read(),
license='MIT',
author="Will Kahn-Greene, et al",
author_email="[email protected]",
keywords="blog pyblosxom cgi weblog wsgi",
url="http://pyblosxom.github.com/",
packages=find_packages(exclude=["ez_setup"]),
scripts=["bin/pyblosxom-cmd"],
zip_safe=False,
test_suite="Pyblosxom.tests.testrunner.test_suite",
include_package_data=True,
install_requires=[],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content"
]
)