partis-pyproj 0.1.7__tar.gz → 0.1.8__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.
Files changed (36) hide show
  1. {partis_pyproj-0.1.7 → partis_pyproj-0.1.8}/PKG-INFO +8 -8
  2. {partis_pyproj-0.1.7 → partis_pyproj-0.1.8}/pyproject.toml +1 -1
  3. {partis_pyproj-0.1.7 → partis_pyproj-0.1.8}/src/pyproj/backend.py +22 -19
  4. {partis_pyproj-0.1.7 → partis_pyproj-0.1.8}/src/pyproj/builder/cmake.py +2 -2
  5. {partis_pyproj-0.1.7 → partis_pyproj-0.1.8}/src/pyproj/pyproj.py +1 -0
  6. {partis_pyproj-0.1.7 → partis_pyproj-0.1.8}/LICENSE.txt +0 -0
  7. {partis_pyproj-0.1.7 → partis_pyproj-0.1.8}/README.md +0 -0
  8. {partis_pyproj-0.1.7 → partis_pyproj-0.1.8}/src/pyproj/__init__.py +0 -0
  9. {partis_pyproj-0.1.7 → partis_pyproj-0.1.8}/src/pyproj/_legacy_setup.py +0 -0
  10. {partis_pyproj-0.1.7 → partis_pyproj-0.1.8}/src/pyproj/_nonprintable.py +0 -0
  11. {partis_pyproj-0.1.7 → partis_pyproj-0.1.8}/src/pyproj/builder/__init__.py +0 -0
  12. {partis_pyproj-0.1.7 → partis_pyproj-0.1.8}/src/pyproj/builder/builder.py +0 -0
  13. {partis_pyproj-0.1.7 → partis_pyproj-0.1.8}/src/pyproj/builder/cargo.py +0 -0
  14. {partis_pyproj-0.1.7 → partis_pyproj-0.1.8}/src/pyproj/builder/download.py +0 -0
  15. {partis_pyproj-0.1.7 → partis_pyproj-0.1.8}/src/pyproj/builder/meson.py +0 -0
  16. {partis_pyproj-0.1.7 → partis_pyproj-0.1.8}/src/pyproj/builder/process.py +0 -0
  17. {partis_pyproj-0.1.7 → partis_pyproj-0.1.8}/src/pyproj/dist_file/__init__.py +0 -0
  18. {partis_pyproj-0.1.7 → partis_pyproj-0.1.8}/src/pyproj/dist_file/dist_base.py +0 -0
  19. {partis_pyproj-0.1.7 → partis_pyproj-0.1.8}/src/pyproj/dist_file/dist_binary.py +0 -0
  20. {partis_pyproj-0.1.7 → partis_pyproj-0.1.8}/src/pyproj/dist_file/dist_copy.py +0 -0
  21. {partis_pyproj-0.1.7 → partis_pyproj-0.1.8}/src/pyproj/dist_file/dist_source.py +0 -0
  22. {partis_pyproj-0.1.7 → partis_pyproj-0.1.8}/src/pyproj/dist_file/dist_targz.py +0 -0
  23. {partis_pyproj-0.1.7 → partis_pyproj-0.1.8}/src/pyproj/dist_file/dist_zip.py +0 -0
  24. {partis_pyproj-0.1.7 → partis_pyproj-0.1.8}/src/pyproj/file.py +0 -0
  25. {partis_pyproj-0.1.7 → partis_pyproj-0.1.8}/src/pyproj/legacy.py +0 -0
  26. {partis_pyproj-0.1.7 → partis_pyproj-0.1.8}/src/pyproj/load_module.py +0 -0
  27. {partis_pyproj-0.1.7 → partis_pyproj-0.1.8}/src/pyproj/norms.py +0 -0
  28. {partis_pyproj-0.1.7 → partis_pyproj-0.1.8}/src/pyproj/path/__init__.py +0 -0
  29. {partis_pyproj-0.1.7 → partis_pyproj-0.1.8}/src/pyproj/path/match.py +0 -0
  30. {partis_pyproj-0.1.7 → partis_pyproj-0.1.8}/src/pyproj/path/pattern.py +0 -0
  31. {partis_pyproj-0.1.7 → partis_pyproj-0.1.8}/src/pyproj/path/utils.py +0 -0
  32. {partis_pyproj-0.1.7 → partis_pyproj-0.1.8}/src/pyproj/pep.py +0 -0
  33. {partis_pyproj-0.1.7 → partis_pyproj-0.1.8}/src/pyproj/pkginfo.py +0 -0
  34. {partis_pyproj-0.1.7 → partis_pyproj-0.1.8}/src/pyproj/pptoml.py +0 -0
  35. {partis_pyproj-0.1.7 → partis_pyproj-0.1.8}/src/pyproj/template.py +0 -0
  36. {partis_pyproj-0.1.7 → partis_pyproj-0.1.8}/src/pyproj/validate.py +0 -0
@@ -1,26 +1,26 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: partis-pyproj
3
- Version: 0.1.7
3
+ Version: 0.1.8
4
4
  Requires-Python: >=3.8
5
5
  Author-email: "Nanohmics Inc." <software.support@nanohmics.com>
6
6
  Maintainer-email: "Nanohmics Inc." <software.support@nanohmics.com>
7
7
  Summary: Minimal set of Python project utilities (PEP-517/621)
8
8
  License-File: LICENSE.txt
