-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from gouline/pyproject-build
Migrate to uv/pyproject.toml
- Loading branch information
Showing
10 changed files
with
826 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,51 @@ | ||
build: clean | ||
python3 -m build | ||
.PHONY: dependencies | ||
dependencies: | ||
uv sync --frozen --no-install-project --all-extras | ||
|
||
.PHONY: build | ||
build: clean | ||
uv run python3 -m build | ||
|
||
.PHONY: clean | ||
clean: | ||
rm -rf build dist | ||
.PHONY: clean | ||
|
||
requirements: | ||
python3 -m pip install \ | ||
-r requirements.txt \ | ||
-r requirements-test.txt | ||
.PHONY: requirements | ||
|
||
fix: | ||
ruff format . | ||
ruff check --fix . | ||
.PHONY: fix | ||
fix: | ||
uv run ruff format . | ||
uv run ruff check --fix . | ||
|
||
check-lint: | ||
ruff format --check . | ||
ruff check . | ||
.PHONY: check-lint | ||
check-lint: | ||
uv run ruff format --check . | ||
uv run ruff check . | ||
|
||
check-type: | ||
mypy molot | ||
.PHONY: check-type | ||
check-type: | ||
uv run mypy molot | ||
|
||
check: check-lint check-type | ||
.PHONY: check | ||
check: check-lint check-type | ||
|
||
test: | ||
pytest tests | ||
.PHONY: test | ||
test: | ||
uv run pytest tests | ||
|
||
pre: fix check test | ||
.PHONY: pre | ||
pre: fix check test | ||
|
||
dist-check: build | ||
twine check dist/* | ||
.PHONY: dist-check | ||
dist-check: build | ||
uv run twine check dist/* | ||
|
||
dist-upload: check | ||
twine upload dist/* | ||
.PHONY: dist-upload | ||
dist-upload: check | ||
uv run twine upload dist/* | ||
|
||
dev-uninstall: | ||
python3 -m pip uninstall -y molot | ||
.PHONY: dev-uninstall | ||
dev-uninstall: | ||
uv pip uninstall molot | ||
|
||
dev-install: build dev-uninstall | ||
python3 -m pip install dist/molot-*-py3-none-any.whl | ||
.PHONY: dev-install | ||
dev-install: build dev-uninstall | ||
uv pip install dist/molot-*-py3-none-any.whl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.