requirements-detector 1.2.2__tar.gz → 1.3.0__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 (22) hide show
  1. {requirements_detector-1.2.2 → requirements_detector-1.3.0}/PKG-INFO +3 -7
  2. {requirements_detector-1.2.2 → requirements_detector-1.3.0}/pyproject.toml +3 -2
  3. {requirements_detector-1.2.2 → requirements_detector-1.3.0}/requirements_detector/requirement.py +1 -0
  4. requirements_detector-1.2.2/setup.py +0 -37
  5. {requirements_detector-1.2.2 → requirements_detector-1.3.0}/LICENSE +0 -0
  6. {requirements_detector-1.2.2 → requirements_detector-1.3.0}/README.md +0 -0
  7. {requirements_detector-1.2.2 → requirements_detector-1.3.0}/requirements_detector/__init__.py +0 -0
  8. {requirements_detector-1.2.2 → requirements_detector-1.3.0}/requirements_detector/__main__.py +0 -0
  9. {requirements_detector-1.2.2 → requirements_detector-1.3.0}/requirements_detector/detect.py +0 -0
  10. {requirements_detector-1.2.2 → requirements_detector-1.3.0}/requirements_detector/exceptions.py +0 -0
  11. {requirements_detector-1.2.2 → requirements_detector-1.3.0}/requirements_detector/formatters.py +0 -0
  12. {requirements_detector-1.2.2 → requirements_detector-1.3.0}/requirements_detector/handle_setup.py +0 -0
  13. {requirements_detector-1.2.2 → requirements_detector-1.3.0}/requirements_detector/poetry_semver/README.md +0 -0
  14. {requirements_detector-1.2.2 → requirements_detector-1.3.0}/requirements_detector/poetry_semver/__init__.py +0 -0
  15. {requirements_detector-1.2.2 → requirements_detector-1.3.0}/requirements_detector/poetry_semver/empty_constraint.py +0 -0
  16. {requirements_detector-1.2.2 → requirements_detector-1.3.0}/requirements_detector/poetry_semver/exceptions.py +0 -0
  17. {requirements_detector-1.2.2 → requirements_detector-1.3.0}/requirements_detector/poetry_semver/patterns.py +0 -0
  18. {requirements_detector-1.2.2 → requirements_detector-1.3.0}/requirements_detector/poetry_semver/version.py +0 -0
  19. {requirements_detector-1.2.2 → requirements_detector-1.3.0}/requirements_detector/poetry_semver/version_constraint.py +0 -0
  20. {requirements_detector-1.2.2 → requirements_detector-1.3.0}/requirements_detector/poetry_semver/version_range.py +0 -0
  21. {requirements_detector-1.2.2 → requirements_detector-1.3.0}/requirements_detector/poetry_semver/version_union.py +0 -0
  22. {requirements_detector-1.2.2 → requirements_detector-1.3.0}/requirements_detector/run.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: requirements-detector
3
- Version: 1.2.2
3
+ Version: 1.3.0
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
@@ -19,13 +19,9 @@ Classifier: Programming Language :: Python :: 3.8
19
19
  Classifier: Programming Language :: Python :: 3.9
20
20
  Classifier: Programming Language :: Python :: 3.10
21
21
  Classifier: Programming Language :: Python :: 3.11
22
- Classifier: Programming Language :: Python :: 3.10
23
- Classifier: Programming Language :: Python :: 3.11
24
- Classifier: Programming Language :: Python :: 3.7
25
- Classifier: Programming Language :: Python :: 3.8
26
- Classifier: Programming Language :: Python :: 3.9
22
+ Classifier: Programming Language :: Python :: 3.12
27
23
  Classifier: Topic :: Software Development :: Quality Assurance
28
- Requires-Dist: astroid (>=2.0,<3.0)
24
+ Requires-Dist: astroid (>=2.0)
29
25
  Requires-Dist: packaging (>=21.3)
30
26
  Requires-Dist: semver (>=3.0.0,<4.0.0)
31
27
  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.2.2"
3
+ version = "1.3.0"
4
4
  authors = ["Landscape.io <code@landscape.io>"]
