diff --git a/docs/pypi_upload.md b/docs/pypi_upload.md index 1028735..b0d99db 100644 --- a/docs/pypi_upload.md +++ b/docs/pypi_upload.md @@ -10,7 +10,7 @@ Putting up a new version ------------------------ 1. Check code is up-to-date with github version -2. Check all tests good (py.test) +2. Check all tests good (python setup.py test; py.test) 3. Check branches as expected (git branch -a) 4. Check version number if set correctly (more resync/_version.py) 5. Check local build and version reported OK (python setup.py install; resync --version) @@ -42,7 +42,7 @@ If all checks out OK, tag and push the new version: ``` git tag -n1 #...current tags - git tag -a -m "ResourceSync v0.6 specification, add --paths" v0.6.2 + git tag -a -m "ResourceSync v0.9 specification, add --paths" v0.9.3 git push --tags python setup.py sdist upload diff --git a/setup.py b/setup.py index b934a26..45e9bb1 100644 --- a/setup.py +++ b/setup.py @@ -1,8 +1,10 @@ -from distutils.core import setup +from setuptools import setup +# setuptools used instead of distutils.core so that +# dependencies can be handled automatically -# Extract version number from resync/_version.py. Here we are very strict -# about the format of the version string as an extra sanity check. -# (thanks for comments in +# Extract version number from resync/_version.py. Here we +# are very strict about the format of the version string +# as an extra sanity check. (Thanks for comments in # http://stackoverflow.com/questions/458550/standard-way-to-embed-version-into-python-package ) import re VERSIONFILE="resync/_version.py" @@ -33,4 +35,9 @@ setup( description='ResourceSync library and client', long_description=open('README').read(), url='http://github.com/resync/resync', + install_requires=[ + "requests", + "python-dateutil>=1.5" + ], + test_suite="resync.test", )