requirements-detector 1.3.0__py3-none-any.whl → 1.3.1__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.
@@ -1,7 +1,7 @@
1
1
  from pathlib import Path
2
2
  from typing import Union
3
3
 
4
- from astroid import MANAGER, AstroidBuildingException, AstroidSyntaxError
4
+ from astroid import MANAGER, AstroidSyntaxError
5
5
  from astroid.builder import AstroidBuilder
6
6
  from astroid.nodes import Assign, AssignName, Call, Const, Keyword, List, Name, Tuple
7
7
 
@@ -92,7 +92,7 @@ def from_setup_py(setup_file: Union[str, Path]):
92
92
 
93
93
  try:
94
94
  ast = AstroidBuilder(MANAGER).string_build(setup_file.open().read())
95
- except (SyntaxError, AstroidBuildingException, AstroidSyntaxError):
95
+ except (SyntaxError, AstroidSyntaxError):
96
96
  # if the setup file is broken, we can't do much about that...
97
97
  raise CouldNotParseRequirements
98
98
 
@@ -8,7 +8,6 @@ we don't expect relative file paths to exist, for example. Note that the parsing
8
8
  is also intentionally more lenient - it is not our job to validate the requirements
9
9
  list.
10
10
  """
11
-
12
11
  import os
13
12
  import re
14
13
  from pathlib import Path
@@ -1,27 +1,26 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: requirements-detector
3
- Version: 1.3.0
3
+ Version: 1.3.1
4
4
  Summary: Python tool to find and list requirements of a Python project
5
5
  Home-page: https://github.com/landscapeio/requirements-detector
6
6
  License: MIT
7
7
  Keywords: python,requirements detector
8
8
  Author: Landscape.io
9
9
  Author-email: code@landscape.io
10
- Requires-Python: >=3.7,<4.0
10
+ Requires-Python: >=3.8,<4.0
11
11
  Classifier: Development Status :: 5 - Production/Stable
12
12
  Classifier: Environment :: Console
13
13
  Classifier: Intended Audience :: Developers
14
14
  Classifier: License :: OSI Approved :: MIT License
15
15
  Classifier: Operating System :: Unix
16
16
  Classifier: Programming Language :: Python :: 3
17
- Classifier: Programming Language :: Python :: 3.7
18
17
  Classifier: Programming Language :: Python :: 3.8
19
18
  Classifier: Programming Language :: Python :: 3.9
20
19
  Classifier: Programming Language :: Python :: 3.10
21
20
  Classifier: Programming Language :: Python :: 3.11
22
21
  Classifier: Programming Language :: Python :: 3.12
23
22
  Classifier: Topic :: Software Development :: Quality Assurance
24
- Requires-Dist: astroid (>=2.0)
23
+ Requires-Dist: astroid (>=3.0,<4.0)
25
24
  Requires-Dist: packaging (>=21.3)
26
25
  Requires-Dist: semver (>=3.0.0,<4.0.0)
27
26
  Requires-Dist: toml (>=0.10.2,<0.11.0)
@@ -3,7 +3,7 @@ requirements_detector/__main__.py,sha256=U6nHQrMwd11auXYgQsT0wqqqKyyGKXxHZ_SDaaO
3
3
  requirements_detector/detect.py,sha256=2RP-kNQe6hEXfLSknWuHP2BOo7nwe9Bhpb8QSmaLH48,5880
4
4
  requirements_detector/exceptions.py,sha256=bTy7-ZvAXt-nucXKnaYIBxa5FngtFpD95FXswejc7Wk,103
5
5
  requirements_detector/formatters.py,sha256=zcxR2n2Tp8z3DHkpokbjHorNqei5LZ9hprWZK0ZBVik,340
6
- requirements_detector/handle_setup.py,sha256=A4JwYeGeOg7bBIJr-25yuA-SsyIS5rpNV4G72qziYAk,3999
6
+ requirements_detector/handle_setup.py,sha256=K-tnZP9ioKO-zgVsDRaI9aBBZpMtQKLPkXyFWotohEk,3947
7
7
  requirements_detector/poetry_semver/README.md,sha256=lU6DxV4Qk1qv_KIgOW1uEahx6PWDNhnIziF2izA49-k,261
8
8
  requirements_detector/poetry_semver/__init__.py,sha256=3rarQkEpLB-X5nbqsIrCXspaUL1Y9DGQTKA2gvBritA,4681
9
9
  requirements_detector/poetry_semver/empty_constraint.py,sha256=U_a8Obi0shKP4KoLDbXTGWzwha3J4HKwqEKWTNiLfuo,562
@@ -13,10 +13,10 @@ requirements_detector/poetry_semver/version.py,sha256=ErVXM8tgotWJ74G7kmh5TzJcVQ
13
13
  requirements_detector/poetry_semver/version_constraint.py,sha256=VNpYqS7JhEW1P_QiJVJ0Os4oK2M9z4kpGRwaHWW4wOw,870
14
14
  requirements_detector/poetry_semver/version_range.py,sha256=dm7mgZL5H0Xn0vKG2YuM8ScBn2qARTBeHaJUYNk2kEo,13179
15
15
  requirements_detector/poetry_semver/version_union.py,sha256=MmYBSED7hyb2H5sxuL0i6feWTc6x1tYVrVvGraon1g0,7931
16
- requirements_detector/requirement.py,sha256=9440kErBKTbvXTNrdQ5Sf_gnUKqPRURC63XQP1x7CPo,5549
16
+ requirements_detector/requirement.py,sha256=XuKspLsLY_sZOVKupXSjGFMxV1u3NHaTgjb-kRXbzFg,5548
17
17
  requirements_detector/run.py,sha256=8AjUalMAmCgK4HAsswSoxVG4N_uhYrvGMhZnfQUf8X8,861
18
- requirements_detector-1.3.0.dist-info/LICENSE,sha256=548oOCrCNqQty8Fsqqry522lXdxnBTqLyzqr38ct-cw,1040
19
- requirements_detector-1.3.0.dist-info/METADATA,sha256=jwolECKWuEref7DTpO6lCmcn5Q7IKRYODLrRs7gOPNA,3732
20
- requirements_detector-1.3.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
21
- requirements_detector-1.3.0.dist-info/entry_points.txt,sha256=c1Pyo5EK49kT1g7Wac3vwl0bVs0QBZeQ8Zia1WVL1do,69
22
- requirements_detector-1.3.0.dist-info/RECORD,,
18
+ requirements_detector-1.3.1.dist-info/LICENSE,sha256=548oOCrCNqQty8Fsqqry522lXdxnBTqLyzqr38ct-cw,1040
19
+ requirements_detector-1.3.1.dist-info/METADATA,sha256=Rf7ImjEZeg5meDZvvkBmHWOBcn10WEM4anJxoLZQhTk,3687
20
+ requirements_detector-1.3.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
21
+ requirements_detector-1.3.1.dist-info/entry_points.txt,sha256=c1Pyo5EK49kT1g7Wac3vwl0bVs0QBZeQ8Zia1WVL1do,69
22
+ requirements_detector-1.3.1.dist-info/RECORD,,