Skip to content

Commit

Permalink
chore: update plugin (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey authored Dec 20, 2021
1 parent b0fe674 commit 7544caf
Show file tree
Hide file tree
Showing 8 changed files with 75 additions and 33 deletions.
3 changes: 2 additions & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
### What I did

Related issue: #
<!-- The `fixes:` field denotes an issue that will be marked resolved by merging this PR -->
fixes: #

### How I did it

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:

strategy:
matrix:
python-version: [3.6, 3.7, 3.8]
python-version: [3.7, 3.8, 3.9]

steps:
- uses: actions/checkout@v2
Expand Down
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.1.0
rev: v4.0.1
hooks:
- id: check-yaml

Expand All @@ -10,23 +10,23 @@ repos:
- id: seed-isort-config

- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.8.0
rev: v5.9.3
hooks:
- id: isort

- repo: https://github.com/psf/black
rev: 20.8b0
rev: 21.10b0
hooks:
- id: black
name: black

- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.3
rev: 3.9.2
hooks:
- id: flake8

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.800
rev: v0.910-1
hooks:
- id: mypy

Expand Down
41 changes: 41 additions & 0 deletions README.md
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).
22 changes: 5 additions & 17 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
[build-system]
requires = ["setuptools>=51.1.1", "wheel", "setuptools_scm[toml]>=5.0"]

[tool.mypy]
exclude = "build/"

[tool.setuptools_scm]
write_to = "ape_tokens/version.py"

Expand All @@ -11,27 +14,12 @@ write_to = "ape_tokens/version.py"

[tool.black]
line-length = 100
target-version = ['py36', 'py37', 'py38']
target-version = ['py37', 'py38', 'py39']
include = '\.pyi?$'
exclude = '''
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| build
| dist
| env
| venv
)/
'''

[tool.pytest.ini_options]
addopts = """
-n auto
-p no:ape_test
--cov-branch
--cov-report term
--cov-report html
Expand Down
17 changes: 8 additions & 9 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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": [
Expand All @@ -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",
Expand Down
Empty file added tests/__init__.py
Empty file.
13 changes: 13 additions & 0 deletions tests/test_integration.py
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

0 comments on commit 7544caf

Please sign in to comment.