9
- Classifier: Development Status :: 4 - Beta
10
- Classifier: Operating System :: POSIX :: Linux
11
- Classifier: Topic :: Software Development :: Build Tools
12
- Classifier: License :: OSI Approved :: BSD License
13
- Classifier: Operating System :: Microsoft :: Windows
14
9
  Classifier: Intended Audience :: Developers
15
10
  Classifier: Programming Language :: Python
11
+ Classifier: License :: OSI Approved :: BSD License
12
+ Classifier: Operating System :: POSIX :: Linux
13
+ Classifier: Topic :: Software Development :: Build Tools
16
14
  Classifier: Programming Language :: Python :: 3
15
+ Classifier: Operating System :: Microsoft :: Windows
16
+ Classifier: Development Status :: 4 - Beta
17
17
  Provides-Extra: meson
18
18
  Provides-Extra: cmake
19
19
  Requires-Dist: packaging>=24.2
20
- Requires-Dist: requests>=2.32.3
21
20
  Requires-Dist: tomli>=2.0.1
22
- Requires-Dist: meson>=0.61.3; extra == "meson"
21
+ Requires-Dist: requests>=2.32.3
23
22
  Requires-Dist: ninja>=1.10.2.3; extra == "meson"
23
+ Requires-Dist: meson>=0.61.3; extra == "meson"
24
24
  Requires-Dist: ninja>=1.10.2.3; extra == "cmake"
25
25
  Requires-Dist: cmake>=3.24.3; extra == "cmake"
26
26
  Description-Content-Type: text/markdown
@@ -26,7 +26,7 @@
26
26
 
27
27
  [project]
28
28
  name = "partis-pyproj"
29
- version = "0.1.7"
29
+ version = "0.1.8"
30
30
  description = "Minimal set of Python project utilities (PEP-517/621)"
31
31
  maintainers = [
32
32
  { name = "Nanohmics Inc.", email = "software.support@nanohmics.com" } ]
@@ -1,8 +1,6 @@
1
1
  from __future__ import annotations
2
2
  import os
3
- import os.path as osp
4
- import sys
5
- import shutil
3
+ from copy import copy
6
4
  import logging
7
5
  from logging import (
8
6
  basicConfig,
@@ -22,6 +20,7 @@ from collections.abc import (
22
20
 
23
21
  from . import (
24
22
  valid_keys,
23
+ ValidationError,
25
24
  mapget,
26
25
  dist_build,
27
26
  PkgInfoReq,
@@ -34,7 +33,7 @@ def backend_init(
34
33
  root: str|Path = '',
35
34
  config_settings: dict|None = None,
36
35
  logger: Logger|None = None ):
37
- """Called to inialialize the backend upon a call to one of the hooks
36
+ """Called to initialize the backend upon a call to one of the hooks
38
37
 
39
38
  Parameters
40
39
  ----------
@@ -210,26 +209,30 @@ def build_wheel(
210
209
  * https://www.python.org/dev/peps/pep-0517/#build-wheel
211
210
  """
212
211
 
213
- pyproj = backend_init(config_settings = config_settings)
212
+ try:
213
+ pyproj = backend_init(config_settings = config_settings)
214
214
 
215
- pyproj.dist_prep()
215
+ pyproj.dist_prep()
216
+ pyproj.dist_binary_prep()
216
217
 
217
- pyproj.dist_binary_prep()
218
+ with dist_binary_wheel(
219
+ pkg_info = pyproj.pkg_info,
220
+ build = dist_build(
221
+ pyproj.binary.get('build_number', None),
222
+ pyproj.binary.get('build_suffix', None) ),
223
+ compat = pyproj.binary.compat_tags,
224
+ outdir = wheel_directory,
225
+ logger = pyproj.logger ) as dist:
218
226
 
219
- with dist_binary_wheel(
220
- pkg_info = pyproj.pkg_info,
221
- build = dist_build(
222
- pyproj.binary.get('build_number', None),
223
- pyproj.binary.get('build_suffix', None) ),
224
- compat = pyproj.binary.compat_tags,
225
- outdir = wheel_directory,
226
- logger = pyproj.logger ) as dist:
227
+ pyproj.dist_binary_copy(
228
+ dist = dist )
227
229
 
228
- pyproj.dist_binary_copy(
229
- dist = dist )
230
+ pyproj.logger.info(
231
+ f"Top level packages {dist.top_level}")
230
232
 
231
- pyproj.logger.info(
232
- f"Top level packages {dist.top_level}")
233
+ except ValidationError as e:
234
+ known_exception_type = copy(e)
235
+ raise known_exception_type from None
233
236
 
234
237
  return dist.outname
235
238
 
@@ -70,9 +70,9 @@ def cmake(
70
70
 
71
71
  compile_args = [
72
72
  'cmake',
73
- *compile_args,
74
73
  '--build',
75
- str(build_dir) ]
74
+ str(build_dir),
75
+ *compile_args]
76
76
 
77
77
  install_args = [
78
78
  'cmake',
@@ -235,6 +235,7 @@ class PyProjBase:
235
235
  meson.pop('entry')
236
236
  meson.pop('work_dir')
237
237
  meson.pop('env')
238
+ meson.pop('exclusive')
238
239
  meson['compile'] = meson.pop('enabled')
239
240
  return pyproj_meson(meson)
240
241
 
File without changes
File without changes