setuputils3 2.1__tar.gz → 2.3__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.
@@ -0,0 +1,9 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2008-2026 Peter A. Donis
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the " Software"), to deal in the Software without restriction, including without limitation on the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,23 +1,23 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: setuputils3
3
- Version: 2.1
3
+ Version: 2.3
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
- License: PSF
9
- Platform: UNKNOWN
8
+ License: MIT
10
9
  Classifier: Development Status :: 5 - Production/Stable
11
10
  Classifier: Environment :: Console
12
11
  Classifier: Intended Audience :: Developers
13
12
  Classifier: Intended Audience :: System Administrators
14
- Classifier: License :: OSI Approved :: Python Software Foundation License
13
+ Classifier: License :: OSI Approved :: MIT License
15
14
  Classifier: Operating System :: OS Independent
16
15
  Classifier: Programming Language :: Python :: 3
17
16
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
18
17
  Classifier: Topic :: System :: Systems Administration
19
18
  Classifier: Topic :: Utilities
20
19
  Description-Content-Type: text/markdown
20
+ License-File: LICENSE.txt
21
21
 
22
22
  setuputils3
23
23
  ===========
@@ -110,7 +110,5 @@ way of specifying build requirements other than setuptools itself.
110
110
 
111
111
  See the module docstrings for more information.
112
112
 
113
- SETUPUTILS3 is Copyright (C) 2012-2022 by Peter A. Donis.
113
+ SETUPUTILS3 is Copyright (C) 2012-2026 by Peter A. Donis.
114
114
  Released under the Python Software Foundation License.
115
-
116
-
@@ -89,5 +89,5 @@ way of specifying build requirements other than setuptools itself.
89
89
 
90
90
  See the module docstrings for more information.
91
91
 
92
- SETUPUTILS3 is Copyright (C) 2012-2022 by Peter A. Donis.
92
+ SETUPUTILS3 is Copyright (C) 2012-2026 by Peter A. Donis.
93
93
  Released under the Python Software Foundation License.
@@ -1,19 +1,20 @@
1
1
  [metadata]
2
2
  name = setuputils3
3
- version = 2.1
3
+ version = 2.3
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
7
7
  author = Peter A. Donis
8
8
  author_email = peterdonis@alum.mit.edu
9
9
  url = http://pypi.org/project/setuputils3
10
- license = PSF
10
+ license = MIT
11
+ license_file = LICENSE.txt
11
12
  classifiers =
12
13
  Development Status :: 5 - Production/Stable
13
14
  Environment :: Console
14
15
  Intended Audience :: Developers
15
16
  Intended Audience :: System Administrators
16
- License :: OSI Approved :: Python Software Foundation License
17
+ License :: OSI Approved :: MIT License
17
18
  Operating System :: OS Independent
18
19
  Programming Language :: Python :: 3
19
20
  Topic :: Software Development :: Libraries :: Python Modules
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env python3
2
2
  """
3
3
  Module SETUPUTILS -- Utilities to automate boilerplate in Python setup scripts
4
- Copyright (C) 2012-2022 by Peter A. Donis
4
+ Copyright (C) 2012-2026 by Peter A. Donis
5
5
 
6
6
  Released under the Python Software Foundation License.
7
7
 
@@ -907,6 +907,7 @@ setup_cfg_sections = (
907
907
  "download_url",
908
908
  "project_urls",
909
909
  "license",
910
+ "license_file",
910
911
  "license_files",
911
912
  "keywords",
912
913
  "classifiers",
@@ -964,7 +965,7 @@ def strtobool(value):
964
965
 
965
966
 
966
967
  def read_in_lines(lines,
967
- sep="=", listsep=",", comparison_ops=("==", ">", "<")):
968
+ sep=" = ", endsep=" =", listsep=","):
968
969
 
969
970
  in_vars = {}
970
971
  open_key = None
@@ -981,9 +982,9 @@ def read_in_lines(lines,
981
982
  line = line.strip()
982
983
  if not line:
983
984
  continue
984
- if (not dangling) and (sep in line) and all(s not in line for s in comparison_ops):
985
+ if (not dangling) and ((sep in line) or line.endswith(endsep)):
985
986
  close_open_key()
986
- key, value = (s.strip() for s in line.split(sep))
987
+ key, value = (s.strip() for s in line.split(endsep if line.endswith(endsep) else sep))
987
988
  if value:
988
989
  key_type = supported_keywords.get(key, type(value))
989
990
  if key_type in (list, dict):
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env python3
2
2
  """
3
3
  Module SETUPUTILS_BUILD -- PEP 517 backend for setuputils
4
- Copyright (C) 2012-2022 by Peter A. Donis
4
+ Copyright (C) 2012-2026 by Peter A. Donis
5
5
 
6
6
  Released under the Python Software Foundation License.
7
7
  """
File without changes