Debian Codegraph @

setup.py

raw
1 #!/usr/bin/env python
2 import os
3 import re
4 from io import open
5
6 from setuptools import setup
7
8
9 here = os.path.dirname(__file__)
10
11
12 def read(filename):
13 with open(os.path.join(here, filename), encoding='utf-8') as f:
14 return f.read()
15
16
17 long_description = read('README.rst') + '\n\n' + read('CHANGES.rst')
18
19 version_file = os.path.join(here, 'src/irclog2html/_version.py')
20 d = dict(re.findall('''(__[a-z]+__) *= *'([^']*)''', read(version_file)))
21 version = d['__version__']
22 homepage = d['__homepage__']
23
24 setup(
25 name='irclog2html',
26 version=version,
27 author='Marius Gedminas',
28 author_email='[email protected]',
29 license='GPL v2 or v3',
30 platforms=['any'],
31 url=homepage,
32 description='Convert IRC logs to HTML',
33 long_description=long_description,
34 long_description_content_type='text/x-rst',
35 classifiers=[
36 'Development Status :: 4 - Beta',
37 'Intended Audience :: System Administrators',
38 'License :: OSI Approved :: GNU General Public License v2 (GPLv2)',
39 'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
40 'Operating System :: OS Independent',
41 'Programming Language :: Python :: 3.7',
42 'Programming Language :: Python :: 3.8',
43 'Programming Language :: Python :: 3.9',
44 'Programming Language :: Python :: 3.10',
45 'Programming Language :: Python :: 3.11',
46 'Programming Language :: Python :: 3.12',
47 'Programming Language :: Python :: 3.13',
48 'Programming Language :: Python :: Implementation :: CPython',
49 'Programming Language :: Python :: Implementation :: PyPy',
50 ],
51 python_requires='>=3.7',
52 keywords='irc log colorizer html wsgi',
53 extras_require=dict(test=[
54 "zope.testing",
55 ]),
56 packages=['irclog2html'],
57 package_dir={'': 'src'},
58 include_package_data=True,
59 entry_points="""
60 [console_scripts]
61 irclog2html = irclog2html.irclog2html:main
62 logs2html = irclog2html.logs2html:main
63 irclogsearch = irclog2html.irclogsearch:main
64 irclogserver = irclog2html.irclogserver:main
65 """,
66 zip_safe=False,
67 )