checkdeps-1.0.0b1


توضیحات

Ensures your first-order deps are correct
ویژگی مقدار
سیستم عامل -
نام فایل checkdeps-1.0.0b1
نام checkdeps
نسخه کتابخانه 1.0.0b1
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Tim Hatch
ایمیل نویسنده tim@timhatch.com
آدرس صفحه اصلی https://github.com/python-packaging/checkdeps/
آدرس اینترنتی https://pypi.org/project/checkdeps/
مجوز MIT
# checkdeps It's really easy to accidentally use your transitive deps by accident. This project allows you to check (given a working venv) that everything you import actually comes from either relative imports, your explicit first-order deps, or stdlib. Usage: ``` # Run within a working venv # For CI $ python -m checkdeps checkdeps # If you use non-relative imports for your own project's code, also add $ python -m checkdeps checkdeps --allow-names checkdeps # For humans, pass -v $ python -m checkdeps -v checkdeps/cli.py checkdeps/cli.py: click available from ['click'] pathlib.Path stdlib stdlibs.stdlib_module_names available from ['stdlibs'] sys stdlib trailrunner available from ['trailrunner'] typing.Dict stdlib typing.List stdlib typing.Optional stdlib typing.Set stdlib ``` Exits nonzero if there are any issues. # But what if I don't want to run it from the same venv Make sure you specify `--installed-path` to the site-packages dir and run from the same python version. A parent of your `target_dir` should be obviously the root of your project (`pyproject.toml`, `.git`, etc), which is what the `requirements` are relative to. # But aren't there projects that do this already? I've looked at them, and I don't like the assumptions they make about top-level names, stdlib, or namespace packages. I think this project is more correct and more self-contained. # Future work * Read project metadata instead of requirements * Ensure metadata and requirements match * Offer to add missing deps * Better handling of version-dependent deps in an `if` or `try`/`except` # License checkdeps is copyright [Tim Hatch](https://timhatch.com/), and licensed under the MIT license. I am providing code in this repository to you under an open source license. This is my personal repository; the license you receive to my code is from me and not from my employer. See the `LICENSE` file for details.


نیازمندی

مقدار نام
=7. click
=21. packaging
=2022.3.1 stdlibs
=1. trailrunner
- toml
=23.12. black
=7.0. flake8
=1.8. mypy
=4.12. tox
=4.0. twine
=2.3. ufmt
=1.0. usort
=0.42. wheel
= coverage


زبان مورد نیاز

مقدار نام
>=3.10 Python


نحوه نصب


نصب پکیج whl checkdeps-1.0.0b1:

    pip install checkdeps-1.0.0b1.whl


نصب پکیج tar.gz checkdeps-1.0.0b1:

    pip install checkdeps-1.0.0b1.tar.gz