Skip to content

Commit

Permalink
v4.3.0: support for editing PKGBUILDs (--edit-pkgbuild option)
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jan 12, 2019
1 parent fcb9bcf commit a8c5daa
Show file tree
Hide file tree
Showing 69 changed files with 219 additions and 113 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,4 @@ pbwrapperdiff

# Transifex?
.cache/
.pytest_cache
11 changes: 7 additions & 4 deletions .pbwrapperhelp
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,11 @@ options:
--sysroot operate on a mounted guest system (root-only)
usage: pkgbuilder [-h] [-V] [-S] [-F] [--userfetch USER] [-i] [-s] [-u] [-U]
[-X] [-c] [--noclean] [--colors] [-C] [--debug] [--nodebug]
[--depcheck] [-d] [-D] [--novcsupgrade] [--validation] [-v]
[--install] [-w] [--pgpcheck] [--skippgpcheck] [--confirm]
[--noconfirm] [--shallow] [--deep] [--ignore PACKAGE] [-y]
[--notmp] [--build]
[--edit-pkgbuild] [--noedit-pkgbuild] [--depcheck] [-d] [-D]
[--novcsupgrade] [--validation] [-v] [--install] [-w]
[--pgpcheck] [--skippgpcheck] [--confirm] [--noconfirm]
[--shallow] [--deep] [--ignore PACKAGE] [-y] [--notmp]
[--build]
[PACKAGE [PACKAGE ...]]

An AUR helper (and library) in Python 3.
Expand Down Expand Up @@ -80,6 +81,8 @@ options:
-C, --nocolors don't use colors in output
--debug display debug messages
--nodebug don't display debug messages (default)
--edit-pkgbuild edit the PKGBUILD
--noedit-pkgbuild don't edit the PKGBUILD (default)
--depcheck check dependencies (default)
-d, --nodepcheck don't check dependencies (may break makepkg)
-D, --vcsupgrade upgrade all the VCS/date-versioned packages
Expand Down
7 changes: 5 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 <chris@chriswarrick.com>
:Copyright: © 2011-2019, Chris Warrick.
:License: BSD (see /LICENSE or :doc:`Appendix B <LICENSE>`.)
:Date: 2018-07-31
:Version: 4.2.18
:Date: 2019-01-12
:Version: 4.3.0

.. index:: CHANGELOG

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

4.3.0
* Support for editing PKGBUILDs (``--edit-pkgbuild`` option)

4.2.18
* Add a ``paccommand`` option to the INI file.

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 <aur@chriswarrick.com>
pkgname=pkgbuilder
_pyname=pkgbuilder
pkgver=4.2.18
pkgver=4.3.0
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=('d7aa404dac208d420d338774662b4037')
md5sums=('9c0c6d2d1253fd88fce234d50d83fa5f')

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.18
pkgver=4.3.0
pkgrel=1
pkgdesc='A Python AUR helper/library. (git version)'
arch=('any')
Expand Down
19 changes: 17 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 <chris@chriswarrick.com>
:Date: 2018-07-31
:Version: 4.2.18
:Date: 2019-01-12
:Version: 4.3.0

.. index: README

Expand Down Expand Up @@ -44,6 +44,21 @@ the AUR.
For more information, refer to the ``-h`` command, the ``pkgbuilder(8)`` man
page, or the online documentation at https://pkgbuilder.readthedocs.org/.

CONFIGURATION
-------------

PKGBUILDer supports per-user configuration, in the file
~/.config/kwpolska/pkgbuilder/pkgbuilder.ini. It can also be configured on a
per-usage basis via command-line arguments.

SECURITY AND EDITING PKGBUILDs
------------------------------

By default, PKGBUILDer strives to be the no-questions-asked package manager.
This means that all packages are built immediately, without any confirmations.
The behavior can be overridden with the ``--edit-pkgbuild`` command-line
option, or with ``edit=pkgbuild=true`` in PKGBUILDer’s config file.

COPYRIGHT
---------
Copyright © 2011-2019, Chris Warrick.
Expand Down
26 changes: 17 additions & 9 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 <chris@chriswarrick.com>
:Date: 2018-07-31
:Version: 4.2.18
:Date: 2019-01-12
:Version: 4.3.0

