Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down
40 changes: 20 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,58 +1,58 @@
<h1 align="center">pythoff</h1>
<h1 align="center">unpy</h1>

<p align="center">
Backports Python 3.13 typing stubs to earlier Python versions
</p>

<p align="center">
<a href="https://pypi.org/project/pythoff/">
<a href="https://pypi.org/project/unpy/">
<img
alt="pythoff - PyPI"
src="https://img.shields.io/pypi/v/pythoff?style=flat&color=olive"
alt="unpy - PyPI"
src="https://img.shields.io/pypi/v/unpy?style=flat&color=olive"
/>
</a>
<a href="https://github.com/jorenham/pythoff">
<a href="https://github.com/jorenham/unpy">
<img
alt="pythoff - Python Versions"
src="https://img.shields.io/pypi/pyversions/pythoff?style=flat"
alt="unpy - Python Versions"
src="https://img.shields.io/pypi/pyversions/unpy?style=flat"
/>
</a>
<a href="https://github.com/jorenham/pythoff">
<a href="https://github.com/jorenham/unpy">
<img
alt="pythoff - license"
src="https://img.shields.io/github/license/jorenham/pythoff?style=flat"
alt="unpy - license"
src="https://img.shields.io/github/license/jorenham/unpy?style=flat"
/>
</a>
</p>
<p align="center">
<a href="https://github.com/jorenham/pythoff/actions?query=workflow%3ACI">
<a href="https://github.com/jorenham/unpy/actions?query=workflow%3ACI">
<img
alt="pythoff - CI"
src="https://github.com/jorenham/pythoff/workflows/CI/badge.svg"
alt="unpy - CI"
src="https://github.com/jorenham/unpy/workflows/CI/badge.svg"
/>
</a>
<!-- TODO -->
<a href="https://github.com/pre-commit/pre-commit">
<img
alt="pythoff - pre-commit"
alt="unpy - pre-commit"
src="https://img.shields.io/badge/pre--commit-enabled-teal?logo=pre-commit"
/>
</a>
<!-- <a href="https://github.com/KotlinIsland/basedmypy">
<img
alt="pythoff - basedmypy"
alt="unpy - basedmypy"
src="https://img.shields.io/badge/basedmypy-checked-fd9002"
/>
</a> -->
<a href="https://detachhead.github.io/basedpyright">
<img
alt="pythoff - basedpyright"
alt="unpy - basedpyright"
src="https://img.shields.io/badge/basedpyright-checked-42b983"
/>
</a>
<a href="https://github.com/astral-sh/ruff">
<img
alt="pythoff - ruff"
alt="unpy - ruff"
src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json"
/>
</a>
Expand All @@ -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]
Expand Down
18 changes: 9 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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 = [
Expand All @@ -64,7 +64,7 @@ exclude = [
]

[tool.hatch.build.targets.wheel]
packages = ["pythoff"]
packages = ["unpy"]

[tool.uv]
dev-dependencies = [
Expand All @@ -77,7 +77,7 @@ dev-dependencies = [

[tool.basedpyright]
ignore = ["**/.venv"]
include = ["pythoff", "examples"]
include = ["unpy", "examples"]
pythonPlatform = "All"
pythonVersion = "3.13"
venv = ".venv"
Expand All @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion tests/test_identity.py
Original file line number Diff line number Diff line change
@@ -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"])
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
70 changes: 35 additions & 35 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.