[Python-modules-commits] r21850 - in packages/python-pysnmp4/trunk/debian (8 files)

arnau at users.alioth.debian.org arnau at users.alioth.debian.org
Mon May 21 10:36:20 UTC 2012


    Date: Monday, May 21, 2012 @ 10:36:19
  Author: arnau
Revision: 21850

API versioning of pysnmp 4 has been retired since 4.1.12a and pysnmp version 2
is not supported nor available anymore, so drop python-pysnmp-common.

Added:
  packages/python-pysnmp4/trunk/debian/python-pysnmp4.NEWS
Modified:
  packages/python-pysnmp4/trunk/debian/README.Debian
  packages/python-pysnmp4/trunk/debian/changelog
  packages/python-pysnmp4/trunk/debian/control
  packages/python-pysnmp4/trunk/debian/copyright
  packages/python-pysnmp4/trunk/debian/rules
Deleted:
  packages/python-pysnmp4/trunk/debian/python-pysnmp-common.dirs
  packages/python-pysnmp4/trunk/debian/python-pysnmp-common.install

Modified: packages/python-pysnmp4/trunk/debian/README.Debian
===================================================================
--- packages/python-pysnmp4/trunk/debian/README.Debian	2012-05-21 10:19:02 UTC (rev 21849)
+++ packages/python-pysnmp4/trunk/debian/README.Debian	2012-05-21 10:36:19 UTC (rev 21850)
@@ -1,20 +1,5 @@
----- Documentation ----
 The documentation and examples for this package is in
 python-pysnmp4-doc.
 
 When you install that package, you can find the documentation and
 examples in /usr/share/doc/python-pysnmp4-doc.
-
----- API Versions ----
-If more than one pysnmp version is installed, it is possible to choose
-a version by setting the PYSNMP_API_VERSION environment variable.
-
-You need to set the environment variable before importing pysnmp.
-If you need pysnmp2, use this code:
-
- import os 
- os.environ['PYSNMP_API_VERSION'] = 'v2'
- import pysnmp
-
-If you need another version, replace v2 with the correct one.
-

Modified: packages/python-pysnmp4/trunk/debian/changelog
===================================================================
--- packages/python-pysnmp4/trunk/debian/changelog	2012-05-21 10:19:02 UTC (rev 21849)
+++ packages/python-pysnmp4/trunk/debian/changelog	2012-05-21 10:36:19 UTC (rev 21850)
@@ -15,14 +15,16 @@
      + formated and updated copy information.
   * debian/
      + added python-pysnmp4-doc.doc-base because package has some
-     html,pdf files.
+       html,pdf files.
   * debian/source
      + switch to dpkg-source 3.0 (quilt) format.
   * debian/libsmi2pysnmp.1
-     + removed hyphen-used-as-minus-sign
+     + removed hyphen-used-as-minus-sign.
 
   [ Arnaud Fontaine ]
   * New upstream release. Closes: #620229, #585321.
+    + API versioning has been retired since 4.1.12a and pysnmp version 2
+      is not supported nor available anymore, so drop python-pysnmp-common.
   * debian/control:
     + Remove myself from Maintainer as Jan Lübbe is now the maintainer.
     + Bump Standards-Version to 3.9.3. No changes needed.

Modified: packages/python-pysnmp4/trunk/debian/control
===================================================================
--- packages/python-pysnmp4/trunk/debian/control	2012-05-21 10:19:02 UTC (rev 21849)
+++ packages/python-pysnmp4/trunk/debian/control	2012-05-21 10:36:19 UTC (rev 21850)
@@ -20,13 +20,18 @@
          libsmi2ldbl,
          libsmi2-common,
          python-pyasn1,
-         python-pysnmp-common (>= 4.1.9a-2~),
 	 ${misc:Depends}
 Recommends: python-crypto,
             python-pysnmp4-mibs,
             python-pysnmp4-apps,
             python-twisted
 Suggests: python-pysnmp4-doc, doc-base
+Conflicts: python-pysnmp2,
+           python-pysnmp-common
+Replaces: python-pysnmp2,
+          python-pysnmp-common
+Provides: python-pysnmp2,
+          python-pysnmp-common
 Description: Python SNMP library for agents and managers (unstable branch)
  This  is a  Python implementation  of SNMP  v.1/v.2c/v.3  engine. Its
  general  functionality  is   to  assemble/disassemble  SNMP  messages
