diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 36d51c9..85fb649 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,6 +1,6 @@ [bumpversion] commit = True -tag = False +tag = True current_version = 0.1.0 [bumpversion:file:pyproject.toml] diff --git a/.github/workflows/pre-commit-autoupdate.yml b/.github/workflows/pre-commit-autoupdate.yml index 5122634..ddf49cd 100644 --- a/.github/workflows/pre-commit-autoupdate.yml +++ b/.github/workflows/pre-commit-autoupdate.yml @@ -12,10 +12,10 @@ jobs: steps: - uses: actions/checkout@v4.1.1 - - name: Set up Python 3.9 + - name: Set up Python 3.10 uses: actions/setup-python@v5.1.1 with: - python-version: 3.9 + python-version: "3.10" - name: Install system deps shell: bash @@ -26,6 +26,7 @@ jobs: - name: Run autoupdate run: poetry run pre-commit autoupdate + continue-on-error: true - name: Run pre-commit run: poetry run pre-commit run --all-files diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7974bdd..cba63cd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,10 +11,10 @@ jobs: steps: - uses: actions/checkout@v4.1.1 - - name: Set up Python 3.9 + - name: Set up Python 3.10 uses: actions/setup-python@v5.1.1 with: - python-version: 3.9 + python-version: "3.10" - name: Install system deps shell: bash diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 239bfba..32f526d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -13,10 +13,10 @@ jobs: steps: - uses: actions/checkout@v4.1.1 - - name: Set up Python 3.9 + - name: Set up Python 3.10 uses: actions/setup-python@v5.1.1 with: - python-version: 3.9 + python-version: "3.10" - name: Install system deps shell: bash @@ -36,7 +36,7 @@ jobs: strategy: matrix: os: [Ubuntu, MacOS, Windows] - python-version: ['3.9', '3.10', '3.11', '3.12'] + python-version: ['3.10', '3.11', '3.12'] fail-fast: true steps: - uses: actions/checkout@v4.1.1 @@ -79,10 +79,10 @@ jobs: steps: - uses: actions/checkout@v4.1.1 - - name: Set up Python 3.9 + - name: Set up Python 3.10 uses: actions/setup-python@v5.1.1 with: - python-version: 3.9 + python-version: "3.10" - name: Install system deps shell: bash diff --git a/.readthedocs.yml b/.readthedocs.yml index ab4d0dd..37f1361 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -3,7 +3,7 @@ version: 2 build: os: ubuntu-22.04 tools: - python: "3.9" + python: "3.10" formats: all diff --git a/noxfile.py b/noxfile.py index 933664c..d9a7246 100644 --- a/noxfile.py +++ b/noxfile.py @@ -6,7 +6,7 @@ from nox_poetry import Session, session nox.options.sessions = ["tests", "mypy"] -python_versions = ["3.9", "3.10", "3.11", "3.12"] +python_versions = ["3.10", "3.11", "3.12"] @session(python=python_versions) diff --git a/poetry.lock b/poetry.lock index 9c6facf..ea45e0a 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,4 +1,4 @@ -# This file is automatically @generated by Poetry 1.8.3 and should not be changed by hand. +# This file is automatically @generated by Poetry 1.8.2 and should not be changed by hand. [[package]] name = "alabaster" @@ -940,25 +940,6 @@ files = [ {file = "imagesize-1.4.1.tar.gz", hash = "sha256:69150444affb9cb0d5cc5a92b3676f0b2fb7cd9ae39e947a5e11a36b4497cd4a"}, ] -[[package]] -name = "importlib-metadata" -version = "8.0.0" -description = "Read metadata from Python packages" -optional = false -python-versions = ">=3.8" -files = [ - {file = "importlib_metadata-8.0.0-py3-none-any.whl", hash = "sha256:15584cf2b1bf449d98ff8a6ff1abef57bf20f3ac6454f431736cd3e660921b2f"}, - {file = "importlib_metadata-8.0.0.tar.gz", hash = "sha256:188bd24e4c346d3f0a933f275c2fec67050326a856b9a359881d7c2a697e8812"}, -] - -[package.dependencies] -zipp = ">=0.5" - -[package.extras] -doc = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-lint"] -perf = ["ipython"] -test = ["flufl.flake8", "importlib-resources (>=1.3)", "jaraco.test (>=5.4)", "packaging", "pyfakefs", "pytest (>=6,!=8.1.*)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-mypy", "pytest-perf (>=0.9.2)", "pytest-ruff (>=0.2.1)"] - [[package]] name = "iniconfig" version = "2.0.0" @@ -1036,7 +1017,6 @@ prompt-toolkit = ">=3.0.41,<3.1.0" pygments = ">=2.4.0" stack-data = "*" traitlets = ">=5" -typing-extensions = {version = "*", markers = "python_version < \"3.10\""} [package.extras] all = ["black", "curio", "docrepr", "exceptiongroup", "ipykernel", "ipyparallel", "ipywidgets", "matplotlib", "matplotlib (!=3.2.0)", "nbconvert", "nbformat", "notebook", "numpy (>=1.22)", "pandas", "pickleshare", "pytest (<7)", "pytest (<7.1)", "pytest-asyncio (<0.22)", "qtconsole", "setuptools (>=18.5)", "sphinx (>=1.3)", "sphinx-rtd-theme", "stack-data", "testpath", "trio", "typing-extensions"] @@ -1192,7 +1172,6 @@ files = [ ] [package.dependencies] -importlib-metadata = {version = ">=4.8.3", markers = "python_version < \"3.10\""} jupyter-core = ">=4.12,<5.0.dev0 || >=5.1.dev0" python-dateutil = ">=2.8.2" pyzmq = ">=23.0" @@ -1260,7 +1239,6 @@ files = [ ] [package.dependencies] -importlib-metadata = {version = ">=4.8.3", markers = "python_version < \"3.10\""} jupyter-server = ">=1.1.2" [[package]] @@ -1332,7 +1310,6 @@ files = [ [package.dependencies] async-lru = ">=1.0.0" httpx = ">=0.25.0" -importlib-metadata = {version = ">=4.8.3", markers = "python_version < \"3.10\""} ipykernel = ">=6.5.0" jinja2 = ">=3.0.3" jupyter-core = "*" @@ -1377,7 +1354,6 @@ files = [ [package.dependencies] babel = ">=2.10" -importlib-metadata = {version = ">=4.8.3", markers = "python_version < \"3.10\""} jinja2 = ">=3.0.3" json5 = ">=0.9.0" jsonschema = ">=4.18.0" @@ -1651,7 +1627,6 @@ files = [ beautifulsoup4 = "*" bleach = "!=5.0.0" defusedxml = "*" -importlib-metadata = {version = ">=3.6", markers = "python_version < \"3.10\""} jinja2 = ">=3.0" jupyter-core = ">=4.7" jupyterlab-pygments = "*" @@ -2908,7 +2883,6 @@ babel = ">=2.9" colorama = {version = ">=0.4.5", markers = "sys_platform == \"win32\""} docutils = ">=0.18.1,<0.22" imagesize = ">=1.3" -importlib-metadata = {version = ">=4.8", markers = "python_version < \"3.10\""} Jinja2 = ">=3.0" packaging = ">=21.0" Pygments = ">=2.14" @@ -3364,22 +3338,7 @@ tests-binary = ["cmake", "cmake", "ninja", "ninja", "pybind11", "pybind11", "sci tests-binary-strict = ["cmake (==3.21.2)", "cmake (==3.25.0)", "ninja (==1.10.2)", "ninja (==1.11.1)", "pybind11 (==2.10.3)", "pybind11 (==2.7.1)", "scikit-build (==0.11.1)", "scikit-build (==0.16.1)"] tests-strict = ["pytest (==4.6.0)", "pytest (==4.6.0)", "pytest (==6.2.5)", "pytest-cov (==3.0.0)", "typing (==3.7.4)"] -[[package]] -name = "zipp" -version = "3.19.2" -description = "Backport of pathlib-compatible object wrapper for zip files" -optional = false -python-versions = ">=3.8" -files = [ - {file = "zipp-3.19.2-py3-none-any.whl", hash = "sha256:f091755f667055f2d02b32c53771a7a6c8b47e1fdbc4b72a8b9072b3eef8015c"}, - {file = "zipp-3.19.2.tar.gz", hash = "sha256:bf1dcf6450f873a13e952a29504887c89e6de7506209e5b1bcc3460135d4de19"}, -] - -[package.extras] -doc = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-lint"] -test = ["big-O", "importlib-resources", "jaraco.functools", "jaraco.itertools", "jaraco.test", "more-itertools", "pytest (>=6,!=8.1.*)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-ignore-flaky", "pytest-mypy", "pytest-ruff (>=0.2.1)"] - [metadata] lock-version = "2.0" -python-versions = "<3.13,>=3.9" -content-hash = "d2b3bc5e438f384c1b6f3f9fa07ddfe80f323e74f552eb0c1911248dcffb3d12" +python-versions = "<3.13,>=3.10" +content-hash = "9b31b87ff18880a3ea8846dfd69a36a6ebbce3d45bace5157e222c0ae84d6001" diff --git a/pyproject.toml b/pyproject.toml index 6b512c6..8a00a8f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,7 +14,6 @@ classifiers=[ "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Natural Language :: English", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", @@ -24,7 +23,7 @@ classifiers=[ "Bug Tracker" = "https://github.com/rserial/flintpy/issues" [tool.poetry.dependencies] -python = "<3.13,>=3.9" +python = "<3.13,>=3.10" numpy = "^2.0.0" plotly = "^5.22.0" @@ -83,7 +82,7 @@ show_missing = true directory = "htmlcov" [tool.ruff] -target-version = "py39" +target-version = "py310" output-format = "full" line-length = 99 fix = true @@ -137,7 +136,7 @@ known_third_party = ["invoke", "nox", "nox_poetry"] [tool.black] line-length = 99 -target-version = ["py39"] +target-version = ["py310"] [tool.mypy] warn_return_any = true