forked from muellerberndt/laser-ethereum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
88 lines (58 loc) · 1.82 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
from setuptools import setup, find_packages
from setuptools.command.install import install
import os
# Package version (vX.Y.Z). It must match git tag being used for CircleCI
# deployment; otherwise the build will failed.
VERSION = "v0.17.5"
class VerifyVersionCommand(install):
"""Custom command to verify that the git tag matches our version"""
description = 'verify that the git tag matches our version'
def run(self):
tag = os.getenv('CIRCLE_TAG')
if (tag != VERSION):
info = "Git tag: {0} does not match the version of this app: {1}".format(tag, VERSION)
sys.exit(info)
long_description = '''
LASER
=======
LASER is a symbolic Ethereum virtual machine.
Installation and setup
----------------------
Install from Pypi:
.. code:: bash
$ pip install laser-ethereum
Usage
------------------
The easiest way to use LASER is by installing Mythril command line tool:
.. code:: bash
$ pip install mythril
$ myth --init-db
$ myth --fire-laser -a [contract-address]
'''
setup(
name='laser-ethereum',
version=VERSION[1:],
description='Symbolic Ethereum virtual machine',
long_description=long_description,
author='Bernhard Mueller',
author_email='bernhard.mueller11@gmail.com',
license='MIT',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Science/Research',
'Topic :: Software Development :: Testing',
'License :: Free for non-commercial use',
'Programming Language :: Python :: 3.5',
],
keywords='hacking security ethereum',
packages=find_packages(exclude=['contrib', 'docs', 'tests']),
install_requires=[
'z3-solver>=4.5',
'py-flags',
'coverage'
],
python_requires='>=3.5',
cmdclass = {
'verify': VerifyVersionCommand,
},
)