Skip to content

Commit

Permalink
it's 2.1.1.2 already
Browse files Browse the repository at this point in the history
  • Loading branch information
Kwpolska committed Sep 24, 2011
1 parent 48553c3 commit 0d426b3
Show file tree
Hide file tree
Showing 33 changed files with 402 additions and 326 deletions.
16 changes: 8 additions & 8 deletions MANIFEST
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,26 @@ README
README.rst
pkgbuilder.py
setup.py
docs/Makefile
docs/README.rst
docs/conf.py
docs/errorcodes.rst
docs/docs-pkgbuilder.zip
docs/index.rst
docs/messagecodes.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/messagecodes.doctree
docs/_build/doctrees/pkgbuilder.doctree
docs/html/.buildinfo
docs/html/README.html
docs/html/errorcodes.html
docs/html/index.html
docs/html/objects.inv
docs/html/pkgbuilder.html
docs/html/search.html
docs/html/searchindex.js
docs/html/README/index.html
docs/html/_sources/README.txt
docs/html/_sources/errorcodes.txt
docs/html/_sources/index.txt
docs/html/_sources/messagecodes.txt
docs/html/_sources/pkgbuilder.txt
docs/html/_static/basic.css
docs/html/_static/default.css
Expand All @@ -40,4 +37,7 @@ docs/html/_static/pygments.css
docs/html/_static/searchtools.js
docs/html/_static/sidebar.js
docs/html/_static/underscore.js
docs/html/messagecodes/index.html
docs/html/pkgbuilder/index.html
docs/html/search/index.html
scripts/pkgbuilder
2 changes: 1 addition & 1 deletion PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ license=('BSD')
depends=('python' 'pyalpm' 'python-pyparsing')
options=(!emptydirs)
source=("http://pypi.python.org/packages/source/p/${pkgname}/${pkgname}-${pkgver}.tar.gz")
md5sums=('3eebaf12ba5fba95e2d31397dffd2b0f')
md5sums=('be6d2f31b0a13c7af4e0b1f88f1d0d2b')

package() {
cd "${srcdir}/${pkgname}-${pkgver}"
Expand Down
52 changes: 52 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
project = "pkgbuilder"
aurcat = "16"

task :default => [:help]

task :help do
puts "Usage: rake [update/docs/docshtml/docszip]"
end

task :docshtml do
sh "cd docs && sphinx-build -b dirhtml -d ./_build/doctrees . ./html"
end

task :docszip do
sh "cd docs/html/ && zip -r ../docs-#{project}.zip ./*"
end

task :docs do
Rake::Task[:docshtml].invoke
Rake::Task[:docszip].invoke
end

task :update, :ver do |t, args|
if args[:ver].to_s.chomp == ''
puts "Version number?"
version = STDIN.gets.chomp
else
version = args[:ver].chomp
end
date = Time.now.strftime('%Y-%m-%d')

sh "sed \"s/version=.*/version='#{version}',/\" setup.py -i"
sh "sed \"s/release = .*/release = '#{version}'/\" docs/conf.py -i"
sh "sed \"s/:Version: .*/:Version: #{version}/\" docs/*.rst -i"
sh "sed \"s/:Date: .*/:Date: #{date}/\" docs/*.rst -i"
sh "rm docs/pkgbuilder.8.gz"
sh "rst2man docs/pkgbuilder.rst > docs/pkgbuilder.8"
sh "gzip docs/pkgbuilder.8"

Rake::Task[:docs].invoke

sh './setup.py sdist upload'
md5sum = `md5sum "dist/#{project}-#{version}.tar.gz"`
md5sum.chomp!
md5sum.sub!(" dist/#{project}-#{version}.tar.gz", "")
sh "sed \"s/md5sums=.*/md5sums=('#{md5sum}')/\" PKGBUILD -i"

sh "tar -czvf /tmp/#{project}-#{version}-1.src.tar.gz PKGBUILD"
sh "aurploader /tmp/#{project}-#{version}-1.src.tar.gz"

puts "Done. Please upload the docs tarball to PyPI."
end
Binary file added dist/pkgbuilder-2.1.1.2.tar.gz
Binary file not shown.
134 changes: 0 additions & 134 deletions docs/Makefile

This file was deleted.

1 change: 0 additions & 1 deletion docs/README.rst

This file was deleted.

61 changes: 61 additions & 0 deletions docs/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-24
:Version: 2.1.1.2

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.
Binary file modified docs/_build/doctrees/README.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/environment.pickle
Binary file not shown.
Binary file removed docs/_build/doctrees/errorcodes.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/index.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/messagecodes.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/pkgbuilder.doctree
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
# The short X.Y version.
version = '2.1'
# The full version, including alpha/beta/rc tags.
release = '2.1.1.1'
release = '2.1.1.2'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
Binary file added docs/docs-pkgbuilder.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/html/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: ff0290a11e8b31c67cb10aaf924d6ab8
config: 42e105a34029085cabb7716af3127781
tags: fbb0d17656682115ca4d033fb2f83ba1
Loading

0 comments on commit 0d426b3

Please sign in to comment.