diff --git a/.circleci/config.yml b/.circleci/config.yml index 4e196c79d..43be42b0d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -89,4 +89,4 @@ workflows: tags: only: /^v.*/ branches: - ignore: /.*/ \ No newline at end of file + ignore: /.*/ diff --git a/README.md b/README.md index 526658ff3..0c86fa5fc 100644 --- a/README.md +++ b/README.md @@ -27,10 +27,10 @@ The `neo3-boa` compiler is a tool for compiling Python files to the `.nef` and ` - Converts Functions - Converts Local Variable Declarations and Assignments - ``` - foo: int = 42 - bar = foo - ``` +```python +foo: int = 42 +bar = foo +``` - Converts Number Arithmetic Operations (`+`, `-`, `*`, `//`, `%`) - Converts Numeric Arithmetic Augmented assignment Operators (`+=`, `-=`, `*=`, `//=`, `%=`) diff --git a/README.rst b/README.rst index 41b1d4521..d9590978e 100644 --- a/README.rst +++ b/README.rst @@ -32,7 +32,12 @@ What it currently does... - Converts Functions - Converts Local Variable Declarations and Assignments - ``foo: int = 42 bar = foo`` + +.. code:: python + + foo: int = 42 + bar = foo + - Converts Number Arithmetic Operations (``+``, ``-``, ``*``, ``//``, ``%``) @@ -107,5 +112,3 @@ What it will do... - Convert String Slicing (``x = 'example'[2:4:2]``, ``x = 'example'[::2]``) - - diff --git a/boa3/analyser/__init__.py b/boa3/analyser/__init__.py new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/boa3/analyser/__init__.py @@ -0,0 +1 @@ + diff --git a/boa3/compiler/__init__.py b/boa3/compiler/__init__.py new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/boa3/compiler/__init__.py @@ -0,0 +1 @@ + diff --git a/boa3/exception/__init__.py b/boa3/exception/__init__.py new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/boa3/exception/__init__.py @@ -0,0 +1 @@ + diff --git a/boa3/model/__init__.py b/boa3/model/__init__.py new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/boa3/model/__init__.py @@ -0,0 +1 @@ + diff --git a/boa3/model/builtin/__init__.py b/boa3/model/builtin/__init__.py new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/boa3/model/builtin/__init__.py @@ -0,0 +1 @@ + diff --git a/boa3/model/builtin/classmethod/__init__.py b/boa3/model/builtin/classmethod/__init__.py new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/boa3/model/builtin/classmethod/__init__.py @@ -0,0 +1 @@ + diff --git a/boa3/model/builtin/decorator/__init__.py b/boa3/model/builtin/decorator/__init__.py new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/boa3/model/builtin/decorator/__init__.py @@ -0,0 +1 @@ + diff --git a/boa3/model/builtin/method/__init__.py b/boa3/model/builtin/method/__init__.py new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/boa3/model/builtin/method/__init__.py @@ -0,0 +1 @@ + diff --git a/boa3/model/operation/__init__.py b/boa3/model/operation/__init__.py new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/boa3/model/operation/__init__.py @@ -0,0 +1 @@ + diff --git a/boa3/model/operation/binary/__init__.py b/boa3/model/operation/binary/__init__.py new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/boa3/model/operation/binary/__init__.py @@ -0,0 +1 @@ + diff --git a/boa3/model/operation/binary/arithmetic/__init__.py b/boa3/model/operation/binary/arithmetic/__init__.py new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/boa3/model/operation/binary/arithmetic/__init__.py @@ -0,0 +1 @@ + diff --git a/boa3/model/operation/binary/logical/__init__.py b/boa3/model/operation/binary/logical/__init__.py new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/boa3/model/operation/binary/logical/__init__.py @@ -0,0 +1 @@ + diff --git a/boa3/model/operation/binary/relational/__init__.py b/boa3/model/operation/binary/relational/__init__.py new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/boa3/model/operation/binary/relational/__init__.py @@ -0,0 +1 @@ + diff --git a/boa3/model/operation/unary/__init__.py b/boa3/model/operation/unary/__init__.py new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/boa3/model/operation/unary/__init__.py @@ -0,0 +1 @@ + diff --git a/boa3/model/type/__init__.py b/boa3/model/type/__init__.py new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/boa3/model/type/__init__.py @@ -0,0 +1 @@ + diff --git a/boa3/model/type/primitive/__init__.py b/boa3/model/type/primitive/__init__.py new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/boa3/model/type/primitive/__init__.py @@ -0,0 +1 @@ + diff --git a/boa3/model/type/sequence/__init__.py b/boa3/model/type/sequence/__init__.py new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/boa3/model/type/sequence/__init__.py @@ -0,0 +1 @@ + diff --git a/boa3/model/type/sequence/mutable/__init__.py b/boa3/model/type/sequence/mutable/__init__.py new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/boa3/model/type/sequence/mutable/__init__.py @@ -0,0 +1 @@ + diff --git a/boa3/neo/smart_contract/__init__.py b/boa3/neo/smart_contract/__init__.py new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/boa3/neo/smart_contract/__init__.py @@ -0,0 +1 @@ + diff --git a/boa3/neo/utils/__init__.py b/boa3/neo/utils/__init__.py new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/boa3/neo/utils/__init__.py @@ -0,0 +1 @@ + diff --git a/boa3/neo/vm/__init__.py b/boa3/neo/vm/__init__.py new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/boa3/neo/vm/__init__.py @@ -0,0 +1 @@ + diff --git a/boa3/neo/vm/opcode/__init__.py b/boa3/neo/vm/opcode/__init__.py new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/boa3/neo/vm/opcode/__init__.py @@ -0,0 +1 @@ + diff --git a/boa3/neo/vm/type/__init__.py b/boa3/neo/vm/type/__init__.py new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/boa3/neo/vm/type/__init__.py @@ -0,0 +1 @@ + diff --git a/requirements_dev.txt b/requirements_dev.txt index 23b09f619..992384c47 100644 --- a/requirements_dev.txt +++ b/requirements_dev.txt @@ -3,4 +3,4 @@ bumpversion==0.6.0 coverage==4.5.4 pycodestyle==2.5.0 twine>=1.10.0 -wheel>=0.30.0 \ No newline at end of file +wheel>=0.30.0 diff --git a/setup.py b/setup.py index 4e23209fb..9e5a59c0f 100644 --- a/setup.py +++ b/setup.py @@ -87,15 +87,15 @@ # If there are data files included in your packages that need to be # installed, specify them here. If using Python 2.6 or less, then these # have to be included in MANIFEST.in as well. - #package_data={ + # package_data={ # 'sample': ['package_data.dat'], - #}, + # }, # Although 'package_data' is the preferred approach, in some case you may # need to place data files outside of your packages. See: # http://docs.python.org/3.4/distutils/setupscript.html#installing-additional-files # noqa # In this case, 'data_file' will be installed into '/my_data' - #data_files=[('my_data', ['data/data_file'])], + # data_files=[('my_data', ['data/data_file'])], # To provide executable scripts, use entry points in preference to the # "scripts" keyword. Entry points provide cross-platform support and allow