5
5
  classifiers = [
6
6
  'Development Status :: 5 - Production/Stable',
@@ -13,6 +13,7 @@ classifiers = [
13
13
  'Programming Language :: Python :: 3.9',
14
14
  'Programming Language :: Python :: 3.10',
15
15
  'Programming Language :: Python :: 3.11',
16
+ 'Programming Language :: Python :: 3.12',
16
17
  'License :: OSI Approved :: MIT License',
17
18
  ]
18
19
  license = "MIT"
@@ -29,7 +30,7 @@ detect-requirements = 'requirements_detector.run:run'
29
30
 
30
31
  [tool.poetry.dependencies]
31
32
  python = ">=3.7,<4.0"
32
- astroid = "^2.0"
33
+ astroid = ">=2.0"
33
34
  packaging = ">=21.3"
34
35
  toml = "^0.10.2"
35
36
  semver = "^3.0.0"
@@ -8,6 +8,7 @@ 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
+
11
12
  import os
12
13
  import re
13
14
  from pathlib import Path
@@ -1,37 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
- from setuptools import setup
3
-
4
- packages = \
5
- ['requirements_detector', 'requirements_detector.poetry_semver']
6
-
7
- package_data = \
8
- {'': ['*']}
9
-
10
- install_requires = \
11
- ['astroid>=2.0,<3.0',
12
- 'packaging>=21.3',
13
- 'semver>=3.0.0,<4.0.0',
14
- 'toml>=0.10.2,<0.11.0']
15
-
16
- entry_points = \
17
- {'console_scripts': ['detect-requirements = requirements_detector.run:run']}
18
-
19
- setup_kwargs = {
20
- 'name': 'requirements-detector',
21
- 'version': '1.2.2',
22
- 'description': 'Python tool to find and list requirements of a Python project',
23
- 'long_description': '# Requirements Detector\n\n## Status\n\n[![Latest Version](https://img.shields.io/pypi/v/requirements-detector.svg?label=version&style=flat)](https://pypi.python.org/pypi/requirements-detector)\n[![Build Satus](https://github.com/landscapeio/requirements-detector/actions/workflows/ci.yaml/badge.svg)](https://github.com/landscapeio/requirements-detector/actions/workflows/ci.yaml)\n[![Health](https://landscape.io/github/landscapeio/requirements-detector/master/landscape.svg?style=flat)](https://landscape.io/github/landscapeio/requirements-detector/master)\n[![Coverage Status](https://img.shields.io/coveralls/landscapeio/requirements-detector.svg?style=flat)](https://coveralls.io/r/landscapeio/requirements-detector)\n[![Documentation](https://readthedocs.org/projects/requirements-detector/badge/?version=master)](https://readthedocs.org/projects/requirements-detector/)\n\n## About\n\n`requirements-detector` is a simple Python tool which attempts to find and list the requirements of a Python project.\n\nWhen run from the root of a Python project, it will try to ascertain which libraries and the versions of those libraries that the project depends on.\n\nIt uses the following methods in order, in the root of the project:\n\n1. Parse `setup.py` (if this is successful, the remaining steps are skipped)\n2. Parse `pyproject.yoml` (if a `tool.poetry.dependencies` section is found, the remaining steps are skipped)\n3. Parse `requirements.txt` or `requirements.pip`\n4. Parse all `*.txt` and `*.pip` files inside a folder called `requirements`\n5. Parse all files in the root folder matching `*requirements*.txt` or `reqs.txt` (so for example, `pip_requirements.txt` would match, as would `requirements_common.txt`)\n\n### Usage\n\n```\ndetect-requirements [path]\n```\nIf `path` is not specified, the current working directory will be used.\n\n### Output\n\nThe output will be plaintext, and match that of a [pip requirements file](http://www.pip-installer.org/en/latest/logic.html), for example:\n\n```\nDjango==1.5.2\nSouth>=0.8\nanyjson\ncelery>=2.2,<3\n```\n\n### Usage From Python\n\n```\n>>> import os\n>>> from requirements_detector import find_requirements\n>>> find_requirements(os.getcwd())\n[DetectedRequirement:Django==1.5.2, DetectedRequirement:South>=0.8, ...]\n```\n\n\nIf you know the relevant file or directory, you can use `from_requirements_txt`, `from_setup_py` or `from_requirements_dir` directly.\n\n```\n>>> from requirements_detector import from_requirements_txt\n>>> from_requirements_txt("/path/to/requirements.txt")\n[DetectedRequirement:Django==1.5.2, DetectedRequirement:South>=0.8, ...]\n```\n',
24
- 'author': 'Landscape.io',
25
- 'author_email': 'code@landscape.io',
26
- 'maintainer': 'None',
27
- 'maintainer_email': 'None',
28
- 'url': 'https://github.com/landscapeio/requirements-detector',
29
- 'packages': packages,
30
- 'package_data': package_data,
31
- 'install_requires': install_requires,
32
- 'entry_points': entry_points,
33
- 'python_requires': '>=3.7,<4.0',
34
- }
35
-
36
-
37
- setup(**setup_kwargs)