From d9714a05987a67132c5bf89d308d889ffa28e080 Mon Sep 17 00:00:00 2001 From: otron Date: Tue, 21 Jul 2015 15:58:20 +0200 Subject: [PATCH] enable source distribution packaging * Run `python setup.py sdist` to generate a source distribution package * Omits the newline at the end of the version number generated by `genversion.sh` --- .gitignore | 4 +++- MANIFEST.in | 7 +++++++ setup.py | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 MANIFEST.in diff --git a/.gitignore b/.gitignore index f7e4859..05e693b 100755 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,6 @@ build .project .pydevproject .cproject -*.py[co] \ No newline at end of file +*.py[co] +MANIFEST +dist diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..4c7c7a9 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,7 @@ +include README.rst +include VERSION_INFO +include genversion.sh +recursive-include tests * +recursive-include examples *.py +recursive-include docs * +recursive-include src * diff --git a/setup.py b/setup.py index d8bb200..321d685 100644 --- a/setup.py +++ b/setup.py @@ -29,7 +29,7 @@ print version setup( name = 'pyxrootd', - version = version, + version = version.strip(), author = 'XRootD Developers', author_email = 'xrootd-dev@slac.stanford.edu', url = 'http://xrootd.org',