Skip to content

Commit fa2654c

Browse files
committed
Bugfixes for the mistakes in #70
labscript-suite/labscript-suite#53 erroenously removed the env var that removed the local version (required for uploading to test PyPI). Contrary to my statements in #62, the packaging library does not seem to be a dependency of setuptools. Instead they have vendored it as an internal submodule. Rather than rely on that, packaging is now a dependency of labscript-utils directly.
1 parent dce6ac8 commit fa2654c

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ defaults:
1515

1616
env:
1717
PACKAGE_NAME: labscript-utils
18+
SCM_LOCAL_SCHEME: no-local-version
1819
ANACONDA_USER: labscript-suite
1920

2021
# Configuration for a package with compiled extensions:

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ install_requires =
2828
importlib_metadata>=1.0
2929
h5py>=2.9
3030
numpy>=1.15
31+
packaging>=20.4
3132
pyqtgraph>=0.11.0rc0
3233
qtutils>=2.2.3
3334
scipy

setup.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,9 @@ def run(self):
1616
self.copy_file('labscript-suite.pth', path)
1717

1818

19-
setup(cmdclass={'develop': develop_command})
19+
VERSION_SCHEME = {
20+
"version_scheme": os.getenv("SCM_VERSION_SCHEME", "release-branch-semver"),
21+
"local_scheme": os.getenv("SCM_LOCAL_SCHEME", "node-and-date"),
22+
}
23+
24+
setup(use_scm_version=VERSION_SCHEME, cmdclass={'develop': develop_command})

0 commit comments

Comments
 (0)