Skip to content

Commit

Permalink
After 21 days, version 2.1.0 has been released!
Browse files Browse the repository at this point in the history
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

After 21 days, version 2.1.0 has been released!

 * a lot of updates, bugfixes
 * -Syu (system upgrade)
 * usable as a module
 * own AUR class, no need to use python3-aur
 * new fields in --info
 * pblog() is now more useful, can be used for real logging
 * now an AUR and PyPI package[1]_
 * nicely documented with Sphinx
 * over 650 lines

I hope it would be useful.  The docs are uploaded[1]_ to PyPI.
If you will find some bugs, go here:
<https://github.com/Kwpolska/pkgbuilder/issues>

Have fun!

.. [1] Everything will be uploaded right after this commit.
   The AUR package upload can take a while.  Please be patient.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQEcBAEBAgAGBQJOdjowAAoJEHECPb1equoWUagH/As1BmJO1XGN31A+oqw9f6Sa
YXBY/LhK3on29UqLIJcNqrTjbKHPe+gkF+f8KFxYV3SUpxF/yv+O3miTrvYRfh78
KTw13XiiSXAnyesBdJY9l5dpMyGE67oWNLyFdYRFaqYwt22xKqx+mR86Fh7RX46f
uiw7vt9w74WJqYuCfxm/BSNMaM8AbCN31IETA5WcGzI7n3vkPrUWQgCvBna9yCsA
YNw5PYVyAhB9blvvW0gsGqclgVNuzDk2b5R4eOrAoF2CiLMYnOb1CVmk7zw1p92n
IL+ts40IAho2nbAJ+cMus1QPjYA0a15ve+KNgBlSYnerC3ZWF0UoAp4d7lFgBdk=
=oXp1
-----END PGP SIGNATURE-----

Signed-off-by: Kwpolska <[email protected]>
  • Loading branch information
Kwpolska committed Sep 20, 2011
1 parent 616da97 commit 7fb666f
Show file tree
Hide file tree
Showing 50 changed files with 4,470 additions and 856 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
*.py[co]
__pycache__/
__pycache__

# Packages
*.egg
*.egg-info
dist
#dist
build
eggs
parts
Expand Down
76 changes: 76 additions & 0 deletions INSTALL.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
#!/usr/bin/python3
# pkgbuilder installer
# Copyright Kwpolska 2011.

# There are no install instructions. If you want to install
# the script, run this script with python.

"""pkgbuilder AUR installer
experimental and useless"""

import subprocess
import os
import json
import urllib.request
import tarfile
import random


print("""Hello!
PKGBUILDer is now available as an AUR package. It is the suggested
way of installing PKGBUILDer. This script will download the AUR
package and install it. If you will have problems, please download
and compile the package manually.
""")

WHOCARES = input('Hit Enter/Return to continue. ')
print('')

UID = os.geteuid()
PATH = '/tmp/pkgbuilderinstall-{0}'.format(random.randint(1, 100))
if os.path.exists(PATH) == False:
os.mkdir(PATH)
os.chdir(PATH)


PKGDATA = json.loads(urllib.request.urlopen('http://aur.archlinux.org\
/rpc.php?type=info&arg=pkgbuilder').read().decode())
RHANDLE = urllib.request.urlopen('http://aur.archlinux.org'+
PKGDATA['results']['URLPath'])
open('pkgbuilder.tar.gz', 'wb').write(RHANDLE.read())
THANDLE = tarfile.open('pkgbuilder.tar.gz', 'r:gz')
THANDLE.extractall()
os.chdir('./pkgbuilder/')

ASROOT = ''
if os.geteuid() == 0:
ASROOT = ' --asroot'
MPKG = subprocess.call('/usr/bin/makepkg -si'+ASROOT, shell=True)

if MPKG == 1:
print("""
Something went wrong. Please read makepkg's output and try again.
You can also try to debug the work of this script yourself.
All the files this script was working on are placed in
{0}
(the number is random).
If I am wrong, though, congratulations!
""".format(PATH))

print("""
Read the above output. If the script had any problems, run it
again. You can also try to debug the work of this script yourself.
All the files this script was working on are placed in
{0}
(the number is random).
If everything went fine, though, congratulations! You can now use
PKGBUILDer. For standalone usage, type `pkgbuilder` into the prompt
(zsh users: hash -r, other shells may need another command). For
python module usage, type `import pkgbuilder` into the python prompt.
""".format(PATH))
700 changes: 26 additions & 674 deletions LICENSE

