Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

README.md is not in the tarball #21

Closed
hroncok opened this issue Mar 24, 2016 · 4 comments
Closed

README.md is not in the tarball #21

hroncok opened this issue Mar 24, 2016 · 4 comments

Comments

@hroncok
Copy link

hroncok commented Mar 24, 2016

Steps to reproduce:

  1. Go to https://pypi.python.org/pypi/virtualenv-api
  2. Download https://pypi.python.org/packages/source/v/virtualenv-api/virtualenv-api-2.1.7.tar.gz
  3. Unpack it and cd in
  4. virtualenv-3.4 .env
  5. . .env/bin/activate
  6. python setup.py install

Actual result:

Installed /home/churchyard/tmp/virtualenv-api-2.1.7/.eggs/pypandoc-1.1.3-py3.4.egg
Traceback (most recent call last):
  File "setup.py", line 15, in <module>
    packages=find_packages(),
  File "/usr/lib64/python3.4/distutils/core.py", line 108, in setup
    _setup_distribution = dist = klass(attrs)
  File "/home/churchyard/tmp/virtualenv-api-2.1.7/.env/lib/python3.4/site-packages/setuptools/dist.py", line 269, in __init__
    _Distribution.__init__(self,attrs)
  File "/usr/lib64/python3.4/distutils/dist.py", line 280, in __init__
    self.finalize_options()
  File "/home/churchyard/tmp/virtualenv-api-2.1.7/.env/lib/python3.4/site-packages/setuptools/dist.py", line 325, in finalize_options
    ep.load()(self, ep.name, value)
  File "/home/churchyard/tmp/virtualenv-api-2.1.7/.eggs/setuptools_markdown-0.2-py3.4.egg/setuptools_markdown.py", line 22, in long_description_markdown_filename
    output = pypandoc.convert(markdown_filename, 'rst')
  File "/home/churchyard/tmp/virtualenv-api-2.1.7/.eggs/pypandoc-1.1.3-py3.4.egg/pypandoc/__init__.py", line 50, in convert
    outputfile=outputfile, filters=filters)
  File "/home/churchyard/tmp/virtualenv-api-2.1.7/.eggs/pypandoc-1.1.3-py3.4.egg/pypandoc/__init__.py", line 68, in _convert
    raise RuntimeError('Missing format!')
RuntimeError: Missing format!

The error above says Missing format, but is actually about a missing file. See JessicaTegner/pypandoc#86

Excepted result: Installs.

See also fedora-python/pyp2rpm#27 and msabramo/setuptools-markdown#7 (comment)

@hroncok
Copy link
Author

hroncok commented Mar 24, 2016

I'll send a PR.

hroncok added a commit to hroncok/virtualenv-api that referenced this issue Mar 24, 2016
@sjkingo
Copy link
Owner

sjkingo commented Mar 31, 2016

Thanks for the detailed report and PR.

The problem is: this still breaks (at least in the tests)! And really, the issue you raised shouldn't happen at all. There seems to be some missing dependency of setuptools-markdown that is no longer on pypi.

I think the "correct" solution to this is converting the README.md markdown to an rST document, which pypi natively recognises. We can then remove the setup dependency of setuptools-markdown, and this problem should go away.

What do you think?

@hroncok
Copy link
Author

hroncok commented Mar 31, 2016 via email

@sjkingo sjkingo closed this as completed in 4b984d3 Apr 1, 2016
sjkingo added a commit that referenced this issue Apr 1, 2016
Convert README.md to rst to fix #21
@sjkingo
Copy link
Owner

sjkingo commented Apr 1, 2016

Can you try now, 2.1.8 is on Pypi which should fix the issue you're having.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants