[Python-modules-commits] [python-aptly] 01/03: Import python-aptly_0.7.8.orig.tar.gz

Filip Pytloun fpytloun-guest at moszumanska.debian.org
Mon Aug 22 17:18:51 UTC 2016


This is an automated email from the git hooks/post-receive script.

fpytloun-guest pushed a commit to branch master
in repository python-aptly.

commit ab086aad8b967965da2e2f985d6288adcb72732a
Author: Filip Pytloun <filip at pytloun.cz>
Date:   Mon Aug 22 19:17:18 2016 +0200

    Import python-aptly_0.7.8.orig.tar.gz
---
 README.rst                  |  6 ++--
 aptly/publisher/__main__.py |  2 +-
 doc/man/aptly-publisher.1   | 75 ---------------------------------------------
 setup.py                    |  3 +-
 4 files changed, 7 insertions(+), 79 deletions(-)

diff --git a/README.rst b/README.rst
index e4f6985..73dc947 100644
--- a/README.rst
+++ b/README.rst
@@ -195,11 +195,13 @@ Or better build Debian package with eg.:
 Read more
 =========
 
-For usage informations, see ``aptly-publisher --help`` or man page.
+For usage informations, see ``aptly-publisher --help`` or generate and view
+man page.
 
 ::
 
-  man man/aptly-publisher.1
+  PYTHONPATH=. help2man -n "aptly-publisher - tool for easy creation of Aptly multi component publishes" --version-string=$(grep version setup.py|cut -d '"' -f 2) "python aptly/publisher/__main__.py" | sed -e s,__main__.py,aptly-publisher,g -e s,__MAIN__.PY,APTLY-PUBLISHER,g > aptly-publisher.1
+  man aptly-publisher.1
 
 Also see ``doc/examples`` directory.
 
diff --git a/aptly/publisher/__main__.py b/aptly/publisher/__main__.py
index 888e4c9..c9695a7 100644
--- a/aptly/publisher/__main__.py
+++ b/aptly/publisher/__main__.py
@@ -29,7 +29,7 @@ def get_latest_snapshot(snapshots, name):
 
 
 def main():
-    parser = argparse.ArgumentParser("Aptly publisher")
+    parser = argparse.ArgumentParser("aptly-publisher")
 
     group_common = parser.add_argument_group("Common")
     parser.add_argument('action', help="Action to perform (publish, promote, cleanup)")
diff --git a/doc/man/aptly-publisher.1 b/doc/man/aptly-publisher.1
deleted file mode 100644
index 23809ba..0000000
--- a/doc/man/aptly-publisher.1
+++ /dev/null
@@ -1,75 +0,0 @@
-.TH man 1 "07 Aug 2015" "1.0" "aptly-publisher man page"
-.SH NAME
-aptly\-publisher \- tool for easy creation of Aptly multi component publishes
-
-.SH SYNOPSIS
-.B aptly\-publisher
-[-h] [-v] [-d] [--dry] --url URL [--recreate]
-[-c CONFIG] [--source SOURCE] [--target TARGET]
-[--components COMPONENTS [COMPONENTS ...]]
-.IR action
-
-.SH DESCRIPTION
-.B aptly\-publisher
-allows one to create aptly multi-component publishes from JSON definition of
-repositories and mirrors
-
-.SH ACTIONS
-.TP
-.B publish
-will update publishes from repositories and mirrors defined in config
-.TP
-.B promote
-will promote published snapshots of one publish to another
-.TP
-.B cleanup
-will remove unused snapshots
-
-.SH OPTIONS
-.TP
-\-c CONFIG, \-\-config CONFIG
-Path to configuration YAML file
-.TP
-\-v, \-\-verbose
-.TP
-\-d, \-\-debug
-.TP
-\-h, \-\-help
-.TP
-\-\-recreate
-Drop publish and create it again, only way to add new components
-.TP
-\-\-dry, \-\-dry\-run
-.TP
-\-\-timeout
-Timeout for API calls. Raise for slow servers or large repositories.
-.TP
-\-\-url
-URL to Aptly API, eg. http://localhost:8080
-.TP
-\-\-source
-Source publish to take snapshots from (promote action)
-.TP
-\-\-target
-Target publish to update (promote action)
-.TP
-\-\-components
-Space-separated list components to promote (promote action)
-.TP
-\-\-diff
-Show differences between publishes (promote action)
-
-.SH BUGS
-.TP
-Determine source snapshots correctly
-- at the moment it relies on snapshot comments that may not be reliable
-- see https://github.com/smira/aptly/issues/271
-.TP
-Cleanup merged snapshots before cleaning up source ones.
- - so it's needed to run cleanup multiple times to clean up everything.
-
-.SH AUTHOR
-Filip Pytloun <filip.pytloun at tcpcloud.eu>
-
-.SH COPYRIGHT
-(C) 2015 tcp cloud
diff --git a/setup.py b/setup.py
index e64a315..a3ae692 100755
--- a/setup.py
+++ b/setup.py
@@ -7,7 +7,7 @@ long_desc = open('README.rst').read()
 
 setup(
     name="python-aptly",
-    version="0.7.7",
+    version="0.7.8",
     description="Aptly REST API client and tooling",
     long_description=long_desc,
     author="Filip Pytloun",
@@ -17,6 +17,7 @@ setup(
     packages=['aptly', 'aptly.publisher'],
     install_requires=[
         'requests>=0.14',
+        'PyYaml',
     ],
     entry_points={
         'console_scripts': ['aptly-publisher = aptly.publisher.__main__:main']

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-aptly.git



More information about the Python-modules-commits mailing list