Commit Graph

64 Commits (d03b72a505b0043cb8fe963f18017cc705b484da)

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
kewl b9dfba15f5
Merge pull request #3 from ckotte/master
Check mode support, skip pgp check, etc. pp.
2018-05-17 16:47:12 +09:00
Christian Kotte 0b7fc34fed atom automatically adds a newline to every file 2018-05-16 21:31:32 +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 dbf867d6e2 readme 2018-05-08 07:24:42 +01:00
kewl fft 3e1a37c11e readme 2018-05-08 07:22:20 +01: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 c14fcb1096 Merge branch 'master' of github.com:kewlfft/ansible-aur 2018-04-14 11:44:10 +01:00
kewl fft 9b9d2c15a5 change for aurman fixed 2018-04-14 11:37:11 +01:00
kewl fft 1e3689fc9f aurman added and default helper from now on 2018-04-14 10:58:16 +01:00
kewl fft 31d042edea readme 2018-04-12 21:15:44 +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 4fa1048430 readme 2018-02-21 21:51:08 +00:00
kewl fft 7ebdb6b946 readme 2018-02-21 21:50:24 +00:00
kewl fft 96c930aa1a readme 2018-02-21 21:26:37 +00:00
kewl fft af6fa288cb readme 2018-02-21 21:01:19 +00:00
kewl fft bee752a070 readme 2018-02-21 20:57:54 +00:00
kewl fft 78197df94a readme 2018-01-08 19:52:12 +00:00
kewl fft 6471ac40ff README updated 2018-01-01 23:43:36 +00:00
kewl fft eb72f78ea2 README 2017-12-31 21:50:23 +01:00
kewl fft 2803b86973 README 2017-12-31 21:40:22 +01:00
kewl fft f15e4d1f9b README 2017-12-31 21:39:58 +01:00
kewl fft 4a47bd34e6 README aur_builder information 2017-12-31 21:05:06 +01:00
kewl fft ce6e416839 README 2017-12-31 20:22:20 +01:00
kewl fft fd5a01d9d4 README 2017-12-31 20:13:56 +01:00
kewl fft 065828cffa internal is default 2017-12-31 19:58:29 +01:00
kewl fft fe4eb583d8 README 2017-12-31 18:20:25 +01:00
kewl fft aed7b9bacd README 2017-12-31 18:19:06 +01:00
kewl fft 59c52da181 README 2017-12-31 18:15:35 +01:00
kewl fft 77701812e8 internal helper added 2017-12-31 18:12:28 +01:00
kewl fft a34324db3b README.md 2017-12-31 14:17:57 +01:00
alex 7a9ca39341 added helper output 2017-12-24 09:22:13 +01:00
alex dff9e5358b readme 2017-12-24 09:11:02 +01:00
alex f6c952db5b readme improve language 2017-12-24 08:53:15 +01:00
alex 4602169292 readme improve explanations 2017-12-24 08:41:17 +01:00
alex 0aa3151f06 readme improve formatting 2017-12-24 08:37:56 +01:00
alex 2fee5ca9a8 readme improve explanations 2017-12-24 08:32:51 +01:00
alex e320f5d6bf readme improve format 2017-12-24 08:28:59 +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 d0bddf7953 readme correct install instructions 2017-12-23 22:51:30 +01:00
alex f3f27aff6b readme correct install instructions 2017-12-23 22:42:35 +01:00