Skip to content

Commit

Permalink
Fix install target
Browse files Browse the repository at this point in the history
  • Loading branch information
ad-si committed Nov 19, 2024
1 parent 643bbeb commit 1336b13
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .python-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.12.7
3.12
2 changes: 1 addition & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ edit-notebooks:

.PHONY: install
install:
uv venv && uv pip install --editable .
uv venv && uv tool install --editable .


# TODO: Re-enable this code
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "perspectra"
version = "0.1.1"
description = "Automatically extract and perspectively correct documents in images"
readme = "readme.md"
requires-python = ">=3.12.7"
requires-python = ">=3.12"
license = { text = "ISC" }
authors = [{ name = "Adrian Sieber", email = "mail@adriansieber.com" }]
keywords = ["document scanner", "perspective transformation"]
Expand All @@ -16,7 +16,7 @@ classifiers = [
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering :: Image Recognition",
]
urls = { "Homepage" = "http://github.com/feramhq/perspectra" }
urls = { "Homepage" = "http://github.com/ad-si/Perspectra" }
dependencies = [
"imageio>=2.36.0",
"matplotlib>=3.9.2",
Expand Down
10 changes: 9 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,18 @@ for and extensive list of alternative solutions.
We recommend to use [`uv`](https://docs.astral.sh/uv/)
instead of `pip` to install the package.

```bash
```sh
uv tool install perspectra
```

To install from source:

```sh
git clone https://github.com/ad-si/Perspectra
cd Perspectra
make install
```


## Usage

Expand Down
2 changes: 1 addition & 1 deletion scripts/setup-py2app.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def read(*filenames, **kwargs):
name='perspectra',
version='0.1.1',
app=['perspectra/perspectra.py'],
url='http://github.com/feramhq/perspectra',
url='http://github.com/ad-si/Perspectra',
author='Adrian Sieber',
author_email='adrian@feram.co',
description='Extract and perspectively correct documents in images',
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

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

0 comments on commit 1336b13

Please sign in to comment.