Skip to content

Commit

Permalink
v4.2.17: Add -G, --get and fix pb -F, fix #56
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <[email protected]>
  • Loading branch information
Kwpolska committed Mar 25, 2018
1 parent f333c94 commit f8a62d9
Show file tree
Hide file tree
Showing 69 changed files with 164 additions and 140 deletions.
75 changes: 38 additions & 37 deletions .pbwrapperhelp
Original file line number Diff line number Diff line change
Expand Up @@ -51,50 +51,51 @@ usage: pkgbuilder [-h] [-V] [-S] [-F] [--userfetch USER] [-i] [-s] [-u] [-U]
An AUR helper (and library) in Python 3.

positional arguments:
PACKAGE AUR/repository packages to build
PACKAGE AUR/repository packages to build

optional arguments:
-h, --help show this help message and exit
-V, --version show version number and quit
-h, --help show this help message and exit
-V, --version show version number and quit

operations:
-S, --sync build in /tmp
-F, --fetch fetch package files
--userfetch USER fetch all package files of an user
-i, --info view package information
-s, --search search the AUR for matching strings
-u, --sysupgrade upgrade installed AUR packages
-U, --upgrade move package files to pacman cache and install them
-X, --runtx run transactions from .tx files
-S, --sync build in /tmp
-F, --fetch, -G, --get
fetch package files
--userfetch USER fetch all package files of an user
-i, --info view package information
-s, --search search the AUR for matching strings
-u, --sysupgrade upgrade installed AUR packages
-U, --upgrade move package files to pacman cache and install them
-X, --runtx run transactions from .tx files

options:
-c, --clean clean up work files before and after build
--noclean don't clean up work files before and after build
(default)
--colors use colors in output (default)
-C, --nocolors don't use colors in output
--debug display debug messages
--nodebug don't display debug messages (default)
--depcheck check dependencies (default)
-d, --nodepcheck don't check dependencies (may break makepkg)
-D, --vcsupgrade upgrade all the VCS/date-versioned packages
--novcsupgrade don't upgrade all the VCS/date-versioned packages
(default)
--validation check if packages were installed after build (default)
-v, --novalidation don't check if packages were installed after build
--install install packages after building (default)
-w, --buildonly don't install packages after building
--pgpcheck verify source files with PGP signatures (default)
--skippgpcheck do not verify source files with PGP signatures
--confirm ask for confirmation (default)
--noconfirm do not ask for any confirmation
--shallow use shallow git clones (default)
--deep use deep git clones
--ignore PACKAGE ignore a package upgrade (can be used more than once)
-y, --refresh (dummy)
-c, --clean clean up work files before and after build
--noclean don't clean up work files before and after build
(default)
--colors use colors in output (default)
-C, --nocolors don't use colors in output
--debug display debug messages
--nodebug don't display debug messages (default)
--depcheck check dependencies (default)
-d, --nodepcheck don't check dependencies (may break makepkg)
-D, --vcsupgrade upgrade all the VCS/date-versioned packages
--novcsupgrade don't upgrade all the VCS/date-versioned packages
(default)
--validation check if packages were installed after build (default)
-v, --novalidation don't check if packages were installed after build
--install install packages after building (default)
-w, --buildonly don't install packages after building
--pgpcheck verify source files with PGP signatures (default)
--skippgpcheck do not verify source files with PGP signatures
--confirm ask for confirmation (default)
--noconfirm do not ask for any confirmation
--shallow use shallow git clones (default)
--deep use deep git clones
--ignore PACKAGE ignore a package upgrade (can be used more than once)
-y, --refresh (dummy)

configuration overrides:
--notmp don't build in /tmp
--build build (instead of fetching)
--notmp don't build in /tmp
--build build (instead of fetching)

