collective / sphinxcontrib-httpexample

Adds example directive for sphinx-contrib httpdomain
23 stars 20 forks source link

Incorrect name when building wheel archive #36

Closed OskarPersson closed 5 years ago

OskarPersson commented 5 years ago

When building a wheel archive the resulting file gets an incorrect name:

$ pip wheel -w . sphinxcontrib-httpexample==0.9.0  --no-binary :all:
Collecting sphinxcontrib-httpexample==0.9.0
  Downloading https://files.pythonhosted.org/packages/a3/69/96b14fbf64d94e7f8cb0ca2d891827068c139d73081d220af4684c33d76e/sphinxcontrib-httpexample-0.9.0.tar.gz
  Running setup.py (path:/private/var/folders/36/t0_t6_td2f560t2j0149vjmw0000gn/T/pip-wheel-YgSNXz/sphinxcontrib-httpexample/setup.py) egg_info for package sphinxcontrib-httpexample produced metadata for project name unknown. Fix your #egg=sphinxcontrib-httpexample fragments.
Building wheels for collected packages: unknown, unknown
  Running setup.py bdist_wheel for unknown ... done
  Stored in directory: /Users/Oskar/no_internet
  Running setup.py bdist_wheel for unknown ... done
  Stored in directory: /Users/Oskar/no_internet
Successfully built unknown unknown

$ ls
UNKNOWN-0.0.0-py2-none-any.whl
datakurre commented 5 years ago

It requires a fairly recent setuptools (with declarative setup.cfg support). I don’t remember the exact version, but setup.cfg support has been there at least for a couple of years. On 6 Oct 2018, 17.04 +0300, Oskar Persson notifications@github.com, wrote:

When building a wheel archive the resulting file gets an incorrect name: $ pip wheel -w . sphinxcontrib-httpexample==0.9.0 --no-binary :all: Collecting sphinxcontrib-httpexample==0.9.0 Downloading https://files.pythonhosted.org/packages/a3/69/96b14fbf64d94e7f8cb0ca2d891827068c139d73081d220af4684c33d76e/sphinxcontrib-httpexample-0.9.0.tar.gz Running setup.py (path:/private/var/folders/36/t0_t6_td2f560t2j0149vjmw0000gn/T/pip-wheel-YgSNXz/sphinxcontrib-httpexample/setup.py) egg_info for package sphinxcontrib-httpexample produced metadata for project name unknown. Fix your #egg=sphinxcontrib-httpexample fragments. Building wheels for collected packages: unknown, unknown Running setup.py bdist_wheel for unknown ... done Stored in directory: /Users/Oskar/no_internet Running setup.py bdist_wheel for unknown ... done Stored in directory: /Users/Oskar/no_internet Successfully built unknown unknown

$ ls UNKNOWN-0.0.0-py2-none-any.whl — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

OskarPersson commented 5 years ago

I've tested the latest version of setuptools (40.4.3) in Python 2.7.15 and 3.7.0 with the same error in both versions

datakurre commented 5 years ago

Then that’s weird. I’ll find out what’s going on. On 6 Oct 2018, 17.37 +0300, Oskar Persson notifications@github.com, wrote:

I'm running the latest version of setuptools (40.4.3) in Python 2.7.15 — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

datakurre commented 5 years ago

Oh, this must be that setup.cfg is missing from sdist. I’m sorry for that. I make a fixed release as soon as I’m on a real keyboard again. On 6 Oct 2018, 17.37 +0300, Oskar Persson notifications@github.com, wrote:

I'm running the latest version of setuptools (40.4.3) in Python 2.7.15 — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

datakurre commented 5 years ago

@OskarPersson Should be fixed with 0.9.1. Please, reopen the issue if still not fixed.