-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Continue to set local scheme based on env var
in `__version__.py` for consistency. * Don't require specific setuptools or [toml] extra from setuptools_scm. We aren't configuring setuptools_scm in pyproject.toml anyway, and setuptools_scm itself will specify a fairly recent version of setuptools (we have no special requirement ourselves) * no longer use env var for version_scheme in setup.py, since we're now hard-coding release-branch-semver.
- Loading branch information
1 parent
9d689bc
commit f298181
Showing
3 changed files
with
12 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[build-system] | ||
requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]>=4.1.0"] | ||
requires = ["setuptools", "wheel", "setuptools_scm>=4.1.0"] | ||
build-backend = "setuptools.build_meta" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import os | ||
from setuptools import setup | ||
|
||
VERSION_SCHEME = { | ||
"version_scheme": os.getenv("SCM_VERSION_SCHEME", "release-branch-semver"), | ||
"local_scheme": os.getenv("SCM_LOCAL_SCHEME", "node-and-date"), | ||
} | ||
|
||
setup(use_scm_version=VERSION_SCHEME) | ||
setup( | ||
use_scm_version={ | ||
"version_scheme": "release-branch-semver", | ||
"local_scheme": os.getenv("SCM_LOCAL_SCHEME", "node-and-date"), | ||
} | ||
) |