diff --git a/.editorconfig b/.editorconfig index 04dc65a..f9fa8b1 100644 --- a/.editorconfig +++ b/.editorconfig @@ -9,5 +9,5 @@ insert_final_newline = true max_line_length = 120 trim_trailing_whitespace = true -[{*.py, run-script}] +[{*.py,run-script}] indent_size = 4 diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index d63e4dd..7d72417 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -18,7 +18,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: '3.13.0-rc.2' + python-version: '3.13' - name: version run: sed -i "s/__version__ = '.*'/__version__ = '$VERSION'/g" aiocli/__init__.py - name: deps diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e932980..db7cb66 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ jobs: strategy: matrix: os: [ ubuntu-latest ] - python-version: [ '3.9', '3.10', '3.11', '3.12', '3.13.0-rc.2' ] + python-version: [ '3.10', '3.11', '3.12', '3.13' ] steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 diff --git a/Containerfile b/Containerfile index 7340777..b90c085 100644 --- a/Containerfile +++ b/Containerfile @@ -4,8 +4,7 @@ WORKDIR /app RUN conda install -y --download-only "python=3.12" && \ conda install -y --download-only "python=3.11" && \ - conda install -y --download-only "python=3.10" && \ - conda install -y --download-only "python=3.9" + conda install -y --download-only "python=3.10" COPY . ./ @@ -26,8 +25,3 @@ FROM miniconda3 AS py310 RUN conda install -y "python=3.10" RUN --mount=type=cache,target=/root/.cache/pip python3 run-script dev-install - -FROM miniconda3 AS py39 - -RUN conda install -y "python=3.9" -RUN --mount=type=cache,target=/root/.cache/pip python3 run-script dev-install diff --git a/LICENSE b/LICENSE index 814f12b..2f6c58c 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2020 - 2024 aiopy +Copyright (c) 2020 - 2025 aiopy Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index e2243be..3be09fa 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,7 @@ if __name__ == '__main__': ## Requirements -- Python >= 3.9 +- Python >= 3.10 ## Contributing diff --git a/compose.yml b/compose.yml index 532f202..3289e23 100644 --- a/compose.yml +++ b/compose.yml @@ -3,13 +3,11 @@ services: build: context: . dockerfile: Containerfile - target: py39 # target: py310 # target: py311 -# target: py312 - image: ghcr.io/aiopy/python-aiocli:py39-${VERSION:-latest} + target: py312 # image: ghcr.io/aiopy/python-aiocli:py310-${VERSION:-latest} # image: ghcr.io/aiopy/python-aiocli:py311-${VERSION:-latest} -# image: ghcr.io/aiopy/python-aiocli:py312-${VERSION:-latest} + image: ghcr.io/aiopy/python-aiocli:py312-${VERSION:-latest} volumes: - .:/app diff --git a/docs_src/config/en/mkdocs.yml b/docs_src/config/en/mkdocs.yml index 61b5b09..e3ed6f6 100644 --- a/docs_src/config/en/mkdocs.yml +++ b/docs_src/config/en/mkdocs.yml @@ -1,4 +1,4 @@ -copyright: 'Copyright © 2020 - 2022' +copyright: 'Copyright © 2020 - 2025' docs_dir: '../../docs/en' diff --git a/docs_src/config/es/mkdocs.yml b/docs_src/config/es/mkdocs.yml index f4ca7e9..46bcade 100644 --- a/docs_src/config/es/mkdocs.yml +++ b/docs_src/config/es/mkdocs.yml @@ -1,4 +1,4 @@ -copyright: 'Copyright © 2020 - 2022' +copyright: 'Copyright © 2020 - 2025' docs_dir: '../../docs/es' diff --git a/docs_src/docs/en/index.md b/docs_src/docs/en/index.md index f798caf..8f94c87 100644 --- a/docs_src/docs/en/index.md +++ b/docs_src/docs/en/index.md @@ -1,6 +1,6 @@ # AIOCLI -A modern, lightweight, async console runner for building CLIs with Python 3.7+ based on standard Python's [argparse module](https://docs.python.org/3/library/argparse.html) and [type hints](https://docs.python.org/3/library/typing.html) highly inspired by [AIOHTTP](https://github.com/aio-libs/aiohttp) and [FastApi](https://github.com/tiangolo/fastapi). +A modern, lightweight, async console runner for building CLIs with Python 3.10+ based on standard Python's [argparse module](https://docs.python.org/3/library/argparse.html) and [type hints](https://docs.python.org/3/library/typing.html) highly inspired by [AIOHTTP](https://github.com/aio-libs/aiohttp) and [FastApi](https://github.com/tiangolo/fastapi). Key Features: @@ -11,7 +11,7 @@ Key Features: ## Requirements -- Python 3.7+ +- Python 3.10+ ## Installation diff --git a/docs_src/docs/es/index.md b/docs_src/docs/es/index.md index 4ab0d34..879aebf 100644 --- a/docs_src/docs/es/index.md +++ b/docs_src/docs/es/index.md @@ -1,6 +1,6 @@ # AIOCLI -Un moderno ligero ejecutor de consola asíncrono para construir CLIs con Python 3.7+ basado en el módulo estándar de Python [argparse](https://docs.python.org/3/library/argparse.html) y [type hints](https://docs.python.org/3/library/typing.html) altamente inspirado en [AIOHTTP](https://github.com/aio-libs/aiohttp) y [FastApi](https://github.com/tiangolo/fastapi). +Un moderno ligero ejecutor de consola asíncrono para construir CLIs con Python 3.10+ basado en el módulo estándar de Python [argparse](https://docs.python.org/3/library/argparse.html) y [type hints](https://docs.python.org/3/library/typing.html) altamente inspirado en [AIOHTTP](https://github.com/aio-libs/aiohttp) y [FastApi](https://github.com/tiangolo/fastapi). Características principales: @@ -11,7 +11,7 @@ Características principales: ## Requisitos -- Python 3.7+ +- Python 3.10+ ## Instalación diff --git a/pyproject.toml b/pyproject.toml index 8a44b6d..4e3d0b3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -24,7 +24,6 @@ classifiers = [ "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3 :: Only", - "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", @@ -37,12 +36,12 @@ keywords = ["asyncio", "async", "aio", "cli", "console"] license = { text = "MIT" } name = "aiocli" readme = "README.md" -requires-python = ">=3.9" +requires-python = ">=3.10" [project.optional-dependencies] dev = [ - "pre-commit>=3.8.0", - 'tomli>=2.0.1; python_version<"3.11"', + "pre-commit>=4.2.0", + 'tomli>=2.2.1; python_version<"3.11"', 'types-toml>=0.10.8.20240310; python_version<"3.11"', ] deploy = [