mattduck / pytest-it

Decorate your pytest suite with RSpec-style pytest markers, then run `pytest --it` to see a plaintext spec of the test structure.
MIT License
37 stars 6 forks source link

Install fails on WSL Ubuntu #5

Closed bhargavrpatel closed 4 years ago

bhargavrpatel commented 4 years ago

Attempting to install this on WSL instance running Ubuntu 18, on Python 3. I am seein gan error when the wheel is being built.

$ pip install -U --ignore-installed pytest-it
Collecting pytest-it
  Using cached https://files.pythonhosted.org/packages/fd/f5/b41c70fc0a66addaa03b448e641ccf5ea8fb1398b35dc947b404724ad2be/pytest-it-0.1.2.tar.gz
Building wheels for collected packages: pytest-it
  Building wheel for pytest-it (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /mnt/d/workspace/testing/env/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-qhrw520q/pytest-it/setup.py'"'"'; __file__='"'"'/tmp/pip-install-qhrw520q/pytest-it/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-7b2odwpy --python-tag cp38
       cwd: /tmp/pip-install-qhrw520q/pytest-it/
  Complete output (28 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib
  creating build/lib/pytest_it
  copying src/pytest_it/__init__.py -> build/lib/pytest_it
  copying src/pytest_it/plugin.py -> build/lib/pytest_it
  installing to build/bdist.linux-x86_64/wheel
  running install
  running install_lib
  creating build/bdist.linux-x86_64
  creating build/bdist.linux-x86_64/wheel
  creating build/bdist.linux-x86_64/wheel/pytest_it
  copying build/lib/pytest_it/__init__.py -> build/bdist.linux-x86_64/wheel/pytest_it
  copying build/lib/pytest_it/plugin.py -> build/bdist.linux-x86_64/wheel/pytest_it
  running install_egg_info
  running egg_info
  writing src/pytest_it.egg-info/PKG-INFO
  writing dependency_links to src/pytest_it.egg-info/dependency_links.txt
  writing entry points to src/pytest_it.egg-info/entry_points.txt
  writing top-level names to src/pytest_it.egg-info/top_level.txt
  warning: Failed to find the configured license file 'LICENSE'
  reading manifest file 'src/pytest_it.egg-info/SOURCES.txt'
  writing manifest file 'src/pytest_it.egg-info/SOURCES.txt'
  Copying src/pytest_it.egg-info to build/bdist.linux-x86_64/wheel/pytest_it-0.1.2-py3.8.egg-info
  running install_scripts
  error: [Errno 2] No such file or directory: 'LICENSE'
  ----------------------------------------
  ERROR: Failed building wheel for pytest-it
  Running setup.py clean for pytest-it
Failed to build pytest-it
Installing collected packages: pytest-it
    Running setup.py install for pytest-it ... done
Successfully installed pytest-it-0.1.2
mattduck commented 4 years ago

Hey @bhargavrpatel, thanks for reporting this. Will take a look and respond.

mattduck commented 4 years ago

@bhargavrpatel this should be fixed now - I've confirmed that I can install a new version. See the commit message in https://github.com/mattduck/pytest-it/commit/2d34fb6cacb64ac2bc22a0367999b7e8ddf836ca for a brief description.

It's a strange one as previously this was OK, which makes me think it's related to a newer version of pip or setuptools. I'm going to close this issue and figure out separately what changed to cause the install to start failing.

Thanks again for reporting!