opencensus-python icon indicating copy to clipboard operation
opencensus-python copied to clipboard

Python packages uploaded to Pypi do not include source distribution which causes pip `--no-binary` to fail

Open bshibs opened this issue 5 years ago • 4 comments

Describe your environment. OSX (though I believe this issue is OS-independent)

Steps to reproduce.

$ pipenv run pip --version
pip 19.3.1 from /.../virtualenvs/bsmining-_shFK90Q/lib/python3.7/site-packages/pip (python 3.7)

$ pip download --dest=/tmp --no-binary=:all: opencensus-context==0.1.1
ERROR: Could not find a version that satisfies the requirement opencensus-context==0.1.1 (from versions: none)
ERROR: No matching distribution found for opencensus-context==0.1.1

What is the expected behavior? Successful download of the package.

What is the actual behavior? See above

bshibs avatar Jan 22 '20 00:01 bshibs

Actually it looks like all setup.cfg files are only configured for wheel distribution.

bshibs avatar Jan 22 '20 17:01 bshibs

I am also stuck on this. Can your team release sdist packages ?

nareshv avatar Jan 23 '20 01:01 nareshv

The missing source packages on PyPi also make packaging opencensus packages for Linux distributions much more difficult. I'm currently packaging it for openSUSE/SLE.

glaubitz avatar Jan 29 '20 12:01 glaubitz

Hi all! This is still an issue, because even though opencensus-context 0.1.2 source is available in pypi, it has been incorrectly packaged. The archive is missing "version.py" from the root dir, which makes the source unusable for installation purposes:

(venv) [user@venv]$ pip download --no-binary :all: opencensus-context==0.1.2
Collecting opencensus-context==0.1.2
  Downloading opencensus-context-0.1.2.tar.gz (3.9 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [6 lines of output]
      Traceback (most recent call last):
        File "<string>", line 36, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-download-sro3dga9/opencensus-context_176b691556044a638b14c037d5b7c4e9/setup.py", line 17, in <module>
          from version import __version__
      ModuleNotFoundError: No module named 'version'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

f3flight avatar Feb 09 '22 19:02 f3flight