Skip to content

Commit 53e57fc

Browse files
committed
Enable manual nix-build to force regeneration of tabulate/version.py
1 parent 126ee3a commit 53e57fc

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

Makefile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,19 @@ help:
3131
@echo " venv Create and start a Python venv using the available Python interpreter"
3232
@echo " venv-... Make a target using the venv environment"
3333
@echo
34-
@echo "For example, to run tox tests in a Nix-supplied Python venv:"
34+
@echo "For example, to build, create venv run tox tests in a Nix-supplied Python:"
3535
@echo
36-
@echo " make nix-venv-test"
36+
@echo " make nix-build nix-venv-test"
3737
@echo
3838

39-
.PHONY: help wheel install test bench analyze types venv Makefile FORCE
39+
.PHONY: help wheel build install test bench analyze types venv Makefile FORCE
4040

4141
wheel: $(WHEEL)
4242

43-
$(WHEEL): FORCE
44-
$(PYTHON) -m build
43+
$(WHEEL): build FORCE
44+
45+
build:
46+
$(PYTHON) -m build .
4547
@ls -last dist
4648

4749
# Install from wheel, including all optional extra dependencies (doesn't include dev)

flake.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313

1414
# Create Python environments with required packages
1515
mkPythonEnv = pythonPkg: pythonPkg.withPackages (ps: with ps; [
16+
pip
17+
build
1618
pytest
1719
tox
1820
numpy

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,3 @@ packages = ["tabulate"]
3737

3838
[tool.setuptools_scm]
3939
write_to = "tabulate/version.py"
40-
local_scheme = "no-local-version"

0 commit comments

Comments
 (0)