hatch-xclam 0.7.0.dev11__py3-none-any.whl → 0.7.0.dev13__py3-none-any.whl

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 (67) hide show
  1. hatch_xclam-0.7.0.dev13.dist-info/METADATA +150 -0
  2. {hatch_xclam-0.7.0.dev11.dist-info → hatch_xclam-0.7.0.dev13.dist-info}/RECORD +6 -65
  3. hatch_xclam-0.7.0.dev13.dist-info/top_level.txt +2 -0
  4. hatch_xclam-0.7.0.dev11.dist-info/METADATA +0 -103
  5. hatch_xclam-0.7.0.dev11.dist-info/top_level.txt +0 -3
  6. node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py +0 -45
  7. node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSNew.py +0 -365
  8. node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSProject.py +0 -206
  9. node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings.py +0 -1272
  10. node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings_test.py +0 -1547
  11. node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSToolFile.py +0 -59
  12. node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSUserFile.py +0 -152
  13. node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSUtil.py +0 -270
  14. node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSVersion.py +0 -574
  15. node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py +0 -704
  16. node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/common.py +0 -709
  17. node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/common_test.py +0 -173
  18. node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/easy_xml.py +0 -169
  19. node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/easy_xml_test.py +0 -113
  20. node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/flock_tool.py +0 -55
  21. node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/__init__.py +0 -0
  22. node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/analyzer.py +0 -805
  23. node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/android.py +0 -1172
  24. node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/cmake.py +0 -1319
  25. node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/compile_commands_json.py +0 -128
  26. node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/dump_dependency_json.py +0 -104
  27. node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/eclipse.py +0 -462
  28. node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/gypd.py +0 -89
  29. node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/gypsh.py +0 -56
  30. node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py +0 -2745
  31. node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs.py +0 -3976
  32. node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs_test.py +0 -44
  33. node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja.py +0 -2965
  34. node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja_test.py +0 -67
  35. node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode.py +0 -1391
  36. node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode_test.py +0 -26
  37. node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py +0 -3112
  38. node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input_test.py +0 -99
  39. node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/mac_tool.py +0 -767
  40. node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/msvs_emulation.py +0 -1260
  41. node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/ninja_syntax.py +0 -174
  42. node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/simple_copy.py +0 -61
  43. node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/win_tool.py +0 -373
  44. node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py +0 -1939
  45. node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation_test.py +0 -54
  46. node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_ninja.py +0 -303
  47. node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xcodeproj_file.py +0 -3196
  48. node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xml_fix.py +0 -65
  49. node_modules/npm/node_modules/node-gyp/gyp/pylib/packaging/__init__.py +0 -15
  50. node_modules/npm/node_modules/node-gyp/gyp/pylib/packaging/_elffile.py +0 -108
  51. node_modules/npm/node_modules/node-gyp/gyp/pylib/packaging/_manylinux.py +0 -252
  52. node_modules/npm/node_modules/node-gyp/gyp/pylib/packaging/_musllinux.py +0 -83
  53. node_modules/npm/node_modules/node-gyp/gyp/pylib/packaging/_parser.py +0 -359
  54. node_modules/npm/node_modules/node-gyp/gyp/pylib/packaging/_structures.py +0 -61
  55. node_modules/npm/node_modules/node-gyp/gyp/pylib/packaging/_tokenizer.py +0 -192
  56. node_modules/npm/node_modules/node-gyp/gyp/pylib/packaging/markers.py +0 -252
  57. node_modules/npm/node_modules/node-gyp/gyp/pylib/packaging/metadata.py +0 -825
  58. node_modules/npm/node_modules/node-gyp/gyp/pylib/packaging/py.typed +0 -0
  59. node_modules/npm/node_modules/node-gyp/gyp/pylib/packaging/requirements.py +0 -90
  60. node_modules/npm/node_modules/node-gyp/gyp/pylib/packaging/specifiers.py +0 -1030
  61. node_modules/npm/node_modules/node-gyp/gyp/pylib/packaging/tags.py +0 -553
  62. node_modules/npm/node_modules/node-gyp/gyp/pylib/packaging/utils.py +0 -172
  63. node_modules/npm/node_modules/node-gyp/gyp/pylib/packaging/version.py +0 -563
  64. node_modules/npm/node_modules/node-gyp/gyp/test_gyp.py +0 -261
  65. {hatch_xclam-0.7.0.dev11.dist-info → hatch_xclam-0.7.0.dev13.dist-info}/WHEEL +0 -0
  66. {hatch_xclam-0.7.0.dev11.dist-info → hatch_xclam-0.7.0.dev13.dist-info}/entry_points.txt +0 -0
  67. {hatch_xclam-0.7.0.dev11.dist-info → hatch_xclam-0.7.0.dev13.dist-info}/licenses/LICENSE +0 -0
