Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add support for Python 3.0; drop support for Python 2.4; add setup.py

  • Loading branch information...
commit b709e5736b1166f395f9fc2396161feb6c2f2223 1 parent 204a9f4
@jrosdahl authored
View
6 MANIFEST.in
@@ -0,0 +1,6 @@
+include LICENSE
+include NEWS
+include README
+include maildirproc
+include setup.py
+recursive-include doc *.html *.css *.rc
View
2  Makefile
@@ -19,7 +19,7 @@ maildirproc-$(VERSION).tar.gz: $(DIST_FILES) $(EXAMPLE_FILES)
rm -rf maildirproc-$(VERSION)
clean:
- rm -rf maildirproc-$(VERSION)
+ rm -rf maildirproc-$(VERSION) build dist MANIFEST
find . -name '*~' | xargs rm -f
.PHONY: all clean
View
5 NEWS
@@ -1,3 +1,8 @@
+Version 0.4 (2008-12-18)
+
+ - Added support for Python 3.0.
+ - Dropped support for Python 2.4.
+
Version 0.3 (2008-02-23)
- The maildir base directory now defaults to the current working
View
9 doc/index.html
@@ -121,10 +121,11 @@
<h2>Installation</h2>
<p>maildirproc has no other dependencies than a working <a
-href="http://www.python.org">Python</a> 2.4 (or higher) on a Unixish
-system. No special installation is needed; just copy the <span
-class="command-line">maildirproc</span> file to a suitable place and
-run it.</p>
+href="http://www.python.org">Python</a> 2.5 (or higher) on a Unixish
+system. No special installation is needed if you use Python 2.x; just
+copy the <span class="command-line">maildirproc</span> file to a
+suitable place and run it. The alternative (which must be used if you
+use Python 3.x) is to run "python setup.py install".</p>
<p>You can run maildirproc in several diffent ways, e.g.:</p>
View
2  maildirproc
@@ -563,7 +563,7 @@ def main(argv):
os.mkdir(os.path.expanduser(maildirproc_directory))
parser = OptionParser(
- version="0.3",
+ version="0.4",
description=(
"maildirproc is a program that scans a number of maildir mail"
" boxes and processes found mail as defined by an rc file. See"
View
50 setup.py
@@ -0,0 +1,50 @@
+#! /usr/bin/env python
+
+from distutils.core import setup
+
+try:
+ from distutils.command.build_scripts import build_scripts_2to3 as build_scripts
+except ImportError:
+ from distutils.command.build_scripts import build_scripts
+
+VERSION = "0.4"
+
+setup(
+ name="maildirproc",
+ version=VERSION,
+ description="2to3 distutils test package",
+ author="Joel Rosdahl",
+ author_email="joel@rosdahl.net",
+ license="GNU GPL",
+ scripts=["maildirproc"],
+ platforms="platform-independent",
+ cmdclass={"build_scripts": build_scripts},
+ url="http://joel.rosdahl.net/maildirproc/",
+ download_url=("http://joel.rosdahl.net/maildirproc/maildirproc-%s.tar.gz" %
+ VERSION),
+ description="maildir processor using Python as its configuration language",
+ long_description="""maildirproc is a program that processes one or
+ several existing mail boxes in the maildir format. It is primarily
+ focused on mail sorting -- i.e., moving, copying, forwarding and
+ deleting mail according to a set of rules. It can be seen as an
+ alternative to procmail, but instead of being a delivery agent
+ (which wants to be part of the delivery chain), maildirproc only
+ processes already delivered mail. And that's a feature, not a
+ bug.""",
+ classifiers=[
+ "Development Status :: 5 - Production/Stable",
+ "Environment :: Console",
+ "Environment :: No Input/Output (Daemon)",
+ "Intended Audience :: End Users/Desktop",
+ "License :: OSI Approved :: GNU General Public License (GPL)",
+ "Operating System :: Unix",
+ "Programming Language :: Python",
+ "Programming Language :: Python :: 2.4",
+ "Programming Language :: Python :: 2.5",
+ "Programming Language :: Python :: 2.6",
+ "Programming Language :: Python :: 3",
+ "Programming Language :: Python :: 3.0",
+ "Topic :: Communications :: Email",
+ "Topic :: Communications :: Email :: Filters",
+ ],
+ )
Please sign in to comment.
Something went wrong with that request. Please try again.