Skip to content

how do I run setuptools_scm test suite locally? #171

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

Closed
anthrotype opened this issue Jun 14, 2017 · 4 comments
Closed

how do I run setuptools_scm test suite locally? #171

anthrotype opened this issue Jun 14, 2017 · 4 comments

Comments

@anthrotype
Copy link

I'd like to submit a PR to fix another issue, but I'm having hard times figuring out how to run the test suite for setuptools_scm locally on my machine.

I have python 2.7.13 and 3.6.1 installed globally, each has tox installed.
Any of these commands make pytest fail with a RuntimeError: maximum recursion depth exceeded error.

python2 -m tox -e py-test
python3 -m tox -e py-test
tox -e py27-test
tox -e py36-test

I'm probably missing something very basic. In that case, sorry for the noise.

Thanks.

  if fn_pypath.fnmatch(pat):
  File "/Users/cosimolupo/Documents/Github/setuptools_scm/.tox/py-test/lib/python2.7/site-packages/py/_path/common.py", line 211, in fnmatch
    return FNMatcher(pattern)(self)
  File "/Users/cosimolupo/Documents/Github/setuptools_scm/.tox/py-test/lib/python2.7/site-packages/py/_path/common.py", line 404, in __call__
    return py.std.fnmatch.fnmatch(name, pattern)
  File "/Users/cosimolupo/Documents/Github/setuptools_scm/.tox/py-test/lib/python2.7/site-packages/py/_apipkg.py", line 125, in __makeattr
    result = importobj(modpath, attrname)
  File "/Users/cosimolupo/Documents/Github/setuptools_scm/.tox/py-test/lib/python2.7/site-packages/py/_apipkg.py", line 48, in importobj
    module = __import__(modpath, None, None, ['__doc__'])
  File "/Users/cosimolupo/Documents/Github/setuptools_scm/.tox/py-test/lib/python2.7/site-packages/_pytest/assertion/rewrite.py", line 97, in find_module
    if not self._should_rewrite(name, fn_pypath, state):
  File "/Users/cosimolupo/Documents/Github/setuptools_scm/.tox/py-test/lib/python2.7/site-packages/_pytest/assertion/rewrite.py", line 169, in _should_rewrite
    if fn_pypath.fnmatch(pat):
  File "/Users/cosimolupo/Documents/Github/setuptools_scm/.tox/py-test/lib/python2.7/site-packages/py/_path/common.py", line 211, in fnmatch
    return FNMatcher(pattern)(self)
  File "/Users/cosimolupo/Documents/Github/setuptools_scm/.tox/py-test/lib/python2.7/site-packages/py/_path/common.py", line 399, in __call__
    name = path.basename
  File "/Users/cosimolupo/Documents/Github/setuptools_scm/.tox/py-test/lib/python2.7/site-packages/py/_path/common.py", line 97, in basename
    return self._getbyspec('basename')[0]
RuntimeError: maximum recursion depth exceeded
@anthrotype
Copy link
Author

FYI, I am using the latest pytest 3.1.2 and tox 2.7.0.
The setuptools version is 36.0.1.

@RonnyPfannschmidt
Copy link
Contributor

@anthrotype please try to run them in a own virtualenv - at first glance it looks like a pytest report and i#ll log it into pytest issue tracker

@RonnyPfannschmidt
Copy link
Contributor

@anthrotype note that you will need to downcrade py.test

@RonnyPfannschmidt
Copy link
Contributor

@anthrotype it seems that you hit pytest-dev/pytest#2501

anthrotype pushed a commit to anthrotype/setuptools_scm that referenced this issue Jun 15, 2017
RonnyPfannschmidt added a commit that referenced this issue Jun 15, 2017
tox.ini: don't pin py version; fixes #171
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