Customize the build process with hatch
This commit is contained in:
parent
e23f1dd3c2
commit
9ad47f8ef9
2 changed files with 12 additions and 2 deletions
6
Makefile
6
Makefile
|
@ -24,11 +24,13 @@ docker: ## Create a new Docker image and publish it
|
||||||
docker build -t umap/umap:${VERSION} .
|
docker build -t umap/umap:${VERSION} .
|
||||||
docker push umap/umap:${VERSION}
|
docker push umap/umap:${VERSION}
|
||||||
|
|
||||||
|
.PHONY: build
|
||||||
|
build: test compilemessages ## Build the Python package before release
|
||||||
|
@hatch build
|
||||||
|
|
||||||
|
|
||||||
test:
|
test:
|
||||||
py.test -xv umap/tests/
|
py.test -xv umap/tests/
|
||||||
release: test compilemessages
|
|
||||||
python setup.py sdist bdist_wheel
|
|
||||||
test_publish:
|
test_publish:
|
||||||
twine upload -r testpypi dist/*
|
twine upload -r testpypi dist/*
|
||||||
publish:
|
publish:
|
||||||
|
|
|
@ -58,6 +58,14 @@ docker = [
|
||||||
"uwsgi==2.0.21",
|
"uwsgi==2.0.21",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[tool.hatch.build.targets.sdist]
|
||||||
|
include = [
|
||||||
|
"/umap",
|
||||||
|
]
|
||||||
|
|
||||||
|
[tool.hatch.build.targets.wheel]
|
||||||
|
packages = ["umap"]
|
||||||
|
|
||||||
[project.scripts]
|
[project.scripts]
|
||||||
umap = "umap.bin:main"
|
umap = "umap.bin:main"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue