This repository was archived by the owner on Aug 25, 2024. It is now read-only.
Miscellaneous #1383
johnandersen777
started this conversation in
General
Miscellaneous
#1383
Replies: 1 comment
-
This is what's currently needed to have a new plugin within the monorepo use a version from python file instead of setuptools SCM. diff --git a/contexts/installed/dffml_contexts_installed/version.py b/contexts/installed/dffml_contexts_installed/version.py
new file mode 100644
index 000000000..901e5110b
--- /dev/null
+++ b/contexts/installed/dffml_contexts_installed/version.py
@@ -0,0 +1 @@
+VERSION = "0.0.1"
diff --git a/contexts/installed/pyproject.toml b/contexts/installed/pyproject.toml
index 17b123594..f68b321a5 100644
--- a/contexts/installed/pyproject.toml
+++ b/contexts/installed/pyproject.toml
@@ -1,7 +1,7 @@
requires = ["setuptools>=44", "wheel", "setuptools_scm[toml]>=3.4.3"]
build-backend = "setuptools.build_meta"
-[tool.setuptools_scm]
+# [tool.setuptools_scm]
[tool.black]
exclude = '''
diff --git a/contexts/installed/setup.cfg b/contexts/installed/setup.cfg
index 2643343ec..b3791da12 100644
--- a/contexts/installed/setup.cfg
+++ b/contexts/installed/setup.cfg
@@ -1,5 +1,6 @@
[metadata]
name = dffml-contexts-installed
+version = attr: dffml_contexts_installed.version.VERSION
description = dffml.sysctx entrypoints within the global namespace as Python objects via deployment python.native
long_description = file: README.rst
author = John Andersen
diff --git a/contexts/installed/setup.py b/contexts/installed/setup.py
index cc5beb58f..17542f4d0 100644
--- a/contexts/installed/setup.py
+++ b/contexts/installed/setup.py
@@ -5,4 +5,4 @@ import setuptools
# See https://github.com/pypa/pip/issues/7953
site.ENABLE_USER_SITE = "--user" in sys.argv[1:]
-setuptools.setup(use_scm_version=True)
+setuptools.setup() |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Catch all for any notes we don't know where else they go
Beta Was this translation helpful? Give feedback.
All reactions