.. index: README
Expand All @@ -26,13 +26,6 @@ After adding the repository, you need to run::
# pacman-key --lsign 5EAAEA16
# pacman -Syyu

My GPG key expires every year. Every year on January 1st, you’ll need to run::

# pacman-key -d 5EAAEA16
# pacman-key -r 5EAAEA16
# pacman-key --lsign 5EAAEA16
# pacman -Syyu

BASIC USAGE
-----------

Expand All @@ -51,6 +44,21 @@ the AUR.
For more information, refer to the ``-h`` command, the ``pkgbuilder(8)`` man
page, or the online documentation at https://pkgbuilder.readthedocs.org/.

CONFIGURATION
-------------

PKGBUILDer supports per-user configuration, in the file
~/.config/kwpolska/pkgbuilder/pkgbuilder.ini. It can also be configured on a
per-usage basis via command-line arguments.

SECURITY AND EDITING PKGBUILDs
------------------------------

By default, PKGBUILDer strives to be the no-questions-asked package manager.
This means that all packages are built immediately, without any confirmations.
The behavior can be overridden with the ``--edit-pkgbuild`` command-line
option, or with ``edit=pkgbuild=true`` in PKGBUILDer’s config file.

COPYRIGHT
---------
Copyright © 2011-2019, Chris Warrick.
Expand Down
7 changes: 5 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 <chris@chriswarrick.com>
:Copyright: © 2011-2019, Chris Warrick.
:License: BSD (see /LICENSE or :doc:`Appendix B <LICENSE>`.)
:Date: 2018-07-31
:Version: 4.2.18
:Date: 2019-01-12
:Version: 4.3.0

.. index:: CHANGELOG

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

4.3.0
* Support for editing PKGBUILDs (``--edit-pkgbuild`` option)

4.2.18
* Add a ``paccommand`` option to the INI file.

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 <chris@chriswarrick.com>
:Date: 2018-07-31
:Version: 4.2.18
:Date: 2019-01-12
:Version: 4.3.0

.. index:: LICENSE

Expand Down
19 changes: 17 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 <chris@chriswarrick.com>
:Date: 2018-07-31
:Version: 4.2.18
:Date: 2019-01-12
:Version: 4.3.0

.. index: README
Expand Down Expand Up @@ -44,6 +44,21 @@ the AUR.
For more information, refer to the ``-h`` command, the ``pkgbuilder(8)`` man
page, or the online documentation at https://pkgbuilder.readthedocs.org/.

CONFIGURATION
-------------

PKGBUILDer supports per-user configuration, in the file
~/.config/kwpolska/pkgbuilder/pkgbuilder.ini. It can also be configured on a
per-usage basis via command-line arguments.

SECURITY AND EDITING PKGBUILDs
------------------------------

By default, PKGBUILDer strives to be the no-questions-asked package manager.
This means that all packages are built immediately, without any confirmations.
The behavior can be overridden with the ``--edit-pkgbuild`` command-line
option, or with ``edit=pkgbuild=true`` in PKGBUILDer’s config file.

COPYRIGHT
---------
Copyright © 2011-2019, Chris Warrick.
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 <chris@chriswarrick.com>
:Copyright: © 2011-2019, Chris Warrick.
:License: BSD (see /LICENSE or :doc:`Appendix B <LICENSE>`.)
:Date: 2018-07-31
:Version: 4.2.18
:Date: 2019-01-12
:Version: 4.3.0

.. 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 <chris@chriswarrick.com>
:Copyright: © 2011-2019, Chris Warrick.
:License: BSD (see /LICENSE or :doc:`Appendix B <LICENSE>`.)
:Date: 2018-07-31
:Version: 4.2.18
:Date: 2019-01-12
:Version: 4.3.0

.. 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.18'
version = '4.3.0'
# The full version, including alpha/beta/rc tags.
release = '4.2.18'
release = '4.3.0'

# 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 <chris@chriswarrick.com>
:Copyright: © 2011-2019, Chris Warrick.
:License: BSD (see /LICENSE or :doc:`Appendix B <LICENSE>`.)
:Date: 2018-07-31
:Version: 4.2.18
:Date: 2019-01-12
:Version: 4.3.0

