diff --git a/MANIFEST b/MANIFEST index 801482f..fe9e0f2 100644 --- a/MANIFEST +++ b/MANIFEST @@ -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 @@ -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 diff --git a/PKGBUILD b/PKGBUILD index 3cf44a2..4fd155c 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -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}" diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..73b2f8e --- /dev/null +++ b/Rakefile @@ -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 diff --git a/dist/pkgbuilder-2.1.1.2.tar.gz b/dist/pkgbuilder-2.1.1.2.tar.gz new file mode 100644 index 0000000..8917d70 Binary files /dev/null and b/dist/pkgbuilder-2.1.1.2.tar.gz differ diff --git a/docs/Makefile b/docs/Makefile deleted file mode 100644 index 6841720..0000000 --- a/docs/Makefile +++ /dev/null @@ -1,134 +0,0 @@ -# Makefile for Sphinx documentation -# modded by Kw - -# You can set these variables from the command line. -SPHINXOPTS = -SPHINXBUILD = sphinx-build -PAPER = -BUILDDIR = _build - -# Internal variables. -PAPEROPT_a4 = -D latex_paper_size=a4 -PAPEROPT_letter = -D latex_paper_size=letter -ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . - -.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest - -help: - @echo "Please use \`make ' where is one of" - @echo " html to make standalone HTML files" - @echo " dirhtml to make HTML files named index.html in directories" - @echo " singlehtml to make a single large HTML file" - @echo " pickle to make pickle files" - @echo " json to make JSON files" - @echo " htmlhelp to make HTML files and a HTML help project" - @echo " qthelp to make HTML files and a qthelp project" - @echo " devhelp to make HTML files and a Devhelp project" - @echo " epub to make an epub" - @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter" - @echo " latexpdf to make LaTeX files and run them through pdflatex" - @echo " text to make text files" - @echo " man to make manual pages" - @echo " changes to make an overview of all changed/added/deprecated items" - @echo " linkcheck to check all external links for integrity" - @echo " doctest to run all doctests embedded in the documentation (if enabled)" - -clean: - -rm -rf $(BUILDDIR)/* - -html: - $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) ./html - @echo - @echo "Build finished. The HTML pages are in ./html." - -zip: - cd html/ - zip -r /tmp/docs.zip ./* - -dirhtml: - $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml - @echo - @echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml." - -singlehtml: - $(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml - @echo - @echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml." - -pickle: - $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle - @echo - @echo "Build finished; now you can process the pickle files." - -json: - $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json - @echo - @echo "Build finished; now you can process the JSON files." - -htmlhelp: - $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp - @echo - @echo "Build finished; now you can run HTML Help Workshop with the" \ - ".hhp project file in $(BUILDDIR)/htmlhelp." - -qthelp: - $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp - @echo - @echo "Build finished; now you can run "qcollectiongenerator" with the" \ - ".qhcp project file in $(BUILDDIR)/qthelp, like this:" - @echo "# qcollectiongenerator $(BUILDDIR)/qthelp/PKGBUILDer.qhcp" - @echo "To view the help file:" - @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/PKGBUILDer.qhc" - -devhelp: - $(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp - @echo - @echo "Build finished." - @echo "To view the help file:" - @echo "# mkdir -p $$HOME/.local/share/devhelp/PKGBUILDer" - @echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/PKGBUILDer" - @echo "# devhelp" - -epub: - $(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub - @echo - @echo "Build finished. The epub file is in $(BUILDDIR)/epub." - -latex: - $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex - @echo - @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex." - @echo "Run \`make' in that directory to run these through (pdf)latex" \ - "(use \`make latexpdf' here to do that automatically)." - -latexpdf: - $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex - @echo "Running LaTeX files through pdflatex..." - make -C $(BUILDDIR)/latex all-pdf - @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex." - -text: - $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text - @echo - @echo "Build finished. The text files are in $(BUILDDIR)/text." - -man: - $(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man - @echo - @echo "Build finished. The manual pages are in $(BUILDDIR)/man." - -changes: - $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes - @echo - @echo "The overview file is in $(BUILDDIR)/changes." - -linkcheck: - $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck - @echo - @echo "Link check complete; look for any errors in the above output " \ - "or in $(BUILDDIR)/linkcheck/output.txt." - -doctest: - $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest - @echo "Testing of doctests in the sources finished, look at the " \ - "results in $(BUILDDIR)/doctest/output.txt." diff --git a/docs/README.rst b/docs/README.rst deleted file mode 120000 index 89a0106..0000000 --- a/docs/README.rst +++ /dev/null @@ -1 +0,0 @@ -../README.rst \ No newline at end of file diff --git a/docs/README.rst b/docs/README.rst new file mode 100644 index 0000000..38edcd5 --- /dev/null +++ b/docs/README.rst @@ -0,0 +1,61 @@ +===================== +README for PKGBUILDer +===================== +:Info: This is the README file for PKGBUILDer. +:Author: Kwpolska +: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. diff --git a/docs/_build/doctrees/README.doctree b/docs/_build/doctrees/README.doctree index ed50495..68b820c 100644 Binary files a/docs/_build/doctrees/README.doctree and b/docs/_build/doctrees/README.doctree differ diff --git a/docs/_build/doctrees/environment.pickle b/docs/_build/doctrees/environment.pickle index e672699..f6ef3fe 100644 Binary files a/docs/_build/doctrees/environment.pickle and b/docs/_build/doctrees/environment.pickle differ diff --git a/docs/_build/doctrees/errorcodes.doctree b/docs/_build/doctrees/errorcodes.doctree deleted file mode 100644 index d2700cd..0000000 Binary files a/docs/_build/doctrees/errorcodes.doctree and /dev/null differ diff --git a/docs/_build/doctrees/index.doctree b/docs/_build/doctrees/index.doctree index 635bc51..2463637 100644 Binary files a/docs/_build/doctrees/index.doctree and b/docs/_build/doctrees/index.doctree differ diff --git a/docs/_build/doctrees/messagecodes.doctree b/docs/_build/doctrees/messagecodes.doctree new file mode 100644 index 0000000..8d678ed Binary files /dev/null and b/docs/_build/doctrees/messagecodes.doctree differ diff --git a/docs/_build/doctrees/pkgbuilder.doctree b/docs/_build/doctrees/pkgbuilder.doctree index 905b174..076b2c4 100644 Binary files a/docs/_build/doctrees/pkgbuilder.doctree and b/docs/_build/doctrees/pkgbuilder.doctree differ diff --git a/docs/conf.py b/docs/conf.py index 399193a..929ee3e 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -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. diff --git a/docs/docs-pkgbuilder.zip b/docs/docs-pkgbuilder.zip new file mode 100644 index 0000000..1912752 Binary files /dev/null and b/docs/docs-pkgbuilder.zip differ diff --git a/docs/html/.buildinfo b/docs/html/.buildinfo index 043a002..7f8226d 100644 --- a/docs/html/.buildinfo +++ b/docs/html/.buildinfo @@ -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 diff --git a/docs/html/README.html b/docs/html/README/index.html similarity index 80% rename from docs/html/README.html rename to docs/html/README/index.html index cbe7fd2..2a20ab0 100644 --- a/docs/html/README.html +++ b/docs/html/README/index.html @@ -7,36 +7,36 @@ - README for PKGBUILDer — PKGBUILDer v2.1.1 documentation - - + README for PKGBUILDer — PKGBUILDer v2.1.1.2 documentation + + - - - - - - + + + + + + @@ -55,9 +55,9 @@

README for PKGBUILDer Author:Kwpolska <kwpolska@kwpolska.tk> -Date:2011-09-22 +Date:2011-09-24 -Version:2.1.1 +Version:2.1.1.2 @@ -121,7 +121,7 @@

COPYRIGHT
-

Table Of Contents

+

Table Of Contents