Re: Building/Testing persistent package with tox

Tres Seaver <[email protected]>
Newsgroups gmane.comp.web.zope.devel
Message-ID <[email protected]>
-----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          [email protected]
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-----

_______________________________________________
Zope-Dev maillist  -  [email protected]
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.