requirements-detector 1.3.0__tar.gz → 1.3.1__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 (21) hide show
  1. {requirements_detector-1.3.0 → requirements_detector-1.3.1}/PKG-INFO +3 -4
  2. {requirements_detector-1.3.0 → requirements_detector-1.3.1}/pyproject.toml +3 -4
  3. {requirements_detector-1.3.0 → requirements_detector-1.3.1}/requirements_detector/handle_setup.py +2 -2
  4. {requirements_detector-1.3.0 → requirements_detector-1.3.1}/requirements_detector/requirement.py +0 -1
  5. {requirements_detector-1.3.0 → requirements_detector-1.3.1}/LICENSE +0 -0
  6. {requirements_detector-1.3.0 → requirements_detector-1.3.1}/README.md +0 -0
  7. {requirements_detector-1.3.0 → requirements_detector-1.3.1}/requirements_detector/__init__.py +0 -0
  8. {requirements_detector-1.3.0 → requirements_detector-1.3.1}/requirements_detector/__main__.py +0 -0
  9. {requirements_detector-1.3.0 → requirements_detector-1.3.1}/requirements_detector/detect.py +0 -0
  10. {requirements_detector-1.3.0 → requirements_detector-1.3.1}/requirements_detector/exceptions.py +0 -0
  11. {requirements_detector-1.3.0 → requirements_detector-1.3.1}/requirements_detector/formatters.py +0 -0
  12. {requirements_detector-1.3.0 → requirements_detector-1.3.1}/requirements_detector/poetry_semver/README.md +0 -0
  13. {requirements_detector-1.3.0 → requirements_detector-1.3.1}/requirements_detector/poetry_semver/__init__.py +0 -0
  14. {requirements_detector-1.3.0 → requirements_detector-1.3.1}/requirements_detector/poetry_semver/empty_constraint.py +0 -0
  15. {requirements_detector-1.3.0 → requirements_detector-1.3.1}/requirements_detector/poetry_semver/exceptions.py +0 -0
  16. {requirements_detector-1.3.0 → requirements_detector-1.3.1}/requirements_detector/poetry_semver/patterns.py +0 -0
  17. {requirements_detector-1.3.0 → requirements_detector-1.3.1}/requirements_detector/poetry_semver/version.py +0 -0
  18. {requirements_detector-1.3.0 → requirements_detector-1.3.1}/requirements_detector/poetry_semver/version_constraint.py +0 -0
  19. {requirements_detector-1.3.0 → requirements_detector-1.3.1}/requirements_detector/poetry_semver/version_range.py +0 -0
  20. {requirements_detector-1.3.0 → requirements_detector-1.3.1}/requirements_detector/poetry_semver/version_union.py +0 -0
  21. {requirements_detector-1.3.0 → requirements_detector-1.3.1}/requirements_detector/run.py +0 -0
@@ -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)
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "requirements-detector"
3
- version = "1.3.0"
3
+ version = "1.3.1"
4
4
  authors = ["Landscape.io <code@landscape.io>"]
5
5
  classifiers = [
6
6
  'Development Status :: 5 - Production/Stable',
@@ -8,7 +8,6 @@ classifiers = [
8
8
  'Intended Audience :: Developers',
9
9
  'Operating System :: Unix',
10
10
  'Topic :: Software Development :: Quality Assurance',
11
- 'Programming Language :: Python :: 3.7',
12
11
  'Programming Language :: Python :: 3.8',
13
12
  'Programming Language :: Python :: 3.9',
14
13
  'Programming Language :: Python :: 3.10',
@@ -29,8 +28,8 @@ packages = [
29
28
  detect-requirements = 'requirements_detector.run:run'
30
29
 
31
30
  [tool.poetry.dependencies]
32
- python = ">=3.7,<4.0"
33
- astroid = ">=2.0"
31
+ python = ">=3.8,<4.0"
32
+ astroid = "^3.0"
34
33
  packaging = ">=21.3"
35
34
  toml = "^0.10.2"
36
35
  semver = "^3.0.0"
@@ -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