]> granicus.if.org Git - cracklib/commitdiff
Python binding improvements
authorJan Dittberner <jan@dittberner.info>
Sun, 22 Nov 2009 15:14:57 +0000 (15:14 +0000)
committerJan Dittberner <jan@dittberner.info>
Sun, 22 Nov 2009 15:14:57 +0000 (15:14 +0000)
 * include libintl.h to fix warning
 * add a long description an an Operating System classifier
 * add setup.cfg to allow development releases
 * update NEWS

git-svn-id: file:///tmp/cracklib-svn/trunk/cracklib@154 4175fe1e-86d5-4fdc-8e6a-506fab9d8533

NEWS
python/_cracklibmodule.c
python/setup.cfg [new file with mode: 0644]
python/setup.py.in

diff --git a/NEWS b/NEWS
index 197b7aaae3e53bfbcaf0fd9bc8f7d9151f4cccfd..703d1905d8c39e999b2882626a09525e443ee80a 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,7 @@
 v2.8.16 update licensing information in Python extension (Jan Dittberner)
         make translations work in Python extension (Jan Dittberner)
+        fix Python extension compilation warning (Jan Dittberner)
+        add a long description to Python extension (Jan Dittberner)
 v2.8.15 allow building of Python extension outside source folder (Jan Dittberner)
         fix type on Python extension's trove classifier
         reflect license change discussion that was never actually implemented in the repository and update to LGPL
index 49e007127b5d2bf2ea80cc4cb0ad34d111f5a990..793793627d0b745bd719b11f517dd93d606f2937 100644 (file)
@@ -33,6 +33,7 @@
 #endif
 #include <crack.h>
 #include <locale.h>
+#include <libintl.h>
 
 #ifdef HAVE_PTHREAD_H
 static pthread_mutex_t cracklib_mutex = PTHREAD_MUTEX_INITIALIZER;
diff --git a/python/setup.cfg b/python/setup.cfg
new file mode 100644 (file)
index 0000000..5d52ed8
--- /dev/null
@@ -0,0 +1,6 @@
+[egg_info]
+tag_build = .dev
+tag_svn_revision = 1
+
+[aliases]
+release = egg_info -RDb ''
index d06f5adca936897159d34c087b91c0f1ae7c0803..4b7d86a7966a12d5eecd1b9719971406efa7d4e3 100644 (file)
@@ -31,6 +31,11 @@ setup(
     name="cracklib",
     version="@VERSION@",
     description="A CPython extension module wrapping the libcrack library",
+    long_description="""\
+This CPython extension provides Python bindings for cracklib. It
+contains a pythonic interface to cracklib's functions and some Python
+convenience functions.
+""",
     author="Jan Dittberner",
     author_email="jan@dittberner.info",
     url="http://cracklib.sourceforge.net/",
@@ -42,6 +47,7 @@ setup(
         "Development Status :: 4 - Beta",
         "Intended Audience :: Developers",
         "License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)",
+        "Operating System :: OS Independent",
         "Programming Language :: Python",
         "Topic :: Security",
         "Topic :: Software Development :: Libraries :: Python Modules",