Distutils-SIG
Threads by month
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2009 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2008 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2007 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2006 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2005 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2004 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2003 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2002 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2001 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2000 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 1999 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 1998 -----
- December
- November
March 2008
- 67 participants
- 82 discussions
Hi,
I just tried to upload a new package with a pretty long long_description.
After uploading PyPI showed the text as plain/text...obviously an error
within the reST structure. Because of the length it took me half an hour
for figuring out the error. My local rst2html script did not report any
errors.
So what is the recommended approach for checking a reST file for PyPI
compliance instead doing fixing-and-re-registering the package?
Andreas
--
ZOPYX Ltd. & Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany
Web: www.zopyx.com - Email: info(a)zopyx.com - Phone +49 - 7071 - 793376
Registergericht: Amtsgericht Stuttgart, Handelsregister A 381535
Geschäftsführer/Gesellschafter: ZOPYX Limited, Birmingham, UK
------------------------------------------------------------------------
E-Publishing, Python, Zope & Plone development, Consulting
4
4
When I run the zc.recipe.egg-1.0.0 tests via "setup.py test" (after unpacking
from the distribution tarball), I get the below-mentioned failures. Is there
another way I should be running the tests so they pass, or are these failures
genuine?
- VC
"""
[chrism@vitaminf zc.recipe.egg-1.0.0]$ python setup.py test
running test
running egg_info
writing requirements to src/zc.recipe.egg.egg-info/requires.txt
writing src/zc.recipe.egg.egg-info/PKG-INFO
writing namespace_packages to src/zc.recipe.egg.egg-info/namespace_packages.txt
writing top-level names to src/zc.recipe.egg.egg-info/top_level.txt
writing dependency_links to src/zc.recipe.egg.egg-info/dependency_links.txt
writing entry points to src/zc.recipe.egg.egg-info/entry_points.txt
reading manifest file 'src/zc.recipe.egg.egg-info/SOURCES.txt'
writing manifest file 'src/zc.recipe.egg.egg-info/SOURCES.txt'
running build_ext
Doctest: README.txt ... FAIL
Doctest: api.txt ... ok
Doctest: custom.txt ... ok
Doctest: selecting-python.txt ... 'import site' failed; use -v for traceback
'import site' failed; use -v for traceback
'import site' failed; use -v for traceback
'import site' failed; use -v for traceback
'import site' failed; use -v for traceback
FAIL
======================================================================
FAIL: Doctest: README.txt
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/Users/chrism/projects/repoze-devel/tmp/zc.recipe.egg-1.0.0/zope.testing-3.5.1-py2.4.egg/zope/testing/doctest.py",
line 2323, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
DocTestFailureException: Failed doctest test for README.txt
File
"/Users/chrism/projects/repoze-devel/tmp/zc.recipe.egg-1.0.0/src/zc/recipe/egg/README.txt",
line 0
----------------------------------------------------------------------
File
"/Users/chrism/projects/repoze-devel/tmp/zc.recipe.egg-1.0.0/src/zc/recipe/egg/README.txt",
line 78, in README.txt
Failed example:
ls(sample_buildout, 'eggs')
Expected:
- demo-0.2-pyN.N.egg
- demoneeded-1.2c1-pyN.N.egg
setuptools-X-pyN.N.egg
- zc.buildout.egg
Got:
- demo-0.2-pyN.N.egg
- demoneeded-1.2c1-pyN.N.egg
setuptools-X-pyN.N.egg
d zc.buildout.egg
----------------------------------------------------------------------
File
"/Users/chrism/projects/repoze-devel/tmp/zc.recipe.egg-1.0.0/src/zc/recipe/egg/README.txt",
line 249, in README.txt
Failed example:
ls(sample_buildout, 'eggs')
Expected:
- demo-0.2-pyN.N.egg
- demoneeded-1.2c1-pyN.N.egg
setuptools-X-pyN.N.egg
- zc.buildout.egg
Got:
- demo-0.2-pyN.N.egg
- demoneeded-1.2c1-pyN.N.egg
setuptools-X-pyN.N.egg
d zc.buildout.egg
----------------------------------------------------------------------
File
"/Users/chrism/projects/repoze-devel/tmp/zc.recipe.egg-1.0.0/src/zc/recipe/egg/README.txt",
line 266, in README.txt
Failed example:
ls(sample_buildout, 'eggs')
Expected:
- demo-0.2-pyN.N.egg
- demo-0.4c1-pyN.N.egg
- demoneeded-1.2c1-pyN.N.egg
setuptools-X-pyN.N.egg
- zc.buildout.egg
Got:
- demo-0.2-pyN.N.egg
- demo-0.4c1-pyN.N.egg
- demoneeded-1.2c1-pyN.N.egg
setuptools-X-pyN.N.egg
d zc.buildout.egg
======================================================================
FAIL: Doctest: selecting-python.txt
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/Users/chrism/projects/repoze-devel/tmp/zc.recipe.egg-1.0.0/zope.testing-3.5.1-py2.4.egg/zope/testing/doctest.py",
line 2323, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
DocTestFailureException: Failed doctest test for selecting-python.txt
File
"/Users/chrism/projects/repoze-devel/tmp/zc.recipe.egg-1.0.0/src/zc/recipe/egg/selecting-python.txt",
line 0
----------------------------------------------------------------------
File
"/Users/chrism/projects/repoze-devel/tmp/zc.recipe.egg-1.0.0/src/zc/recipe/egg/selecting-python.txt",
line 12, in selecting-python.txt
Failed example:
print get(link_server),
Expected:
<html><body>
<a href="demo-0.1-py2.3.egg">demo-0.1-py2.3.egg</a><br>
<a href="demo-0.2-py2.3.egg">demo-0.2-py2.3.egg</a><br>
<a href="demo-0.3-py2.3.egg">demo-0.3-py2.3.egg</a><br>
<a href="demo-0.4c1-py2.3.egg">demo-0.4c1-py2.3.egg</a><br>
<a href="demoneeded-1.0.zip">demoneeded-1.0.zip</a><br>
<a href="demoneeded-1.1.zip">demoneeded-1.1.zip</a><br>
<a href="demoneeded-1.2c1.zip">demoneeded-1.2c1.zip</a><br>
<a href="extdemo-1.4.zip">extdemo-1.4.zip</a><br>
<a href="index/">index/</a><br>
<a href="other-1.0-py2.3.egg">other-1.0-py2.3.egg</a><br>
</body></html>
Got:
<html><body>
<a href="demo-0.1py2.4.egg">demo-0.1py2.4.egg</a><br>
<a href="demo-0.2py2.4.egg">demo-0.2py2.4.egg</a><br>
<a href="demo-0.3py2.4.egg">demo-0.3py2.4.egg</a><br>
<a href="demo-0.4c1py2.4.egg">demo-0.4c1py2.4.egg</a><br>
<a href="demoneeded-1.0.zip">demoneeded-1.0.zip</a><br>
<a href="demoneeded-1.1.zip">demoneeded-1.1.zip</a><br>
<a href="demoneeded-1.2c1.zip">demoneeded-1.2c1.zip</a><br>
<a href="extdemo-1.4.zip">extdemo-1.4.zip</a><br>
<a href="index/">index/</a><br>
<a href="other-1.0py2.4.egg">other-1.0py2.4.egg</a><br>
</body></html>
----------------------------------------------------------------------
File
"/Users/chrism/projects/repoze-devel/tmp/zc.recipe.egg-1.0.0/src/zc/recipe/egg/selecting-python.txt",
line 29, in selecting-python.txt
Failed example:
write(sample_buildout, 'buildout.cfg',
"""
[buildout]
parts = demo
eggs-directory = eggs
index = http://www.python.org/pypi/
[python2.3]
executable = %(python23)s
[demo]
recipe = zc.recipe.egg
eggs = demo <0.3
find-links = %(server)s
python = python2.3
interpreter = py-demo
""" % dict(server=link_server, python23=python2_3_executable))
Exception raised:
Traceback (most recent call last):
File
"/Users/chrism/projects/repoze-devel/tmp/zc.recipe.egg-1.0.0/zope.testing-3.5.1-py2.4.egg/zope/testing/doctest.py",
line 1356, in __run
compileflags, 1) in test.globs
File "<doctest selecting-python.txt[1]>", line 17, in ?
NameError: name 'python2_3_executable' is not defined
----------------------------------------------------------------------
File
"/Users/chrism/projects/repoze-devel/tmp/zc.recipe.egg-1.0.0/src/zc/recipe/egg/selecting-python.txt",
line 52, in selecting-python.txt
Failed example:
print system(buildout),
Expected:
Installing demo.
Getting distribution for 'demo<0.3'.
Got demo 0.2.
Getting distribution for 'demoneeded'.
Getting distribution for 'setuptools'.
Got setuptools V
Got demoneeded 1.2c1.
Generated script '/sample-buildout/bin/demo'.
Generated interpreter '/sample-buildout/bin/py-demo'.
Got nothing
----------------------------------------------------------------------
File
"/Users/chrism/projects/repoze-devel/tmp/zc.recipe.egg-1.0.0/src/zc/recipe/egg/selecting-python.txt",
line 65, in selecting-python.txt
Failed example:
ls(sample_buildout, 'eggs')
Expected:
- demo-0.2-py2.3.egg
- demoneeded-1.2c1-py2.3.egg
setuptools-V-py2.3.egg
setuptools-Vpy2.4.egg
- zc.buildout.egg
Got:
setuptools-Vpy2.4.egg
d zc.buildout.egg
----------------------------------------------------------------------
File
"/Users/chrism/projects/repoze-devel/tmp/zc.recipe.egg-1.0.0/src/zc/recipe/egg/selecting-python.txt",
line 79, in selecting-python.txt
Failed example:
f = open(os.path.join(sample_buildout, 'bin', script_name))
Exception raised:
Traceback (most recent call last):
File
"/Users/chrism/projects/repoze-devel/tmp/zc.recipe.egg-1.0.0/zope.testing-3.5.1-py2.4.egg/zope/testing/doctest.py",
line 1356, in __run
compileflags, 1) in test.globs
File "<doctest selecting-python.txt[9]>", line 1, in ?
IOError: [Errno 2] No such file or directory:
'/var/folders/dB/dByJ-qkiE6igZD4Yrm+nMk+++TI/-Tmp-/tmpY4S2YlbuildoutSetUp/_TEST_/sample-buildout/bin/demo'
----------------------------------------------------------------------
File
"/Users/chrism/projects/repoze-devel/tmp/zc.recipe.egg-1.0.0/src/zc/recipe/egg/selecting-python.txt",
line 80, in selecting-python.txt
Failed example:
f.readline().strip() == '#!' + python2_3_executable
Exception raised:
Traceback (most recent call last):
File
"/Users/chrism/projects/repoze-devel/tmp/zc.recipe.egg-1.0.0/zope.testing-3.5.1-py2.4.egg/zope/testing/doctest.py",
line 1356, in __run
compileflags, 1) in test.globs
File "<doctest selecting-python.txt[10]>", line 1, in ?
NameError: name 'f' is not defined
----------------------------------------------------------------------
File
"/Users/chrism/projects/repoze-devel/tmp/zc.recipe.egg-1.0.0/src/zc/recipe/egg/selecting-python.txt",
line 82, in selecting-python.txt
Failed example:
print f.read(), # doctest: +NORMALIZE_WHITESPACE
Exception raised:
Traceback (most recent call last):
File
"/Users/chrism/projects/repoze-devel/tmp/zc.recipe.egg-1.0.0/zope.testing-3.5.1-py2.4.egg/zope/testing/doctest.py",
line 1356, in __run
compileflags, 1) in test.globs
File "<doctest selecting-python.txt[11]>", line 1, in ?
NameError: name 'f' is not defined
----------------------------------------------------------------------
File
"/Users/chrism/projects/repoze-devel/tmp/zc.recipe.egg-1.0.0/src/zc/recipe/egg/selecting-python.txt",
line 95, in selecting-python.txt
Failed example:
if sys.platform == 'win32':
f = open(os.path.join(sample_buildout, 'bin', 'py-demo-script.py'))
else:
f = open(os.path.join(sample_buildout, 'bin', 'py-demo'))
Exception raised:
Traceback (most recent call last):
File
"/Users/chrism/projects/repoze-devel/tmp/zc.recipe.egg-1.0.0/zope.testing-3.5.1-py2.4.egg/zope/testing/doctest.py",
line 1356, in __run
compileflags, 1) in test.globs
File "<doctest selecting-python.txt[12]>", line 4, in ?
IOError: [Errno 2] No such file or directory:
'/var/folders/dB/dByJ-qkiE6igZD4Yrm+nMk+++TI/-Tmp-/tmpY4S2YlbuildoutSetUp/_TEST_/sample-buildout/bin/py-demo'
----------------------------------------------------------------------
File
"/Users/chrism/projects/repoze-devel/tmp/zc.recipe.egg-1.0.0/src/zc/recipe/egg/selecting-python.txt",
line 99, in selecting-python.txt
Failed example:
f.readline().strip() == '#!' + python2_3_executable
Exception raised:
Traceback (most recent call last):
File
"/Users/chrism/projects/repoze-devel/tmp/zc.recipe.egg-1.0.0/zope.testing-3.5.1-py2.4.egg/zope/testing/doctest.py",
line 1356, in __run
compileflags, 1) in test.globs
File "<doctest selecting-python.txt[13]>", line 1, in ?
NameError: name 'f' is not defined
----------------------------------------------------------------------
File
"/Users/chrism/projects/repoze-devel/tmp/zc.recipe.egg-1.0.0/src/zc/recipe/egg/selecting-python.txt",
line 101, in selecting-python.txt
Failed example:
print f.read(), # doctest: +NORMALIZE_WHITESPACE
Exception raised:
Traceback (most recent call last):
File
"/Users/chrism/projects/repoze-devel/tmp/zc.recipe.egg-1.0.0/zope.testing-3.5.1-py2.4.egg/zope/testing/doctest.py",
line 1356, in __run
compileflags, 1) in test.globs
File "<doctest selecting-python.txt[14]>", line 1, in ?
NameError: name 'f' is not defined
----------------------------------------------------------------------
File
"/Users/chrism/projects/repoze-devel/tmp/zc.recipe.egg-1.0.0/src/zc/recipe/egg/selecting-python.txt",
line 128, in selecting-python.txt
Failed example:
f.close()
Exception raised:
Traceback (most recent call last):
File
"/Users/chrism/projects/repoze-devel/tmp/zc.recipe.egg-1.0.0/zope.testing-3.5.1-py2.4.egg/zope/testing/doctest.py",
line 1356, in __run
compileflags, 1) in test.globs
File "<doctest selecting-python.txt[15]>", line 1, in ?
NameError: name 'f' is not defined
----------------------------------------------------------------------
Ran 4 tests in 41.042s
FAILED (failures=2)
"""
2
1