forked from mgedmin/irclog2html
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·62 lines (54 loc) · 1.87 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
#!/usr/bin/env python
import os
import re
from io import open
from setuptools import setup
here = os.path.dirname(__file__)
def read(filename):
with open(os.path.join(here, filename), encoding='utf-8') as f:
return f.read()
long_description = read('README.rst') + '\n\n' + read('CHANGES.rst')
version_file = os.path.join(here, 'src/irclog2html/_version.py')
d = dict(re.findall('''(__[a-z]+__) *= *'([^']*)''', read(version_file)))
version = d['__version__']
homepage = d['__homepage__']
setup(
name='irclog2html',
version=version,
author='Marius Gedminas',
author_email='marius@gedmin.as',
license='GPL v2 or later',
platforms=['any'],
url=homepage,
description='Convert IRC logs to HTML',
long_description=long_description,
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
],
keywords='irc log colorizer html wsgi',
extras_require=dict(test=[
"mock",
"zope.testing",
]),
packages=['irclog2html'],
package_dir={'': 'src'},
include_package_data=True,
entry_points="""
[console_scripts]
irclog2html = irclog2html.irclog2html:main
logs2html = irclog2html.logs2html:main
irclogsearch = irclog2html.irclogsearch:main
irclogserver = irclog2html.irclogserver:main
""",
zip_safe=False,
)