Update of /cvsroot/spambayes/spambayes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29241

Modified Files:
        setup.py 
Log Message:
Update PyPI details and an error message.

For convenience, when doing an sdist, get the script to print out an MD5 
checksum
 and the size of the created archive(s) for us.  If only I could figure a way 
to get
 Inno to do this, too ;)

Index: setup.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/setup.py,v
retrieving revision 1.30
retrieving revision 1.31
diff -C2 -d -r1.30 -r1.31
*** setup.py    13 Apr 2004 13:24:11 -0000      1.30
--- setup.py    30 Nov 2004 23:00:11 -0000      1.31
***************
*** 15,19 ****
  if email.__version__ < '2.4.3':
      print "Error: email package version < 2.4.3 found - need newer version"
!     print "See INTEGRATION.txt for download information for email package"
      sys.exit(0)
  
--- 15,19 ----
  if email.__version__ < '2.4.3':
      print "Error: email package version < 2.4.3 found - need newer version"
!     print "See README.txt for download information for email package"
      sys.exit(0)
  
***************
*** 74,77 ****
--- 74,91 ----
          return parent.run(self)
  
+ import distutils.command.sdist
+ parent = distutils.command.sdist.sdist
+ class sdist(parent):
+     """Like the standard sdist, but also prints out MD5 checksums and sizes
+     for the created files, for convenience."""
+     def run(self):
+         import md5
+         retval = parent.run(self)
+         for archive in self.get_archive_files():
+             data = file(archive, "rb").read()
+             print '\n', archive, "\n\tMD5:", md5.md5(data).hexdigest()
+             print "\tLength:", len(data)
+         return retval
+         
  scripts=['scripts/sb_client.py',
           'scripts/sb_dbexpimp.py',
***************
*** 107,111 ****
      author_email = "[EMAIL PROTECTED]",
      url = "http://spambayes.sourceforge.net";,
!     cmdclass = {'install_scripts': install_scripts},
      scripts=scripts,
      packages = [
--- 121,127 ----
      author_email = "[EMAIL PROTECTED]",
      url = "http://spambayes.sourceforge.net";,
!     cmdclass = {'install_scripts': install_scripts,
!                 'sdist': sdist,
!                 },
      scripts=scripts,
      packages = [
***************
*** 114,119 ****
          ],
      classifiers = [
!         'Development Status :: 4 - Beta',
          'Environment :: Console',
          'License :: OSI Approved :: Python Software Foundation License',
          'Operating System :: POSIX',
--- 130,137 ----
          ],
      classifiers = [
!         'Development Status :: 5 - Production/Stable',
          'Environment :: Console',
+         'Environment :: Plugins',
+         'Environment :: Win32 (MS Windows)',
          'License :: OSI Approved :: Python Software Foundation License',
          'Operating System :: POSIX',
***************
*** 121,128 ****
--- 139,149 ----
          'Operating System :: Microsoft :: Windows :: Windows 95/98/2000',
          'Operating System :: Microsoft :: Windows :: Windows NT/2000',
+         'Natural Language :: English',
          'Programming Language :: Python',
+         'Programming Language :: C',
          'Intended Audience :: End Users/Desktop',
          'Topic :: Communications :: Email :: Filters',
          'Topic :: Communications :: Email :: Post-Office :: POP3',
+         'Topic :: Communications :: Email :: Post-Office :: IMAP',
          ],
      )

_______________________________________________
Spambayes-checkins mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/spambayes-checkins

Reply via email to