stefankoegl / python-json-patch

Applying JSON Patches in Python
https://python-json-patch.readthedocs.org/
BSD 3-Clause "New" or "Revised" License
456 stars 97 forks source link

jsonpointer dep isn't installed on 'setup.py install' #10

Closed bcwaldon closed 11 years ago

bcwaldon commented 11 years ago

njord:python-json-pointer [master] % workon tmp (tmp)njord:python-json-pointer [master] % pip install jsonpatch
Downloading/unpacking jsonpatch Downloading jsonpatch-0.8.tar.gz Running setup.py egg_info for package jsonpatch

Installing collected packages: jsonpatch Running setup.py install for jsonpatch

Successfully installed jsonpatch Cleaning up... (tmp)njord:python-json-pointer [master] % pip freeze jsonpatch==0.8 wsgiref==0.1.2

stefankoegl commented 11 years ago

0.9 should fix this issue: http://pypi.python.org/pypi/jsonpatch/0.9

bcwaldon commented 11 years ago

It looks like you need to add a MANIFEST.in file to carry the requirements.txt file in the sdist tarball:

(.venv)njord:python-json-patch [master] % pip install jsonpatch==0.9 Downloading/unpacking jsonpatch==0.9 Downloading jsonpatch-0.9.tar.gz Running setup.py egg_info for package jsonpatch Traceback (most recent call last): File "", line 14, in File "/Users/bcwaldon/src/python-json-patch/.venv/build/jsonpatch/setup.py", line 23, in REQUIREMENTS = list(open('requirements.txt')) IOError: [Errno 2] No such file or directory: 'requirements.txt' Complete output from command python setup.py egg_info: Traceback (most recent call last):

File "", line 14, in

File "/Users/bcwaldon/src/python-json-patch/.venv/build/jsonpatch/setup.py", line 23, in

REQUIREMENTS = list(open('requirements.txt'))

IOError: [Errno 2] No such file or directory: 'requirements.txt'


Command python setup.py egg_info failed with error code 1 in /Users/bcwaldon/src/python-json-patch/.venv/build/jsonpatch Storing complete log in /Users/bcwaldon/.pip/pip.log

stefankoegl commented 11 years ago

Oh, of course... done in d464dea3a3fb44e071a83e30d2794875e7e9c19b