@@ -1,90 +0,0 @@
1
- # This file is dual licensed under the terms of the Apache License, Version
2
- # 2.0, and the BSD License. See the LICENSE file in the root of this repository
3
- # for complete details.
4
-
5
- from typing import Any, Iterator, Optional, Set
6
-
7
- from ._parser import parse_requirement as _parse_requirement
8
- from ._tokenizer import ParserSyntaxError
9
- from .markers import Marker, _normalize_extra_values
10
- from .specifiers import SpecifierSet
11
- from .utils import canonicalize_name
12
-
13
-
14
- class InvalidRequirement(ValueError):
15
- """
16
- An invalid requirement was found, users should refer to PEP 508.
17
- """
18
-
19
-
20
- class Requirement:
21
- """Parse a requirement.
22
-
23
- Parse a given requirement string into its parts, such as name, specifier,
24
- URL, and extras. Raises InvalidRequirement on a badly-formed requirement
25
- string.
26
- """
27
-
28
- # TODO: Can we test whether something is contained within a requirement?
29
- # If so how do we do that? Do we need to test against the _name_ of
30
- # the thing as well as the version? What about the markers?
31
- # TODO: Can we normalize the name and extra name?
32
-
33
- def __init__(self, requirement_string: str) -> None:
34
- try:
35
- parsed = _parse_requirement(requirement_string)
36
- except ParserSyntaxError as e:
37
- raise InvalidRequirement(str(e)) from e
38
-
39
- self.name: str = parsed.name
40
- self.url: Optional[str] = parsed.url or None
41
- self.extras: Set[str] = set(parsed.extras if parsed.extras else [])
42
- self.specifier: SpecifierSet = SpecifierSet(parsed.specifier)
43
- self.marker: Optional[Marker] = None
44
- if parsed.marker is not None:
45
- self.marker = Marker.__new__(Marker)
46
- self.marker._markers = _normalize_extra_values(parsed.marker)
47
-
48
- def _iter_parts(self, name: str) -> Iterator[str]:
49
- yield name
50
-
51
- if self.extras:
52
- formatted_extras = ",".join(sorted(self.extras))
53
- yield f"[{formatted_extras}]"
54
-
55
- if self.specifier:
56
- yield str(self.specifier)
57
-
58
- if self.url:
59
- yield f"@ {self.url}"
60
- if self.marker:
61
- yield " "
62
-
63
- if self.marker:
64
- yield f"; {self.marker}"
65
-
66
- def __str__(self) -> str:
67
- return "".join(self._iter_parts(self.name))
68
-
69
- def __repr__(self) -> str:
70
- return f"<Requirement('{self}')>"
71
-
72
- def __hash__(self) -> int:
73
- return hash(
74
- (
75
- self.__class__.__name__,
76
- *self._iter_parts(canonicalize_name(self.name)),
77
- )
78
- )
79
-
80
- def __eq__(self, other: Any) -> bool:
81
- if not isinstance(other, Requirement):
82
- return NotImplemented
83
-
84
- return (
85
- canonicalize_name(self.name) == canonicalize_name(other.name)
86
- and self.extras == other.extras
87
- and self.specifier == other.specifier
88
- and self.url == other.url
89
- and self.marker == other.marker
90
- )