Skip to content

Commit

Permalink
add authors to python -m utiles
Browse files Browse the repository at this point in the history
  • Loading branch information
jessekrubin committed Dec 19, 2024
1 parent 264da8e commit b32c2a7
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 19 deletions.
35 changes: 17 additions & 18 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,44 +5,44 @@ pyut_pyproject_toml := pyut / "pyproject.toml"
dev: fmt develop pytest cargo-test

develop:
cd {{pyut}}
maturin develop -m {{pyut_manifest}}
cd {{ pyut }}
maturin develop -m {{ pyut_manifest }}

cargo-test:
cargo test

build: cargo-test
cd {{pyut}}
maturin build -m {{pyut_manifest}}
cd {{ pyut }}
maturin build -m {{ pyut_manifest }}

build-release:
cd {{pyut}}
maturin build --release -m {{pyut_manifest}}
cd {{ pyut }}
maturin build --release -m {{ pyut_manifest }}

dev-rel:
cd {{pyut}}
maturin develop --release -m {{pyut_manifest}}
cd {{ pyut }}
maturin develop --release -m {{ pyut_manifest }}

pytest:
cd {{pyut}}
pytest --benchmark-disable -n 4 --config-file={{pyut_pyproject_toml}} {{pyut}}
cd {{ pyut }}
pytest --benchmark-disable -n 4 --config-file={{ pyut_pyproject_toml }} {{ pyut }}

test-release: build-release
cd {{pyut}}
pytest --benchmark-disable --config-file={{pyut_pyproject_toml}} {{pyut}}
cd {{ pyut }}
pytest --benchmark-disable --config-file={{ pyut_pyproject_toml }} {{ pyut }}

bench: dev-rel
cd {{pyut}}
pytest -vv --benchmark-only --config-file={{pyut_pyproject_toml}} {{pyut}}
cd {{ pyut }}
pytest -vv --benchmark-only --config-file={{ pyut_pyproject_toml }} {{ pyut }}

cargo-fmt:
cargo fmt

sort-all:
sort-all {{pyut}}/python/utiles/__init__.py
sort-all {{ pyut }}/python/utiles/__init__.py

black:
black {{pyut}}/python {{pyut}}/tests
black {{ pyut }}/python {{ pyut }}/tests

# format python
fmtpy:
Expand All @@ -57,7 +57,7 @@ fmtcpy:
fmt: cargo-fmt fmtpy

mypy:
mypy --config-file {{pyut}}/pyproject.toml {{pyut}}/python {{pyut}}/tests
mypy --config-file {{ pyut }}/pyproject.toml {{ pyut }}/python {{ pyut }}/tests

ruff:
ruff check .
Expand All @@ -68,7 +68,6 @@ ruffix:
clippy:
cargo clippy


clippy-fix:
cargo clippy --all-targets --all-features --fix --allow-dirty -- -D warnings

Expand Down
4 changes: 3 additions & 1 deletion utiles-pyo3/python/utiles/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import sys

from utiles import _utiles
from utiles.__about__ import __pkgroot__, __title__, __version__
from utiles.__about__ import __authors__, __pkgroot__, __title__, __version__


def _utiles_ext_info() -> dict[str, str | int]:
Expand All @@ -28,6 +28,8 @@ def main() -> None:
"package": __title__,
"version": __version__,
"pkgroot": __pkgroot__,
"authors": __authors__,
"website": "https://github.com/jessekrubin/utiles",
"_utiles": _utiles_ext_info(),
},
indent=2,
Expand Down

0 comments on commit b32c2a7

Please sign in to comment.