mirror of
https://github.com/containers/podman.git
synced 2025-08-03 01:37:51 +08:00

The environment variable wasn't set, giving 0.0.0 It is a still a problem if you use python3 to build, rather than make. You *need* to set $PODMAN_VERSION, or your module and packages won't have the version. Signed-off-by: Anders F Björklund <anders.f.bjorklund@gmail.com>
40 lines
859 B
Makefile
40 lines
859 B
Makefile
PYTHON ?= $(shell command -v python3 2>/dev/null || command -v python)
|
|
DESTDIR := /
|
|
PODMAN_VERSION ?= '0.0.4'
|
|
|
|
.PHONY: python-pypodman
|
|
python-pypodman:
|
|
PODMAN_VERSION=$(PODMAN_VERSION) \
|
|
$(PYTHON) setup.py sdist bdist
|
|
|
|
.PHONY: lint
|
|
lint:
|
|
$(PYTHON) -m pylint pypodman
|
|
|
|
.PHONY: integration
|
|
integration:
|
|
true
|
|
|
|
.PHONY: install
|
|
install:
|
|
PODMAN_VERSION=$(PODMAN_VERSION) \
|
|
$(PYTHON) setup.py install --root ${DESTDIR}
|
|
|
|
.PHONY: upload
|
|
upload:
|
|
$(PODMAN_VERSION) $(PYTHON) setup.py sdist bdist_wheel
|
|
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
|
|
|
|
.PHONY: clobber
|
|
clobber: uninstall clean
|
|
|
|
.PHONY: uninstall
|
|
$(PYTHON) -m pip uninstall --yes pypodman ||:
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -rf pypodman.egg-info dist
|
|
find . -depth -name __pycache__ -exec rm -rf {} \;
|
|
find . -depth -name \*.pyc -exec rm -f {} \;
|
|
$(PYTHON) ./setup.py clean --all
|