Skip to content

Commit dac4e87

Browse files
authored
force version during make dist (#671)
1 parent 8701dad commit dac4e87

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,9 @@ version:
128128
# exported as a point of reference instead.
129129
.PHONY: dist
130130
dist:
131+
$(eval CLEAN_VERSION := $(shell python -m setuptools_scm))
131132
./scripts/temporary-rename
132-
pip wheel --no-deps -w dist .
133+
SETUPTOOLS_SCM_PRETEND_VERSION=$(CLEAN_VERSION) pip wheel --no-deps -w dist .
133134
twine check $(BDIST_WHEEL)
134135
rm -vf dist/*.egg
135136
@echo "::set-output name=whl::$(BDIST_WHEEL)"

pyproject.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,6 @@ packages = ["rsconnect"]
8484

8585
[tool.setuptools_scm]
8686
write_to = "rsconnect/version.py"
87-
# since we dirty the state by transforming the file
88-
# keep the version number consistent
89-
version_scheme = "no-guess-dev"
90-
local_scheme = "no-local-version"
9187

9288
[tool.setuptools.package-data]
9389
rsconnect = ["py.typed"]

0 commit comments

Comments
 (0)