[Zope-dev] Building/Testing persistent package with tox

Tres Seaver tseaver at palladion.com
Fri Jan 11 16:16:42 UTC 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 01/11/2013 10:54 AM, Stephan Richter wrote:
> Hi guys,
> 
> I have just tried to build/test persistent with tox and it fails with
> the following error message::
> 
> IOError: [Errno 2] No such file or directory: '/tmp/pip-u7jE1n- 
> build/CHANGES.txt' Complete output from command python setup.py
> egg_info: Traceback (most recent call last):
> 
> File "<string>", line 16, in <module>
> 
> File "/tmp/pip-u7jE1n-build/setup.py", line 29, in <module>
> 
> open(os.path.join(here, 'CHANGES.txt')).read())
> 
> IOError: [Errno 2] No such file or directory: '/tmp/pip-u7jE1n- 
> build/CHANGES.txt
> 
> This is indeed correct, since the ZIP package archive created by tox
> in ./.tox/dist does not include any txt files.
> 
> I use the following command to run tox:
> 
> $ tox -e py27,py32
> 
> How do others run tox?

Nice catch:  this is a side-effect of the move to Git.  I just run 'tox'
(all environments), but the Python's I use for tox all have
setuptools_git installed, so the CHANGES.txt gets included in the
temporary sdist.

I guess we can ass a MANIFEST.in, since you are certainly not going to be
the last person to trip over this issue.

/me tries using a Python without setuptools_git:  Hmm, the zipefile is
built correctly for me.  Odd.  The two tarballs are identical.




Tres.
- -- 
===================================================================
Tres Seaver          +1 540-429-0999          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iEYEARECAAYFAlDwOuoACgkQ+gerLs4ltQ7DsACeLIUyz6XocYMSAvdpuY6f9JOe
k/4AoJBw/sQA/fLyXVoJZotawPh7I4fg
=x2TZ
-----END PGP SIGNATURE-----



More information about the Zope-Dev mailing list