-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsetup.py
More file actions
61 lines (52 loc) · 1.7 KB
/
setup.py
File metadata and controls
61 lines (52 loc) · 1.7 KB
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
# -*- coding: utf-8 -*-
#
# setup.py for dumpanalyze
# Copyright 2017-2019 IPONWEB Ltd. See License Notice in LICENSE
#
import re
from setuptools import setup
with open('requirements-setup.txt') as fh:
setup_requires = fh.read().splitlines()
with open('requirements-install.txt') as fh:
install_requires = fh.read().splitlines()
with open('requirements-tests.txt') as fh:
tests_require = fh.read().splitlines()
def version():
pyfile = 'dumpanalyze/__init__.py'
with open(pyfile) as fp:
data = fp.read()
match = re.search('__version__ = [\'\"](.+)[\'\"]', data)
assert match, 'cannot find version in {}'.format(pyfile)
return match.group(1)
setup(
name='dumpanalyze',
version=version(),
description='Toolkit for processing LuaJIT plain text dumps',
long_description=open('README.md').read(),
author='Anton Soldatov',
author_email='asoldatov@iponweb.net',
license='MIT',
url='https://github.com/iponweb/dumpanalyze',
packages=['dumpanalyze', 'dumpanalyze.view'],
zip_safe=False,
entry_points={
'console_scripts': [
'dumpanalyze=dumpanalyze.__main__:main',
],
},
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Utilities',
],
keywords='luajit dump',
setup_requires=setup_requires,
install_requires=install_requires,
tests_require=tests_require,
)