.. 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 <chris@chriswarrick.com>
:Copyright: © 2011-2019, Chris Warrick.
:License: BSD (see /LICENSE or :doc:`Appendix B <LICENSE>`.)
:Date: 2018-07-31
:Version: 4.2.18
:Date: 2019-01-12
:Version: 4.3.0

.. 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 <chris@chriswarrick.com>
:Copyright: © 2011-2019, Chris Warrick.
:License: BSD (see /LICENSE or :doc:`Appendix B <LICENSE>`.)
:Date: 2018-07-31
:Version: 4.2.18
:Date: 2019-01-12
:Version: 4.3.0

.. 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 <chris@chriswarrick.com>
:Copyright: © 2011-2019, Chris Warrick.
:License: BSD (see /LICENSE or Appendix B.)
:Date: 2018-07-31
:Version: 4.2.18
:Date: 2019-01-12
:Version: 4.3.0
:Wrapper Version: 0.5.6
: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 <chris@chriswarrick.com>
:Copyright: © 2011-2019, Chris Warrick.
:License: BSD (see /LICENSE or :doc:`Appendix B <LICENSE>`.)
:Date: 2018-07-31
:Version: 4.2.18
:Date: 2019-01-12
:Version: 4.3.0

.. module: pbds
Expand Down
Binary file modified docs/pkgbuilder.8.gz
Binary file not shown.
15 changes: 13 additions & 2 deletions docs/pkgbuilder.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ PKGBUILDer
:Author: Chris Warrick <chris@chriswarrick.com>
:Copyright: © 2011-2019, Chris Warrick.
:License: BSD (see /LICENSE or Appendix B.)
:Date: 2018-07-31
:Version: 4.2.18
:Date: 2019-01-12
:Version: 4.3.0
:Manual section: 8
:Manual group: PKGBUILDer manual

Expand Down Expand Up @@ -125,13 +125,24 @@ Only the non-default options are documented below.
**--deep**
Perform deep clones of git repositories. Override with ``--shallow``.

**--edit-pkgbuild**
Offer to edit PKGBUILDs before they are installed.

**--ignore [PACKAGE PACKAGE ...]**
Ignore a package upgrade (can be used more than once, or use commas --
follows pacman syntax)

**-y, --refresh**
Dummy option for pacman compatibility.

SECURITY AND EDITING PKGBUILDs
==============================

By default, PKGBUILDer strives to be the no-questions-asked package manager.
This means that all packages are built immediately, without any confirmations.
The behavior can be overridden with the ``--edit-pkgbuild`` command-line
option, or with ``edit=pkgbuild=true`` in PKGBUILDer’s config file.

EXAMPLES
========

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 <chris@chriswarrick.com>
:Copyright: © 2011-2019, Chris Warrick.
:License: BSD (see /LICENSE or :doc:`Appendix B <LICENSE>`.)
:Date: 2018-07-31
:Version: 4.2.18
:Date: 2019-01-12
:Version: 4.3.0

.. 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 <chris@chriswarrick.com>
:Copyright: © 2011-2019, Chris Warrick.
:License: BSD (see /LICENSE or :doc:`Appendix B <LICENSE>`.)
:Date: 2018-07-31
:Version: 4.2.18
:Date: 2019-01-12
:Version: 4.3.0

.. 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 <chris@chriswarrick.com>
:Copyright: © 2011-2019, Chris Warrick.
:License: BSD (see /LICENSE or :doc:`Appendix B <LICENSE>`.)
:Date: 2018-07-31
:Version: 4.2.18
:Date: 2019-01-12
:Version: 4.3.0

.. 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 <chris@chriswarrick.com>
:Copyright: © 2011-2019, Chris Warrick.
:License: BSD (see /LICENSE or :doc:`Appendix B <LICENSE>`.)
:Date: 2018-07-31
:Version: 4.2.18
:Date: 2019-01-12
:Version: 4.3.0

.. index:: upgrade
.. index:: Syu
Expand Down

0 comments on commit a8c5daa

Please sign in to comment.