setuputils3 2.1__tar.gz → 2.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {setuputils3-2.1 → setuputils3-2.2}/PKG-INFO +1 -4
- {setuputils3-2.1 → setuputils3-2.2}/setup.cfg +1 -1
- {setuputils3-2.1 → setuputils3-2.2}/setuputils.py +3 -3
- {setuputils3-2.1 → setuputils3-2.2}/README.md +0 -0
- {setuputils3-2.1 → setuputils3-2.2}/pyproject.toml +0 -0
- {setuputils3-2.1 → setuputils3-2.2}/setuputils_build.py +0 -0
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: setuputils3
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.2
|
|
4
4
|
Summary: A utility module to automate building setup configuration files.
|
|
5
5
|
Home-page: http://pypi.org/project/setuputils3
|
|
6
6
|
Author: Peter A. Donis
|
|
7
7
|
Author-email: peterdonis@alum.mit.edu
|
|
8
8
|
License: PSF
|
|
9
|
-
Platform: UNKNOWN
|
|
10
9
|
Classifier: Development Status :: 5 - Production/Stable
|
|
11
10
|
Classifier: Environment :: Console
|
|
12
11
|
Classifier: Intended Audience :: Developers
|
|
@@ -112,5 +111,3 @@ See the module docstrings for more information.
|
|
|
112
111
|
|
|
113
112
|
SETUPUTILS3 is Copyright (C) 2012-2022 by Peter A. Donis.
|
|
114
113
|
Released under the Python Software Foundation License.
|
|
115
|
-
|
|
116
|
-
|
|
@@ -964,7 +964,7 @@ def strtobool(value):
|
|
|
964
964
|
|
|
965
965
|
|
|
966
966
|
def read_in_lines(lines,
|
|
967
|
-
sep="=",
|
|
967
|
+
sep=" = ", endsep=" =", listsep=","):
|
|
968
968
|
|
|
969
969
|
in_vars = {}
|
|
970
970
|
open_key = None
|
|
@@ -981,9 +981,9 @@ def read_in_lines(lines,
|
|
|
981
981
|
line = line.strip()
|
|
982
982
|
if not line:
|
|
983
983
|
continue
|
|
984
|
-
if (not dangling) and (sep in line)
|
|
984
|
+
if (not dangling) and ((sep in line) or line.endswith(endsep)):
|
|
985
985
|
close_open_key()
|
|
986
|
-
key, value = (s.strip() for s in line.split(sep))
|
|
986
|
+
key, value = (s.strip() for s in line.split(endsep if line.endswith(endsep) else sep))
|
|
987
987
|
if value:
|
|
988
988
|
key_type = supported_keywords.get(key, type(value))
|
|
989
989
|
if key_type in (list, dict):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|