Skip to content

Commit 194620c

Browse files
Update project to use uv
1 parent 702c27c commit 194620c

8 files changed

Lines changed: 274 additions & 56 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22
.cache/
33
*.egg-info/
44
.eggs/
5+
.venv/
56
__pycache__/
67
build/
78
dist/
89
venv/
910
.mypy_cache
10-
.venv
11+
.python-version
1112
conftest.py
1213
.pytest_cache
1314
.vscode

engineering_notation/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from engineering_notation.engineering_notation import EngNumber, EngUnit
1+
from engineering_notation.eng_notation import EngNumber, EngUnit
22
from engineering_notation.version import __version__
33

44
__all__ = ['EngNumber', 'EngUnit', '__version__']
File renamed without changes.

engineering_notation/version.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
__version__ = '0.11.0'
1+
import importlib.metadata
2+
3+
__version__ = importlib.metadata.version("engineering_notation")

pyproject.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[project]
2+
name = "engineering-notation"
3+
version = "0.12.0"
4+
description = "Easy engineering notation"
5+
readme = "readme.md"
6+
requires-python = ">=3.11"
7+
dependencies = []
8+
9+
[dependency-groups]
10+
dev = [
11+
"mypy>=1.19.1",
12+
"pytest>=9.0.2",
13+
"ruff>=0.14.14",
14+
]

readme.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,3 +100,17 @@ Additionally, since there are 'reserved' letters for sizing the number, you must
100100
# Contributions
101101

102102
Contributions are welcome. Feel free to make feature requests in the issues.
103+
104+
## Test Installation
105+
106+
If you are developing, you probably want to perform a local editable installation:
107+
108+
```bash
109+
uv run pip install -e .
110+
```
111+
112+
## Testing
113+
114+
```bash
115+
uv run python -m pytest
116+
```

setup.py

Lines changed: 0 additions & 53 deletions
This file was deleted.

uv.lock

Lines changed: 240 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)