diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c1290cb..6b9b4bf 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -34,7 +34,7 @@ repos: - id: name-tests-test args: [--pytest-test-first] - id: no-commit-to-branch - args: [--branch, main] + args: [--branch, master] - id: trailing-whitespace args: [--markdown-linebreak-ext=md] diff --git a/README.md b/README.md index ebaf607..ec4a506 100644 --- a/README.md +++ b/README.md @@ -1,58 +1,58 @@ -

pythoff

+

unpy

Backports Python 3.13 typing stubs to earlier Python versions

- + pythoff - PyPI - + pythoff - Python Versions - + pythoff - license

- + pythoff - CI pythoff - pre-commit pythoff - basedpyright pythoff - ruff @@ -66,16 +66,16 @@ > ## Installation -The `pythoff` package is available as on PyPI, and can be installed with e.g. +The `unpy` package is available as on PyPI, and can be installed with e.g. ```shell -pip install pythoff +pip install unpy ``` ## Usage ```plain -Usage: pythoff [OPTIONS] FILE_IN [FILE_OUT] +Usage: unpy [OPTIONS] FILE_IN [FILE_OUT] Arguments: FILE_IN [required] diff --git a/pyproject.toml b/pyproject.toml index 232d2bb..2a34185 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ requires = ["hatchling"] build-backend = "hatchling.build" [project] -name = "pythoff" +name = "unpy" version = "0.1.0" description = "Backports Python Typing Stubs" readme = "README.md" @@ -32,14 +32,14 @@ dependencies = [ ] [project.urls] -Repository = "https://github.com/jorenham/pythoff" -Documentation = "https://github.com/jorenham/pythoff?tab=readme-ov-file#mainpy" -Issues = "https://github.com/jorenham/pythoff/issues" -Changelog = "https://github.com/jorenham/pythoff/releases" +Repository = "https://github.com/jorenham/unpy" +Documentation = "https://github.com/jorenham/unpy?tab=readme-ov-file#mainpy" +Issues = "https://github.com/jorenham/unpy/issues" +Changelog = "https://github.com/jorenham/unpy/releases" Funding = "https://github.com/sponsors/jorenham" [project.scripts] -pythoff = "pythoff.cli:app" +unpy = "unpy.cli:app" [tool.hatch.build.targets.sdist] exclude = [ @@ -64,7 +64,7 @@ exclude = [ ] [tool.hatch.build.targets.wheel] -packages = ["pythoff"] +packages = ["unpy"] [tool.uv] dev-dependencies = [ @@ -77,7 +77,7 @@ dev-dependencies = [ [tool.basedpyright] ignore = ["**/.venv"] -include = ["pythoff", "examples"] +include = ["unpy", "examples"] pythonPlatform = "All" pythonVersion = "3.13" venv = ".venv" @@ -96,7 +96,7 @@ xfail_strict = true [tool.ruff] force-exclude = true indent-width = 4 -src = ["pythoff", "examples"] +src = ["unpy", "examples"] target-version = "py313" [tool.ruff.format] diff --git a/tests/test_identity.py b/tests/test_identity.py index a6f0f2c..c6b9194 100644 --- a/tests/test_identity.py +++ b/tests/test_identity.py @@ -1,5 +1,5 @@ import pytest -from pythoff.convert import convert +from unpy.convert import convert @pytest.mark.parametrize("source", ["", "\n", " \n \n\n\n"]) diff --git a/pythoff/__init__.py b/unpy/__init__.py similarity index 100% rename from pythoff/__init__.py rename to unpy/__init__.py diff --git a/pythoff/__main__.py b/unpy/__main__.py similarity index 100% rename from pythoff/__main__.py rename to unpy/__main__.py diff --git a/pythoff/_pep695.py b/unpy/_pep695.py similarity index 100% rename from pythoff/_pep695.py rename to unpy/_pep695.py diff --git a/pythoff/cli.py b/unpy/cli.py similarity index 100% rename from pythoff/cli.py rename to unpy/cli.py diff --git a/pythoff/convert.py b/unpy/convert.py similarity index 100% rename from pythoff/convert.py rename to unpy/convert.py diff --git a/pythoff/py.typed b/unpy/py.typed similarity index 100% rename from pythoff/py.typed rename to unpy/py.typed diff --git a/uv.lock b/uv.lock index 87dba71..a43e8a3 100644 --- a/uv.lock +++ b/uv.lock @@ -195,41 +195,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/6b/77/7440a06a8ead44c7757a64362dd22df5760f9b12dc5f11b6188cd2fc27a0/pytest-8.3.3-py3-none-any.whl", hash = "sha256:a6853c7375b2663155079443d2e45de913a911a11d669df02a50814944db57b2", size = 342341 }, ] -[[package]] -name = "pythoff" -version = "0.1.0" -source = { editable = "." } -dependencies = [ - { name = "libcst" }, - { name = "mainpy" }, - { name = "typer-slim" }, -] - -[package.dev-dependencies] -dev = [ - { name = "basedpyright" }, - { name = "codespell" }, - { name = "pre-commit" }, - { name = "pytest" }, - { name = "ruff" }, -] - -[package.metadata] -requires-dist = [ - { name = "libcst", specifier = ">=1.4.0,<2" }, - { name = "mainpy", specifier = ">=1.4.0,<2" }, - { name = "typer-slim", specifier = ">=0.12.5,<1" }, -] - -[package.metadata.requires-dev] -dev = [ - { name = "basedpyright", specifier = ">=1.17.4,<2" }, - { name = "codespell", specifier = ">=2.3.0,<3" }, - { name = "pre-commit", specifier = ">=3.8.0" }, - { name = "pytest", specifier = ">=8.3.3,<9" }, - { name = "ruff", specifier = ">=0.6.5,<0.7" }, -] - [[package]] name = "pyyaml" version = "6.0.2" @@ -303,6 +268,41 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/26/9f/ad63fc0248c5379346306f8668cda6e2e2e9c95e01216d2b8ffd9ff037d0/typing_extensions-4.12.2-py3-none-any.whl", hash = "sha256:04e5ca0351e0f3f85c6853954072df659d0d13fac324d0072316b67d7794700d", size = 37438 }, ] +[[package]] +name = "unpy" +version = "0.1.0" +source = { editable = "." } +dependencies = [ + { name = "libcst" }, + { name = "mainpy" }, + { name = "typer-slim" }, +] + +[package.dev-dependencies] +dev = [ + { name = "basedpyright" }, + { name = "codespell" }, + { name = "pre-commit" }, + { name = "pytest" }, + { name = "ruff" }, +] + +[package.metadata] +requires-dist = [ + { name = "libcst", specifier = ">=1.4.0,<2" }, + { name = "mainpy", specifier = ">=1.4.0,<2" }, + { name = "typer-slim", specifier = ">=0.12.5,<1" }, +] + +[package.metadata.requires-dev] +dev = [ + { name = "basedpyright", specifier = ">=1.17.4,<2" }, + { name = "codespell", specifier = ">=2.3.0,<3" }, + { name = "pre-commit", specifier = ">=3.8.0" }, + { name = "pytest", specifier = ">=8.3.3,<9" }, + { name = "ruff", specifier = ">=0.6.5,<0.7" }, +] + [[package]] name = "virtualenv" version = "20.26.4"