-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
75 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,43 @@ | ||
# Ape Token Utilities | ||
|
||
A series of utilities for working with tokens, based on the [`py-tokenlists`](https://github.com/ApeWorX/py-tokenlists). | ||
|
||
## Dependencies | ||
|
||
* [python3](https://www.python.org/downloads) version 3.7 or greater, python3-dev | ||
|
||
## Installation | ||
|
||
### via `pip` | ||
|
||
You can install the latest release via [`pip`](https://pypi.org/project/pip/): | ||
|
||
```bash | ||
pip install ape-tokens | ||
``` | ||
|
||
### via `setuptools` | ||
|
||
You can clone the repository and use [`setuptools`](https://github.com/pypa/setuptools) for the most up-to-date version: | ||
|
||
```bash | ||
git clone https://github.com/ApeWorX/ape-tokens.git | ||
cd ape-tokens | ||
python3 setup.py install | ||
``` | ||
|
||
## Quick Usage | ||
|
||
```bash | ||
ape tokens --help | ||
``` | ||
|
||
## Development | ||
|
||
This project is in development and should be considered a beta. | ||
Things might not be in their final state and breaking changes may occur. | ||
Comments, questions, criticisms and pull requests are welcomed. | ||
|
||
## License | ||
|
||
This project is licensed under the [Apache 2.0](LICENSE). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,10 +11,10 @@ | |
"hypothesis>=6.2.0,<7.0", # Strategy-based fuzzer | ||
], | ||
"lint": [ | ||
"black>=20.8b1,<21.0", # auto-formatter and linter | ||
"mypy>=0.800,<1.0", # Static type analyzer | ||
"flake8>=3.8.3,<4.0", # Style linter | ||
"isort>=5.7.0,<6.0", # Import sorting linter | ||
"black>=21.10b0,<22.0", # auto-formatter and linter | ||
"mypy>=0.910,<1.0", # Static type analyzer | ||
"flake8>=3.9.2,<4.0", # Style linter | ||
"isort>=5.9.3,<6.0", # Import sorting linter | ||
], | ||
"doc": [ | ||
"Sphinx>=3.4.3,<4", # Documentation generator | ||
|
@@ -58,11 +58,11 @@ | |
author_email="[email protected]", | ||
url="https://github.com/ApeWorX/ape-tokens", | ||
include_package_data=True, | ||
python_requires=">=3.6, <4", | ||
python_requires=">=3.7, <4", | ||
install_requires=[ | ||
"importlib-metadata ; python_version<'3.8'", | ||
"eth-ape>=0.1.0a14,<0.2", | ||
"tokenlists>=0.1.0b1", | ||
"eth-ape>=0.1.0b2", | ||
"tokenlists>=0.1.1", | ||
], | ||
entry_points={ | ||
"ape_cli_subcommands": [ | ||
|
@@ -77,14 +77,13 @@ | |
packages=find_packages(exclude=["tests", "tests.*"]), | ||
package_data={"ape_tokens": ["py.typed"]}, | ||
classifiers=[ | ||
"Development Status :: 3 - Alpha", | ||
"Development Status :: 4 - Beta", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: Apache Software License", | ||
"Natural Language :: English", | ||
"Operating System :: MacOS", | ||
"Operating System :: POSIX", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
|
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import pytest | ||
from ape._cli import cli | ||
from click.testing import CliRunner | ||
|
||
|
||
@pytest.fixture | ||
def runner(): | ||
return CliRunner() | ||
|
||
|
||
def test_help(runner): | ||
result = runner.invoke(cli, ["tokens", "--help"]) | ||
assert result.exit_code == 0, result.output |