Large diffs are not rendered by default.

45 changes: 45 additions & 0 deletions MANIFEST
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# file GENERATED by distutils, do NOT edit
INSTALL.py
LICENSE
README
README.rst
TODO.rst
pkgbuilder.py
setup.py
docs/Makefile
docs/README.rst
docs/conf.py
docs/errorcodes.rst
docs/index.rst
docs/pkgbuilder.8.gz
docs/pkgbuilder.rst
docs/_build/doctrees/README.doctree
docs/_build/doctrees/environment.pickle
docs/_build/doctrees/errorcodes.doctree
docs/_build/doctrees/index.doctree
docs/_build/doctrees/pkgbuilder.doctree
docs/html/.buildinfo
docs/html/README.html
docs/html/errorcodes.html
docs/html/genindex.html
docs/html/index.html
docs/html/objects.inv
docs/html/pkgbuilder.html
docs/html/search.html
docs/html/searchindex.js
docs/html/_sources/README.txt
docs/html/_sources/errorcodes.txt
docs/html/_sources/index.txt
docs/html/_sources/pkgbuilder.txt
docs/html/_static/basic.css
docs/html/_static/default.css
docs/html/_static/doctools.js
docs/html/_static/file.png
docs/html/_static/jquery.js
docs/html/_static/minus.png
docs/html/_static/plus.png
docs/html/_static/pygments.css
docs/html/_static/searchtools.js
docs/html/_static/sidebar.js
docs/html/_static/underscore.js
scripts/pkgbuilder
6 changes: 6 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
include INSTALL.py
include LICENSE
include README.rst
include TODO.rst
recursive-include docs *
recursive-include scripts *
20 changes: 20 additions & 0 deletions PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Maintainer: Kwpolska <[email protected]>
pkgname=pkgbuilder
pkgver=2.1.0
pkgrel=1
pkgdesc="A basic Python AUR helper/library."
arch=('any')
url="https://github.com/Kwpolska/pkgbuilder"
license=('BSD')
depends=('python' 'pyalpm' 'python-pyparsing')
options=(!emptydirs)
source=('http://pypi.python.org/packages/source/p/pkgbuilder/pkgbuilder-2.1.0.tar.gz')
md5sums=('d6f495345dde0cb3774dc9f3f3eafaaa')

package() {
cd "${srcdir}/${pkgname}-${pkgver}"
python setup.py install --root="${pkgdir}/" --optimize=1
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

# vim:set ts=2 sw=2 et:
1 change: 1 addition & 0 deletions README
42 changes: 0 additions & 42 deletions README.md

This file was deleted.

61 changes: 61 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
=====================
README for PKGBUILDer
=====================
:Info: This is the README file for PKGBUILDer.
:Author: Kwpolska <[email protected]>
:Date: 2011-09-20
:Version: 2.1.0

PKGBUILDer. A Python AUR helper/library.
=========================================

PURPOSE
-------
Building and installing AUR packages.

INSTALLATION
------------
Copy pkgbuilder.py to /usr/bin or ~/bin. You need to install
pyalpm from [extra] and python3-aur from the AUR.

NOTES
-----
This is Version 2 of PKGBUILDer. The original Perl version is included,
but it shall not be used.

Version 2.1 is a big leap forward. It introduces many new features.
It is now stable. It is now available as an AUR and PyPI package.

The -S (DS.pacman) parameter adds pacman wrapper compatibility.

For more info, refer to the pkgbuilder(8) man page or HTML docs in
docs/html.

COPYRIGHT
---------
Copyright (C) 2011, Kwpolska
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice,
this list of conditions, and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions, and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of the author of this software nor the name of
contributors to this software may be used to endorse or promote products
derived from this software without specific prior written consent.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
15 changes: 15 additions & 0 deletions TODO.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
===================
TODO for PKGBUILDer
===================
:Info: This is a TODO list for PKGBUILDer.
:Author: Kwpolska <[email protected]>
:Date: 2011-09-20
:Version: 2.1.0

I have a few cool (and impossible) ideas for PKGBUILDer. This file
would list them. If you know Python, you can write them and send
me a patch.

* pacmanization:
extra/gnutls 3.0.3-1 [1.33 MB] [installed: 3.0.2-1]

Binary file added dist/pkgbuilder-2.1.0.tar.gz
Binary file not shown.
Loading

0 comments on commit 7fb666f

Please sign in to comment.