3 files changed +21
-6
lines changed Original file line number Diff line number Diff line change 8
8
def read (fname ):
9
9
return open (os .path .join (os .path .dirname (__file__ ), fname )).read ()
10
10
11
+
12
+ version = "0.0.1"
13
+ name = "solidity-parser"
14
+
11
15
setup (
12
- name = "solidity-parser" ,
13
- version = "0.0.1" ,
14
- packages = ["solidity_parser" ],
16
+ name = name ,
17
+ version = version ,
18
+ packages = [name ],
15
19
author = "tintinweb" ,
16
20
author_email = "tintinweb@oststrom.com" ,
17
21
description = (
18
22
"A Solidity parser for Python built on top of a robust ANTLR4 grammar" ),
19
23
license = "MIT" ,
20
24
keywords = ["solidity" ,"parser" ,"antlr" ],
21
- url = "https://github.com/consensys/python-solidity-parser/" ,
22
- download_url = "https://github.com/consensys/python-solidity-parser/tarball/v0.0.1" ,
25
+ url = "https://github.com/consensys/python-%s/" % name ,
26
+ download_url = "https://github.com/consensys/python-%s/tarball/v%s" % (name , version ),
27
+ long_description = read ("README.md" ) if os .path .isfile ("README.md" ) else "" ,
28
+ long_description_content_type = 'text/markdown' ,
23
29
#python setup.py register -r https://testpypi.python.org/pypi
24
- #long_description=read("README.rst") if os.path.isfile("README.rst") else read("README.md"),
25
30
install_requires = ["antlr4-python3-runtime" ],
26
31
#test_suite="nose.collector",
27
32
#tests_require=["nose"],
Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env python
2
+ # -*- coding: utf-8 -*-
1
3
2
4
import sys
3
5
import parser
Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env python
2
+ # -*- coding: utf-8 -*-
3
+ #
4
+ # part of https://github.com/ConsenSys/python-solidity-parser
5
+ # derived from https://github.com/federicobond/solidity-parser-antlr/
6
+ #
7
+
8
+
1
9
from antlr4 import *
2
10
from solidity_antlr4 .SolidityLexer import SolidityLexer
3
11
from solidity_antlr4 .SolidityParser import SolidityParser
0 commit comments