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

Tests fail: Can't find location of testsuite directory test in /usr/ports/devel/py-vsc-install/work-py27/vsc-install-0.11.2 #89

Open
yurivict opened this issue Oct 14, 2018 · 4 comments

Comments

@yurivict
Copy link

On FreeBSD, when built from the PyPI tarball, tests fail:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "setup.py", line 1541, in <module>
    action_target(PACKAGE)
  File "setup.py", line 1519, in action_target
    _fvs('action_target function')().action_target(package, *args, **kwargs)
  File "setup.py", line 1507, in action_target
    setupfn(**x)
  File "/usr/local/lib/python2.7/site-packages/setuptools/__init__.py", line 131, in setup
    return distutils.core.setup(**attrs)
  File "/usr/local/lib/python2.7/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/usr/local/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/local/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/usr/local/lib/python2.7/site-packages/setuptools/command/test.py", line 228, in run
    self.run_tests()
  File "setup.py", line 970, in run_tests
    cleanup = self.setup_sys_path()
  File "setup.py", line 877, in setup_sys_path
    (DEFAULT_TEST_SUITE, self.setupper.REPO_BASE_DIR))
Exception: Can't find location of testsuite directory test in /usr/ports/devel/py-vsc-install/work-py27/vsc-install-0.11.2
@boegel
Copy link
Member

boegel commented Oct 15, 2018

@yurivict Can you provide some more information? Which version of Python & setuptools is being used here? What are the contents of the /usr/ports/devel/py-vsc-install/work-py27/vsc-install-0.11.2 directory?

@yurivict
Copy link
Author

python-2.7
py27-setuptools-40.0.0

$ ls /usr/ports/devel/py-vsc-install/work-py27/vsc-install-0.11.2
LICENSE      PKG-INFO     README.md    bin          lib          setup.cfg    setup.py     setup.py.bak

@JensTimmerman
Copy link
Contributor

JensTimmerman commented Oct 15, 2018

This is correct, the pypi tarball doesn't contain the tests.
The tests are mainly intended for developers who want to add features/fix bugs/add tests
The pypi distribution is mainly intended for users who want to use the software/tools and libraries.

I recommend you checkout the git repo if you want to run the tests.

@JensTimmerman
Copy link
Contributor

should be fixed by #85

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

3 participants