diff --git a/.github/workflows/commit.yaml b/.github/workflows/commit.yaml index 4a65fe0..d63f5a2 100644 --- a/.github/workflows/commit.yaml +++ b/.github/workflows/commit.yaml @@ -16,7 +16,7 @@ jobs: - name: Setup Python uses: actions/setup-python@v4 with: - python-version: 3.8 + python-version: "3.10" - name: Install Dependencies run: pip install commitizen diff --git a/.github/workflows/prtitle.yaml b/.github/workflows/prtitle.yaml index e52d792..a6cd3b0 100644 --- a/.github/workflows/prtitle.yaml +++ b/.github/workflows/prtitle.yaml @@ -17,7 +17,7 @@ jobs: - name: Setup Python uses: actions/setup-python@v4 with: - python-version: 3.8 + python-version: "3.10" - name: Install Dependencies run: pip install commitizen diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 736a2f3..88b2e64 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -15,7 +15,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: 3.8 + python-version: "3.10" - name: Install dependencies run: | diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 6454b89..8883134 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -19,7 +19,7 @@ jobs: - name: Setup Python uses: actions/setup-python@v4 with: - python-version: 3.8 + python-version: "3.10" - name: Install Dependencies run: | @@ -47,7 +47,7 @@ jobs: - name: Setup Python uses: actions/setup-python@v4 with: - python-version: 3.8 + python-version: "3.10" - name: Install Dependencies run: | @@ -63,7 +63,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest] # eventually add `windows-latest` - python-version: [3.8, 3.9, "3.10"] + python-version: [3.8, 3.9, "3.10", "3.11"] steps: - uses: actions/checkout@v3 @@ -94,7 +94,7 @@ jobs: # - name: Setup Python # uses: actions/setup-python@v4 # with: -# python-version: 3.8 +# python-version: "3.10" # # - name: Install Dependencies # run: pip install .[test] diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b402841..2de45d1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,13 +10,13 @@ repos: - id: isort - repo: https://github.com/psf/black - rev: 22.12.0 + rev: 23.3.0 hooks: - id: black name: black - repo: https://github.com/pycqa/flake8 - rev: 5.0.4 + rev: 6.0.0 hooks: - id: flake8 diff --git a/README.md b/README.md index ce72e2d..a89c674 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ A series of utilities for working with tokens, based on the [`py-tokenlists`](ht ## Dependencies -- [python3](https://www.python.org/downloads) version 3.8 or greater, python3-dev +- [python3](https://www.python.org/downloads) version 3.8 up to 3.11. ## Installation diff --git a/pyproject.toml b/pyproject.toml index 6cbc70f..c25f33d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,7 +15,7 @@ write_to = "ape_tokens/version.py" [tool.black] line-length = 100 -target-version = ['py38', 'py39', 'py310'] +target-version = ['py38', 'py39', 'py310', 'py311'] include = '\.pyi?$' [tool.pytest.ini_options] diff --git a/setup.py b/setup.py index d9c00e0..f9a467b 100644 --- a/setup.py +++ b/setup.py @@ -11,11 +11,11 @@ "hypothesis>=6.2.0,<7.0", # Strategy-based fuzzer ], "lint": [ - "black>=22.12.0", # auto-formatter and linter - "mypy>=0.991", # Static type analyzer + "black>=23.3.0,<24", # auto-formatter and linter + "mypy>=0.991,<1", # Static type analyzer "types-setuptools", # Needed due to mypy typeshed - "flake8>=5.0.4", # Style linter - "isort>=5.10.1", # Import sorting linter + "flake8>=6.0.0,<7", # Style linter + "isort>=5.10.1,<6", # Import sorting linter "mdformat>=0.7.16", # Auto-formatter for markdown "mdformat-gfm>=0.3.5", # Needed for formatting GitHub-flavored markdown "mdformat-frontmatter>=0.4.1", # Needed for frontmatters-style headers in issue templates @@ -65,7 +65,7 @@ python_requires=">=3.8,<4", install_requires=[ "eth-ape>=0.6.0,<0.7", - "tokenlists>=0.1.2", + "tokenlists>=0.1.3", ], entry_points={ "ape_cli_subcommands": [ @@ -90,5 +90,6 @@ "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", ], )