aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gmail.com>2021-02-13 19:01:04 -0700
committerTim Harder <radhermit@gmail.com>2021-02-13 19:01:49 -0700
commit48919353f83003b08331841660e6b9c8dc8893b8 (patch)
tree88aed2c4d7e750ef4a0c581f0eb52cb8bfb6eefa /README.rst
parentupdate news (diff)
downloadpkgcheck-48919353f83003b08331841660e6b9c8dc8893b8.tar.gz
pkgcheck-48919353f83003b08331841660e6b9c8dc8893b8.tar.bz2
pkgcheck-48919353f83003b08331841660e6b9c8dc8893b8.zip
readme: add basic usage info
Diffstat (limited to 'README.rst')
-rw-r--r--README.rst22
1 files changed, 20 insertions, 2 deletions
diff --git a/README.rst b/README.rst
index e16837e8..85cf21ac 100644
--- a/README.rst
+++ b/README.rst
@@ -27,13 +27,31 @@ Installing latest pypi release::
pip install pkgcheck
Installing from git::
-
+
pip install https://github.com/pkgcore/pkgcheck/archive/master.tar.gz
Installing from a tarball::
python setup.py install
+Usage
+=====
+
+Most users will use pkgcheck on the command line via ``pkgcheck scan`` to
+target ebuild repos. See the docs_ or the man page for more inforation on
+running pkgcheck.
+
+It's also possible to run pkgcheck natively from python. For example, to output
+the results for a given ebuild repo::
+
+ from pkgcheck import scan
+
+ for result in scan(['-r', '/path/to/ebuild/repo']):
+ print(result)
+
+This allows third party tools written in python to leverage pkgcheck's scanning
+functionality for purposes such as CI or VCS commit support.
+
Tests
=====
@@ -50,13 +68,13 @@ the following::
tox -e py39
-.. _`Installing python modules`: http://docs.python.org/inst/
.. _pkgcore: https://github.com/pkgcore/pkgcore
.. _snakeoil: https://github.com/pkgcore/snakeoil
.. _dependencies: https://github.com/pkgcore/pkgcheck/blob/master/requirements/install.txt
.. _git: https://git-scm.com/
.. _requests: https://pypi.org/project/requests/
.. _Gentoo-PerlMod-version: https://metacpan.org/release/Gentoo-PerlMod-Version
+.. _docs: https://pkgcore.github.io/pkgcheck/man/pkgcheck.html
.. |pypi| image:: https://img.shields.io/pypi/v/pkgcheck.svg
:target: https://pypi.python.org/pypi/pkgcheck