From 5ca2f9de342cf834bd7942ae0c62b380c112d671 Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Sat, 28 Nov 2009 14:16:01 -0500 Subject: [PATCH] converting from distutils to paver --- .gitignore | 5 +++++ MANIFEST.in | 1 + setup.py => pavement.py | 16 ++++++++-------- 3 files changed, 14 insertions(+), 8 deletions(-) create mode 100644 MANIFEST.in rename setup.py => pavement.py (60%) diff --git a/.gitignore b/.gitignore index 004a8d7..fab747d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,7 @@ *.pyc .coverage +*.egg-info +build +dist +setup.py +paver-minilib.zip diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..305c839 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1 @@ +include *.py *.zip diff --git a/setup.py b/pavement.py similarity index 60% rename from setup.py rename to pavement.py index d2e947a..d2d1baa 100644 --- a/setup.py +++ b/pavement.py @@ -1,8 +1,8 @@ -import sys -from distutils.core import setup +from paver.easy import * +from paver.setuputils import setup -SETUP_ARGS = dict( +SETUP_ARGS = Bunch( name='OneTimePad', version='0.1.0', author='Dan Buch', @@ -14,10 +14,10 @@ SETUP_ARGS = dict( ) -def main(): - setup(**SETUP_ARGS) - return 0 +setup(**SETUP_ARGS) -if __name__ == '__main__': - sys.exit(main()) +@task +@needs(['generate_setup', 'minilib', 'setuptools.command.sdist']) +def sdist(): + pass