Skip to content

Commit bcd54c4

Browse files
committed
update requirements, Readme and add UV
1 parent f6265a0 commit bcd54c4

3 files changed

Lines changed: 40 additions & 2 deletions

File tree

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
# package-preprocessing
2+
23
Python package to do TrOCR preprocessing
34

4-
### How to install:
5+
### How to install with pip:
6+
57
- Clone the repository
68
- Navigate locally to the directory
79
- Run `pip install .`
8-
- Since `flow_githubmanager` is a requirement which is in a private GitHub repository, you will need to install it manually. Get it from https://github.com/The-Flow-Project/package-github-api and install it via `pip install .`
10+
- Since `flow_githubmanager` it is fetched from GitHub via requirements.
11+
12+
### How to install with uv:
13+
14+
- Same as above, but instead of `pip install .`, you will need to run:
15+
Run `uv pip install .`

pyproject.toml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
[project]
2+
name = "flow_preprocessing"
3+
version = "0.4.0"
4+
description = "Preprocessing Package for the Flow Project (flow-project.net)"
5+
readme = "README.md"
6+
authors = [
7+
{ name = "Dana Rebecca Meyer", email = "dameyer@techfak.uni-bielefeld.de" },
8+
{ name = "Jonas Widmer", email = "jonas.widmer@unibe.ch" }
9+
]
10+
requires-python = ">=3.10"
11+
classifiers = [
12+
"Programming Language :: Python :: 3",
13+
"License :: OSI Approved :: MIT License",
14+
"Operating System :: OS Independent",
15+
]
16+
dependencies = [
17+
"flow-githubmanager",
18+
"htrflow>=0.2.5",
19+
"lxml>=5.4.0",
20+
"motor~=3.5.1",
21+
"numpy>=2.2.6",
22+
"pillow>=11.2.1",
23+
"pydantic~=2.11.4",
24+
"pyyaml>=6.0.2",
25+
"requests>=2.32.3",
26+
"setuptools>=78.1.1",
27+
]
28+
29+
[tool.uv.sources]
30+
flow-githubmanager = { git = "https://github.com/The-Flow-Project/package-github-api", rev = "main" }

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ pillow
33
lxml
44
requests
55
flow_githubmanager @ git+https://github.com/The-Flow-Project/package-github-api@main
6+
flow_segmenter # @ git+https://github.com/The-Flow-Project/package-github-api@main
67
pydantic~=2.11.4
78
setuptools>=78.1.1
89
PyYAML

0 commit comments

Comments
 (0)