Commit Graph

21 Commits (9f2245738d15add72d565ddb06b2c2022af7d1b2)

Author SHA1 Message Date
pancho horrillo d03b72a505 Drop dependency on ansible (six.moves)
As it is, aur.py depends on ansible being installed on the target host.
So, you would need to get ansible installed in your target host just to be able
to make use of aur.py and install whatever packages you need.

Let's review the dependency:

      from ansible.module_utils import six
      from six.moves import urllib

I reckon that the six¹ package is there to isolate an ansible module's code from
the particular major version of python being used (2 or 3).

Fortunately, since last week², the ansible package in archlinux now depends
directly on python3, so I reckon that in this particular instance, we can safely
import urllib.request directly, which from now on will be spot on.

To recap, current arch ships python3, and the arch ansible package depends on it
to run.  aur.py's purpose is to run on archlinux hosts, thus, python3 can be
safely assumed to be available.  So we can depend directly on it and relax the
dependency on ansible itself.

On a personal note, I am using this nice module to help me bootstrap my arch
systems, so not having to install ansible just to be able to use it makes my day
a little better :-)

Thanks a bunch!

[Feel free to edit the commit log]

[1]: https://pythonhosted.org/six/
[2]: https://git.archlinux.org/svntogit/community.git/commit/trunk?h=packages/ansible&id=bb1a1cc822891387d5a8b3dad0d0ccdee94c0c51
2018-05-22 06:04:42 +02:00
Christian Kotte 5c77814f65 added docstrings to functions 2018-05-16 21:30:58 +02:00
Christian Kotte acb416d0af improved verbose messages
verbose messages are visible only if -v is used
2018-05-16 21:29:17 +02:00
Christian Kotte 034d058874 added skip pgp check for makepkg
This is useful when installing a new system and AUR packages need to be
installed before GnuPG is installed and configured (to automatically
retrieve public keys). E.g. cower requires PGP signature check and it needs
to be installed before pacaur can be installed and used for further AUR
package installation
2018-05-16 21:20:30 +02:00
Christian Kotte 47769a5195 changed internal helper to makepgk
AUR packages can be build via the makepkg script and via AUR helpers.
AUR helpers further automate certain tasks for the AUR. makepkg is no helper.
Therefore, internal helper should be renamed to just makepkg.
2018-05-16 21:06:06 +02:00
Christian Kotte c402e57518 added check mode support 2018-05-16 20:39:57 +02:00
kewl fft 9917476854 remove aur option by default 2018-05-08 07:20:00 +01:00
kewl fft dfadb16c23 comment use 2018-05-08 07:14:00 +01:00
kewl fft 22c093a44e formatting 2018-04-14 11:53:14 +01:00
kewl fft 9b9d2c15a5 change for aurman fixed 2018-04-14 11:37:11 +01:00
kewl 1cccf3a6fd
Merge pull request #1 from tbuschmann/patch-1
change urllib to six.moves for python2/3 support
2018-03-25 07:53:17 +01:00
kewl fft fe8983ad71 add pikaur support 2018-03-17 08:15:06 +00:00
Tim Buschmann a5660940a3
change urllib to six.moves for python2/3 support
ref: http://ansible-manual.readthedocs.io/en/stable-2.2/dev_guide/developing_modules_python3.html
2018-02-24 22:31:11 +01:00
kewl fft 065828cffa internal is default 2017-12-31 19:58:29 +01:00
kewl fft 77701812e8 internal helper added 2017-12-31 18:12:28 +01:00
alex 7a9ca39341 added helper output 2017-12-24 09:22:13 +01:00
alex 117b79b070 readme updated with auto functionning 2017-12-24 08:26:57 +01:00
alex 843233987a auto helper mode added 2017-12-24 08:21:11 +01:00
alex 091077c382 support name type list 2017-12-23 21:05:07 +01:00
alex 0c083b7899 shorten var names 2017-12-23 20:04:09 +01:00
alex 8b43146d34 initial commit 2017-12-23 18:27:42 +01:00