Move from distutils.core to setuptools; add test_suite and install_requires to setup.py
This commit is contained in:
parent
d53a64c363
commit
ea7d6881e7
@ -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
|
||||
|
||||
15
setup.py
15
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",
|
||||
)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user