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.
@@ -1,12 +1,11 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: setuputils3
3
- Version: 2.1
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
-
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = setuputils3
3
- version = 2.1
3
+ version = 2.2
4
4
  description = A utility module to automate building setup configuration files.
5
5
  long_description = file: README.md
6
6
  long_description_content_type = text/markdown
@@ -964,7 +964,7 @@ def strtobool(value):
964
964
 
965
965
 
966
966
  def read_in_lines(lines,
967
- sep="=", listsep=",", comparison_ops=("==", ">", "<")):
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) and all(s not in line for s in comparison_ops):
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