/
setup.py
46 lines (39 loc) · 1.29 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
# coding=utf-8
import os
import re
from setuptools import setup
def read(*fname):
with open(os.path.join(os.path.dirname(__file__), *fname)) as f:
return f.read()
def get_version():
for line in read('pyhtml.py').splitlines():
m = re.match(r"__version__\s*=\s'(.*)'", line)
if m:
return m.groups()[0].strip()
raise Exception('Cannot find version')
setup(
name='PyHTML',
version=get_version(),
author=u'Cenk Altı',
author_email='cenkalti@gmail.com',
keywords='html template markup',
url='https://github.com/cenkalti/pyhtml',
py_modules=['pyhtml'],
install_requires=['six'],
zip_safe=False,
include_package_data=True,
test_suite='tests',
description='Simple HTML generator for Python',
long_description=read('README.rst'),
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.5',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)