From: Paul Kienzle Date: Wed, 27 Apr 2011 15:35:11 +0000 (-0400) Subject: add package to pypi X-Git-Tag: v0.2~24^2~6 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=24817c6377c1c06dbd98fb4102b61a26adad0dcf;p=igor.git add package to pypi --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..bcdc360 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +MANIFEST +build +dist +*.pyc diff --git a/README.rst b/README.rst index 72c9feb..5753313 100644 --- a/README.rst +++ b/README.rst @@ -9,7 +9,22 @@ Read Igor Pro files from python. Install ------- -Download and expand the source tree, change to the source +Using pip:: + + $ pip install igor.py + +Using source, download and expand the source tree, change to the source directory and type:: $ python setup.py install + +Maintenance +----------- + +When a new version of the package is ready, increment __version__ +in igor.py and enter:: + + $ python setup.py sdist upload + +This will place a new version on pypi. + diff --git a/setup.py b/setup.py index 6019d50..f8c7cf9 100755 --- a/setup.py +++ b/setup.py @@ -6,6 +6,12 @@ import igor if len(sys.argv) == 1: sys.argv.append('install') +# README.rst is only needed to upload the package; +# it isn't needed for download and install. +try: + long_description = open('README.rst').read() +except: + long_description = None dist = setup( name = 'igor.py', version = igor.__version__, @@ -13,7 +19,7 @@ dist = setup( author_email='paul.kienzle@nist.gov', url='https://github.com/reflectometry/igor.py', description='Read Igor Pro files from python', - long_description=open('README.rst').read(), + long_description=long_description, classifiers=[ 'Development Status :: 4 - Beta', 'Environment :: Console', @@ -23,6 +29,7 @@ dist = setup( 'Programming Language :: Python', ], py_modules = ['igor'], + #data_files = ['README.rst'], ) # End of file