@@ -54,22 +59,3 @@
  PySNMP 4.x is the unstable branch.
  .
  This package contains the documentation for PySNMP.
-
-Package: python-pysnmp-common
-Architecture: all
-Depends: ${python:Depends}, ${misc:Depends}
-Breaks: python-pysnmp2 (<< 2.0.9-3~), python-pysnmp4 (<< 4.1.9a-2~)
-Replaces: python-pysnmp2 (<< 2.0.9-3~)
-Recommends: python-pysnmp4
-Description: Python SNMP library for agents and managers (version selection module)
- This is a Python implementation of SNMP v.1/v.2c/v.3 engine (SNMP v.3
- is  only supported  by  pysnmp4).  Its  general  functionality is  to
- assemble/disassemble  SNMP messages from/into  given SNMP  Object IDs
- along with  associated values. PySNMP  also provides a  few transport
- methods specific to TCP/IP networking.
- .
- PySNMP is written entirely in  Python and is self-sufficient in terms
- that it does not rely on any third party tool (it isn't a wrapper).
- .
- This package contains a Python module that allows users of PySNMP to
- select the API version.

Modified: packages/python-pysnmp4/trunk/debian/copyright
===================================================================
--- packages/python-pysnmp4/trunk/debian/copyright	2012-05-21 10:19:02 UTC (rev 21849)
+++ packages/python-pysnmp4/trunk/debian/copyright	2012-05-21 10:36:19 UTC (rev 21850)
@@ -47,8 +47,7 @@
 License: GPL-2
  This program is free software; you can redistribute it and/or modify it under
  the terms of the GNU General Public License as published by the Free Software
- Foundation; either  version 2 of the  License, or (at your  option) any later
- version.
+ Foundation, version 2 of the License.
  .
  This program is distributed  in the hope that it will  be useful, but WITHOUT
  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS

Deleted: packages/python-pysnmp4/trunk/debian/python-pysnmp-common.dirs
===================================================================
--- packages/python-pysnmp4/trunk/debian/python-pysnmp-common.dirs	2012-05-21 10:19:02 UTC (rev 21849)
+++ packages/python-pysnmp4/trunk/debian/python-pysnmp-common.dirs	2012-05-21 10:36:19 UTC (rev 21850)
@@ -1 +0,0 @@
-usr/share/pyshared/pysnmp/

Deleted: packages/python-pysnmp4/trunk/debian/python-pysnmp-common.install
===================================================================
--- packages/python-pysnmp4/trunk/debian/python-pysnmp-common.install	2012-05-21 10:19:02 UTC (rev 21849)
+++ packages/python-pysnmp4/trunk/debian/python-pysnmp-common.install	2012-05-21 10:36:19 UTC (rev 21850)
@@ -1 +0,0 @@
-pysnmp/__init__.py	usr/share/pyshared/pysnmp/

Added: packages/python-pysnmp4/trunk/debian/python-pysnmp4.NEWS
===================================================================
--- packages/python-pysnmp4/trunk/debian/python-pysnmp4.NEWS	                        (rev 0)
+++ packages/python-pysnmp4/trunk/debian/python-pysnmp4.NEWS	2012-05-21 10:36:19 UTC (rev 21850)
@@ -0,0 +1,7 @@
+python-pysnmp4 (4.2.2-1) unstable; urgency=low
+
+  Version  2 of  pysnmp API,  previously available  in python-pysnmp2,  is now
+  deprecated and not supported upstream anymore. Please consider updating your
+  code to version 4 of pysnmp API.
+
+ -- Arnaud Fontaine <arnau at debian.org>  Mon, 21 May 2012 19:24:19 +0900

Modified: packages/python-pysnmp4/trunk/debian/rules
===================================================================
--- packages/python-pysnmp4/trunk/debian/rules	2012-05-21 10:19:02 UTC (rev 21849)
+++ packages/python-pysnmp4/trunk/debian/rules	2012-05-21 10:36:19 UTC (rev 21850)
@@ -9,9 +9,3 @@
 
 DEB_PYTHON_INSTALL_ARGS_ALL += --install-layout=deb
 DEB_DESTDIR=debian/python-pysnmp4
-
-binary-install/python-pysnmp4::
-	rm -f debian/python-pysnmp4/usr/lib/python$(cdbs_python_current_version)/*-packages/pysnmp/__init__.py
-
-binary-install/python-pysnmp-common::
-	dh_python2 -ppython-pysnmp-common




More information about the Python-modules-commits mailing list