Also accepts repository packages to build from source.
11 changes: 11 additions & 0 deletions .pytest_cache/v/cache/nodeids
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[
"tests/test_pkgbuilder.py::TestPB::test_aur",
"tests/test_pkgbuilder.py::TestPB::test_call_pacman",
"tests/test_pkgbuilder.py::TestPB::test_main",
"tests/test_pkgbuilder.py::TestPB::test_pb_help",
"tests/test_pkgbuilder.py::TestPB::test_pbds",
"tests/test_pkgbuilder.py::TestPB::test_pbds_logging",
"tests/test_pkgbuilder.py::TestPB::test_utils_print_package_info",
"tests/test_pkgbuilder.py::TestPB::test_utils_print_package_search",
"tests/test_pkgbuilder.py::TestPB::test_wrapper"
]
8 changes: 6 additions & 2 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ Appendix C. Changelog
:Author: Chris Warrick <[email protected]>
:Copyright: © 2011-2018, Chris Warrick.
:License: BSD (see /LICENSE or :doc:`Appendix B <LICENSE>`.)
:Date: 2018-03-18
:Version: 4.2.16
:Date: 2018-03-25
:Version: 4.2.17

.. index:: CHANGELOG

Expand Down Expand Up @@ -47,6 +47,10 @@ More information can be found on GitHub in the `releases section <https://github
Version History
===============

4.2.17
* Add ``-G``, ``--get`` as ``-F``, ``--fetch`` alternatives (Issue #56)
* Pass ``pb -F`` to pacman’s file search option (Issue #56)

4.2.16
* Handle searches with spaces correctly (Issue #55)

Expand Down
4 changes: 2 additions & 2 deletions PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Maintainer: Chris Warrick <[email protected]>
pkgname=pkgbuilder
_pyname=pkgbuilder
pkgver=4.2.16
pkgver=4.2.17
pkgrel=1
pkgdesc='A Python AUR helper/library.'
arch=('any')
Expand All @@ -10,7 +10,7 @@ license=('BSD')
depends=('python' 'python-setuptools' 'pyalpm>=0.5.1-1' 'python-requests' 'python-srcinfo' 'asp' 'git')
options=(!emptydirs)
source=("https://files.pythonhosted.org/packages/source/${_pyname:0:1}/${_pyname}/${_pyname}-${pkgver}.tar.gz")
md5sums=('6edf62b5f6cf72a9ab69656ea424b2d2')
md5sums=('b3b2b808f80f334c32aa5f719779ee05')

package() {
cd "${srcdir}/${_pyname}-${pkgver}"
Expand Down
2 changes: 1 addition & 1 deletion PKGBUILD-git
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
pkgname=pkgbuilder-git
_pyname=pkgbuilder
_gitname=pkgbuilder
pkgver=4.2.16
pkgver=4.2.17
pkgrel=1
pkgdesc='A Python AUR helper/library. (git version)'
arch=('any')
Expand Down
4 changes: 2 additions & 2 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ PKGBUILDer. An AUR helper (and library) in Python 3.
=====================================================
:Info: This is the README file for PKGBUILDer.
:Author: Chris Warrick <[email protected]>
:Date: 2018-03-18
:Version: 4.2.16
:Date: 2018-03-25
:Version: 4.2.17

.. index: README

Expand Down
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ PKGBUILDer. An AUR helper (and library) in Python 3.
=====================================================
:Info: This is the README file for PKGBUILDer.
:Author: Chris Warrick <[email protected]>
:Date: 2018-03-18
:Version: 4.2.16
:Date: 2018-03-25
:Version: 4.2.17

.. index: README
Expand Down
8 changes: 6 additions & 2 deletions docs/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ Appendix C. Changelog
:Author: Chris Warrick <[email protected]>
:Copyright: © 2011-2018, Chris Warrick.
:License: BSD (see /LICENSE or :doc:`Appendix B <LICENSE>`.)
:Date: 2018-03-18
:Version: 4.2.16
:Date: 2018-03-25
:Version: 4.2.17

.. index:: CHANGELOG

Expand Down Expand Up @@ -47,6 +47,10 @@ More information can be found on GitHub in the `releases section <https://github
Version History
===============

