├── .coveragerc ├── .github └── workflows │ └── ci.yaml ├── .gitignore ├── .landscape.yaml ├── .pre-commit-config.yaml ├── LICENSE ├── README.md ├── poetry.lock ├── pyproject.toml ├── requirements_detector ├── __init__.py ├── __main__.py ├── detect.py ├── exceptions.py ├── formatters.py ├── handle_setup.py ├── poetry_semver │ ├── README.md │ ├── __init__.py │ ├── empty_constraint.py │ ├── exceptions.py │ ├── patterns.py │ ├── version.py │ ├── version_constraint.py │ ├── version_range.py │ └── version_union.py ├── py.typed ├── requirement.py └── run.py ├── tests ├── __init__.py ├── detection │ ├── syntax_error │ │ ├── regular_indentation.py │ │ ├── setup.py │ │ └── setup_multiline_string.py │ ├── test1 │ │ └── requirements.txt │ ├── test2 │ │ └── requirements │ │ │ ├── base.txt │ │ │ └── webui.pip │ ├── test3 │ │ ├── pip_requirements.txt │ │ ├── reqs.txt │ │ ├── requirements_base.txt │ │ ├── requirements_test.txt │ │ └── test_requirements.txt │ ├── test4 │ │ ├── callable.py │ │ ├── in_file.py │ │ ├── simple.py │ │ ├── subscript_assign.py │ │ ├── tuple.py │ │ ├── uses_requires.py │ │ ├── uses_requires_and_install_requires.py │ │ └── utf8.py │ ├── test5 │ │ └── invalid_requirements.txt │ ├── test6 │ │ └── requirements.txt │ ├── test7 │ │ └── poetry-format-requirements.txt │ └── test8 │ │ └── pyproject.toml ├── test_detection.py ├── test_failure_cases.py ├── test_parsing.py └── test_poetry_semver │ ├── __init__.py │ ├── test_main.py │ ├── test_version.py │ └── test_version_range.py └── tox.ini /.coveragerc: -------------------------------------------------------------------------------- 1 | 2 | [run] 3 | source=requirements_detector 4 | -------------------------------------------------------------------------------- /.github/workflows/ci.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prospector-dev/requirements-detector/HEAD/.github/workflows/ci.yaml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prospector-dev/requirements-detector/HEAD/.gitignore -------------------------------------------------------------------------------- /.landscape.yaml: -------------------------------------------------------------------------------- 1 | doc-warnings: no 2 | strictness: veryhigh 3 | max-line-length: 120 4 | -------------------------------------------------------------------------------- /.pre-commit-config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prospector-dev/requirements-detector/HEAD/.pre-commit-config.yaml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prospector-dev/requirements-detector/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prospector-dev/requirements-detector/HEAD/README.md -------------------------------------------------------------------------------- /poetry.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prospector-dev/requirements-detector/HEAD/poetry.lock -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prospector-dev/requirements-detector/HEAD/pyproject.toml -------------------------------------------------------------------------------- /requirements_detector/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prospector-dev/requirements-detector/HEAD/requirements_detector/__init__.py -------------------------------------------------------------------------------- /requirements_detector/__main__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prospector-dev/requirements-detector/HEAD/requirements_detector/__main__.py -------------------------------------------------------------------------------- /requirements_detector/detect.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prospector-dev/requirements-detector/HEAD/requirements_detector/detect.py -------------------------------------------------------------------------------- /requirements_detector/exceptions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prospector-dev/requirements-detector/HEAD/requirements_detector/exceptions.py -------------------------------------------------------------------------------- /requirements_detector/formatters.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prospector-dev/requirements-detector/HEAD/requirements_detector/formatters.py -------------------------------------------------------------------------------- /requirements_detector/handle_setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prospector-dev/requirements-detector/HEAD/requirements_detector/handle_setup.py -------------------------------------------------------------------------------- /requirements_detector/poetry_semver/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prospector-dev/requirements-detector/HEAD/requirements_detector/poetry_semver/README.md -------------------------------------------------------------------------------- /requirements_detector/poetry_semver/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prospector-dev/requirements-detector/HEAD/requirements_detector/poetry_semver/__init__.py -------------------------------------------------------------------------------- /requirements_detector/poetry_semver/empty_constraint.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prospector-dev/requirements-detector/HEAD/requirements_detector/poetry_semver/empty_constraint.py -------------------------------------------------------------------------------- /requirements_detector/poetry_semver/exceptions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prospector-dev/requirements-detector/HEAD/requirements_detector/poetry_semver/exceptions.py -------------------------------------------------------------------------------- /requirements_detector/poetry_semver/patterns.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prospector-dev/requirements-detector/HEAD/requirements_detector/poetry_semver/patterns.py -------------------------------------------------------------------------------- /requirements_detector/poetry_semver/version.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prospector-dev/requirements-detector/HEAD/requirements_detector/poetry_semver/version.py -------------------------------------------------------------------------------- /requirements_detector/poetry_semver/version_constraint.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prospector-dev/requirements-detector/HEAD/requirements_detector/poetry_semver/version_constraint.py -------------------------------------------------------------------------------- /requirements_detector/poetry_semver/version_range.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prospector-dev/requirements-detector/HEAD/requirements_detector/poetry_semver/version_range.py -------------------------------------------------------------------------------- /requirements_detector/poetry_semver/version_union.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prospector-dev/requirements-detector/HEAD/requirements_detector/poetry_semver/version_union.py -------------------------------------------------------------------------------- /requirements_detector/py.typed: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /requirements_detector/requirement.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prospector-dev/requirements-detector/HEAD/requirements_detector/requirement.py -------------------------------------------------------------------------------- /requirements_detector/run.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prospector-dev/requirements-detector/HEAD/requirements_detector/run.py -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/detection/syntax_error/regular_indentation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prospector-dev/requirements-detector/HEAD/tests/detection/syntax_error/regular_indentation.py -------------------------------------------------------------------------------- /tests/detection/syntax_error/setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prospector-dev/requirements-detector/HEAD/tests/detection/syntax_error/setup.py -------------------------------------------------------------------------------- /tests/detection/syntax_error/setup_multiline_string.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prospector-dev/requirements-detector/HEAD/tests/detection/syntax_error/setup_multiline_string.py -------------------------------------------------------------------------------- /tests/detection/test1/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prospector-dev/requirements-detector/HEAD/tests/detection/test1/requirements.txt -------------------------------------------------------------------------------- /tests/detection/test2/requirements/base.txt: -------------------------------------------------------------------------------- 1 | amqp==1.0.13 2 | anyjson==0.3.3 3 | -------------------------------------------------------------------------------- /tests/detection/test2/requirements/webui.pip: -------------------------------------------------------------------------------- 1 | Django==1.5.2 2 | South==0.8.2 3 | -------------------------------------------------------------------------------- /tests/detection/test3/pip_requirements.txt: -------------------------------------------------------------------------------- 1 | anyjson==0.3.3 2 | -------------------------------------------------------------------------------- /tests/detection/test3/reqs.txt: -------------------------------------------------------------------------------- 1 | django-gubbins==1.1.2 2 | -------------------------------------------------------------------------------- /tests/detection/test3/requirements_base.txt: -------------------------------------------------------------------------------- 1 | amqp==1.0.13 2 | -------------------------------------------------------------------------------- /tests/detection/test3/requirements_test.txt: -------------------------------------------------------------------------------- 1 | South==0.8.2 2 | -------------------------------------------------------------------------------- /tests/detection/test3/test_requirements.txt: -------------------------------------------------------------------------------- 1 | Django==1.5.2 2 | -------------------------------------------------------------------------------- /tests/detection/test4/callable.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prospector-dev/requirements-detector/HEAD/tests/detection/test4/callable.py -------------------------------------------------------------------------------- /tests/detection/test4/in_file.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prospector-dev/requirements-detector/HEAD/tests/detection/test4/in_file.py -------------------------------------------------------------------------------- /tests/detection/test4/simple.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prospector-dev/requirements-detector/HEAD/tests/detection/test4/simple.py -------------------------------------------------------------------------------- /tests/detection/test4/subscript_assign.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prospector-dev/requirements-detector/HEAD/tests/detection/test4/subscript_assign.py -------------------------------------------------------------------------------- /tests/detection/test4/tuple.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prospector-dev/requirements-detector/HEAD/tests/detection/test4/tuple.py -------------------------------------------------------------------------------- /tests/detection/test4/uses_requires.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prospector-dev/requirements-detector/HEAD/tests/detection/test4/uses_requires.py -------------------------------------------------------------------------------- /tests/detection/test4/uses_requires_and_install_requires.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prospector-dev/requirements-detector/HEAD/tests/detection/test4/uses_requires_and_install_requires.py -------------------------------------------------------------------------------- /tests/detection/test4/utf8.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prospector-dev/requirements-detector/HEAD/tests/detection/test4/utf8.py -------------------------------------------------------------------------------- /tests/detection/test5/invalid_requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prospector-dev/requirements-detector/HEAD/tests/detection/test5/invalid_requirements.txt -------------------------------------------------------------------------------- /tests/detection/test6/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prospector-dev/requirements-detector/HEAD/tests/detection/test6/requirements.txt -------------------------------------------------------------------------------- /tests/detection/test7/poetry-format-requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prospector-dev/requirements-detector/HEAD/tests/detection/test7/poetry-format-requirements.txt -------------------------------------------------------------------------------- /tests/detection/test8/pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prospector-dev/requirements-detector/HEAD/tests/detection/test8/pyproject.toml -------------------------------------------------------------------------------- /tests/test_detection.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prospector-dev/requirements-detector/HEAD/tests/test_detection.py -------------------------------------------------------------------------------- /tests/test_failure_cases.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prospector-dev/requirements-detector/HEAD/tests/test_failure_cases.py -------------------------------------------------------------------------------- /tests/test_parsing.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prospector-dev/requirements-detector/HEAD/tests/test_parsing.py -------------------------------------------------------------------------------- /tests/test_poetry_semver/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/test_poetry_semver/test_main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prospector-dev/requirements-detector/HEAD/tests/test_poetry_semver/test_main.py -------------------------------------------------------------------------------- /tests/test_poetry_semver/test_version.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prospector-dev/requirements-detector/HEAD/tests/test_poetry_semver/test_version.py -------------------------------------------------------------------------------- /tests/test_poetry_semver/test_version_range.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prospector-dev/requirements-detector/HEAD/tests/test_poetry_semver/test_version_range.py -------------------------------------------------------------------------------- /tox.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prospector-dev/requirements-detector/HEAD/tox.ini --------------------------------------------------------------------------------