Skip to content

Commit 1ce6963

Browse files
committedMar 5, 2019
update setup.py / markdown
1 parent 49b6af0 commit 1ce6963

File tree

3 files changed

+21
-6
lines changed

3 files changed

+21
-6
lines changed
 

‎setup.py

+11-6
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,25 @@
88
def read(fname):
99
return open(os.path.join(os.path.dirname(__file__), fname)).read()
1010

11+
12+
version = "0.0.1"
13+
name = "solidity-parser"
14+
1115
setup(
12-
name="solidity-parser",
13-
version="0.0.1",
14-
packages=["solidity_parser"],
16+
name=name,
17+
version=version,
18+
packages=[name],
1519
author="tintinweb",
1620
author_email="tintinweb@oststrom.com",
1721
description=(
1822
"A Solidity parser for Python built on top of a robust ANTLR4 grammar"),
1923
license="MIT",
2024
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',
2329
#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"),
2530
install_requires=["antlr4-python3-runtime"],
2631
#test_suite="nose.collector",
2732
#tests_require=["nose"],

‎solidity_parser/__main__.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/usr/bin/env python
2+
# -*- coding: utf-8 -*-
13

24
import sys
35
import parser

‎solidity_parser/parser.py

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
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+
19
from antlr4 import *
210
from solidity_antlr4.SolidityLexer import SolidityLexer
311
from solidity_antlr4.SolidityParser import SolidityParser

0 commit comments

Comments
 (0)
Failed to load comments.