4.2.17
* Add ``-G``, ``--get`` as ``-F``, ``--fetch`` alternatives (Issue #56)
* Pass ``pb -F`` to pacman’s file search option (Issue #56)

4.2.16
* Handle searches with spaces correctly (Issue #55)

Expand Down
4 changes: 2 additions & 2 deletions docs/LICENSE.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ Appendix B. License for PKGBUILDer
==================================
:Info: This is the license for PKGBUILDer.
:Author: Chris Warrick <[email protected]>
:Date: 2018-03-18
:Version: 4.2.16
:Date: 2018-03-25
:Version: 4.2.17

.. index:: LICENSE

Expand Down
4 changes: 2 additions & 2 deletions docs/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ PKGBUILDer. An AUR helper (and library) in Python 3.
=====================================================
:Info: This is the README file for PKGBUILDer.
:Author: Chris Warrick <[email protected]>
:Date: 2018-03-18
:Version: 4.2.16
:Date: 2018-03-25
:Version: 4.2.17

.. index: README
Expand Down
4 changes: 2 additions & 2 deletions docs/aur.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ aur module (AUR class)
:Author: Chris Warrick <[email protected]>
:Copyright: © 2011-2018, Chris Warrick.
:License: BSD (see /LICENSE or :doc:`Appendix B <LICENSE>`.)
:Date: 2018-03-18
:Version: 4.2.16
:Date: 2018-03-25
:Version: 4.2.17

.. index:: AUR; RPC
.. index:: RPC
Expand Down
4 changes: 2 additions & 2 deletions docs/build.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ build module
:Author: Chris Warrick <[email protected]>
:Copyright: © 2011-2018, Chris Warrick.
:License: BSD (see /LICENSE or :doc:`Appendix B <LICENSE>`.)
:Date: 2018-03-18
:Version: 4.2.16
:Date: 2018-03-25
:Version: 4.2.17

.. index:: build
.. versionadded:: 2.1.0.0
Expand Down
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@
# built documents.
#
# The short X.Y version.
version = '4.2.16'
version = '4.2.17'
# The full version, including alpha/beta/rc tags.
release = '4.2.16'
release = '4.2.17'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
4 changes: 2 additions & 2 deletions docs/exceptions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ Exceptions in PKGBUILDer
:Author: Chris Warrick <[email protected]>
:Copyright: © 2011-2018, Chris Warrick.
:License: BSD (see /LICENSE or :doc:`Appendix B <LICENSE>`.)
:Date: 2018-03-18
:Version: 4.2.16
:Date: 2018-03-25
:Version: 4.2.17

.. index:: Exceptions
.. versionadded:: 3.0.0
Expand Down
4 changes: 2 additions & 2 deletions docs/main.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ __main__ module
:Author: Chris Warrick <[email protected]>
:Copyright: © 2011-2018, Chris Warrick.
:License: BSD (see /LICENSE or :doc:`Appendix B <LICENSE>`.)
:Date: 2018-03-18
:Version: 4.2.16
:Date: 2018-03-25
:Version: 4.2.17

.. index:: main
.. versionchanged:: 4.0.0
Expand Down
4 changes: 2 additions & 2 deletions docs/package.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ package module (Package, AURPackage, ABSPackage classes)
:Author: Chris Warrick <[email protected]>
:Copyright: © 2011-2018, Chris Warrick.
:License: BSD (see /LICENSE or :doc:`Appendix B <LICENSE>`.)
:Date: 2018-03-18
:Version: 4.2.16
:Date: 2018-03-25
:Version: 4.2.17

.. index:: Package
.. index:: AURPackage
Expand Down
Binary file modified docs/pb.8.gz
Binary file not shown.
4 changes: 2 additions & 2 deletions docs/pb.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ PBWrapper
:Author: Chris Warrick <[email protected]>
:Copyright: © 2011-2018, Chris Warrick.
:License: BSD (see /LICENSE or Appendix B.)
:Date: 2018-03-18
:Version: 4.2.16
:Date: 2018-03-25
:Version: 4.2.17
:Wrapper Version: 0.5.3
:Manual section: 8
:Manual group: PKGBUILDer manual
Expand Down
4 changes: 2 additions & 2 deletions docs/pbds.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ pbds module (PBDS class)
:Author: Chris Warrick <[email protected]>
:Copyright: © 2011-2018, Chris Warrick.
:License: BSD (see /LICENSE or :doc:`Appendix B <LICENSE>`.)
:Date: 2018-03-18
:Version: 4.2.16
:Date: 2018-03-25
:Version: 4.2.17

.. module: pbds
Expand Down
Binary file modified docs/pkgbuilder.8.gz
Binary file not shown.
8 changes: 4 additions & 4 deletions docs/pkgbuilder.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ PKGBUILDer
:Author: Chris Warrick <[email protected]>
:Copyright: © 2011-2018, Chris Warrick.
:License: BSD (see /LICENSE or Appendix B.)
:Date: 2018-03-18
:Version: 4.2.16
:Date: 2018-03-25
:Version: 4.2.17
:Manual section: 8
:Manual group: PKGBUILDer manual

Expand Down Expand Up @@ -48,7 +48,7 @@ OPERATIONS
**-S, --sync**
Build packages in */tmp* instead of CWD. Override with ``--notmp``.

**-F, --fetch**
**-F, --fetch, -G, --get**
Fetch (and don't build) **PACKAGE**\s in a fashion similar to
``cower -d``. Override with ``--nofetch``.

Expand Down Expand Up @@ -150,7 +150,7 @@ pkgbuilder -SF hello

pkgbuilder python
Python is a binary repo package, triggering a package download from ASP.
-S and/or -F are also accepted.
-S and/or -F/-G are also accepted.

pkgbuilder -Syu
Check for updates and offer installing them.
Expand Down
4 changes: 2 additions & 2 deletions docs/sample-scripts.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ PKGBUILDer Sample Scripts
:Author: Chris Warrick <[email protected]>
:Copyright: © 2011-2018, Chris Warrick.
:License: BSD (see /LICENSE or :doc:`Appendix B <LICENSE>`.)
:Date: 2018-03-18
:Version: 4.2.16
:Date: 2018-03-25
:Version: 4.2.17

.. index:: sample scripts

Expand Down
4 changes: 2 additions & 2 deletions docs/transaction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ Transactions
:Author: Chris Warrick <[email protected]>
:Copyright: © 2011-2018, Chris Warrick.
:License: BSD (see /LICENSE or :doc:`Appendix B <LICENSE>`.)
:Date: 2018-03-18
:Version: 4.2.16
:Date: 2018-03-25
:Version: 4.2.17

.. index:: transaction
.. versionadded:: 4.1.0
Expand Down
4 changes: 2 additions & 2 deletions docs/ui.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ ui module (UI class)
:Author: Chris Warrick <[email protected]>
:Copyright: © 2011-2018, Chris Warrick.
:License: BSD (see /LICENSE or :doc:`Appendix B <LICENSE>`.)
:Date: 2018-03-18
:Version: 4.2.16
:Date: 2018-03-25
:Version: 4.2.17

.. index:: UI
.. versionadded:: 3.0.0
Expand Down
4 changes: 2 additions & 2 deletions docs/upgrade.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ upgrade module
:Author: Chris Warrick <[email protected]>
:Copyright: © 2011-2018, Chris Warrick.
:License: BSD (see /LICENSE or :doc:`Appendix B <LICENSE>`.)
:Date: 2018-03-18
:Version: 4.2.16
:Date: 2018-03-25
:Version: 4.2.17

.. index:: upgrade
.. index:: Syu
Expand Down
4 changes: 2 additions & 2 deletions docs/utils.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ utils module
:Author: Chris Warrick <[email protected]>
:Copyright: © 2011-2018, Chris Warrick.
:License: BSD (see /LICENSE or :doc:`Appendix B <LICENSE>`.)
:Date: 2018-03-18
:Version: 4.2.16
:Date: 2018-03-25
:Version: 4.2.17

.. index:: utils
.. versionadded:: 2.1.0.0
Expand Down
Loading

0 comments on commit f8a62d9

Please sign in to comment.