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

Fix CI #516

Merged
merged 3 commits into from
Mar 29, 2019
Merged

Fix CI #516

merged 3 commits into from
Mar 29, 2019

Conversation

martinRenou
Copy link
Contributor

No description provided.

@rmorshea
Copy link
Contributor

@martinRenou is this related? #497

@martinRenou
Copy link
Contributor Author

I'm not quite sure it's related to Sentinel not being exported. I'm trying to fix the

/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/pytest_warnings/__init__.py:44: UserWarning: pytest-warnings plugin was introduced in core pytest on 3.1, please uninstall pytest-warnings
  warnings.warn('pytest-warnings plugin was introduced in core pytest on 3.1, please '
Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/pluggy/__init__.py", line 397, in load_setuptools_entrypoints
    plugin = ep.load()
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2404, in load
    self.require(*args, **kwargs)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2427, in require
    items = working_set.resolve(reqs, env, installer, extras=self.extras)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/pkg_resources/__init__.py", line 875, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.VersionConflict: (pytest 3.3.0 (/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages), Requirement.parse('pytest>=3.6'))

That you can see on those builds: https://travis-ci.org/ipython/traitlets/jobs/513025651

@rmorshea
Copy link
Contributor

Hmm, this looks like pytest 3.3 has already been installed inside the virtualenv, but something is requiring >=3.6

@martinRenou
Copy link
Contributor Author

Yeah, there is also this warning: pytest-warnings plugin was introduced in core pytest on 3.1, please uninstall pytest-warnings

@rmorshea
Copy link
Contributor

I wonder whether this would be fixed if you set pytest==3.3 here since it seems like its during the installation of extras for traitlets that we're encountering this error.

@rmorshea rmorshea requested a review from minrk March 29, 2019 14:20
this was accidentially published before, we can't un-publish it now since that's a breakage
but publish with a deprecation warning
@minrk
Copy link
Member

minrk commented Mar 29, 2019

This now gets the tests passing, except for what are actual failing traittypes tests due to a breaking change in traitlets, in our handling of Undefined. This is open on traittypes as jupyter-widgets/traittypes#33 since it seems like what they are doing doesn't make a lot of sense, and I'm a little surprised it works in stable traitlets.

@minrk
Copy link
Member

minrk commented Mar 29, 2019

Thanks for the PR!

@minrk minrk merged commit 8b20889 into ipython:master Mar 29, 2019
@martinRenou martinRenou deleted the fix_build branch March 29, 2019 16:00
@martinRenou
Copy link
Contributor Author

Sure! I also noticed the tests are using deprecated stuff:
DeprecationWarning: on_trait_change is deprecated in traitlets 4.1: use observe instead

@minrk
Copy link
Member

minrk commented Apr 1, 2019

Yeah, the tests verify that deprecated APIs still work, we shouldn't stop testing them. We could suppress the warnings, though.

@Carreau Carreau added this to the 5.0 milestone Jun 4, 2020
@Carreau Carreau added 5.0-re-review Need to re-review for potential API impact changes. 5.0-major Major change in 5.0 need proper documentation labels Jun 4, 2020
@Carreau Carreau removed the 5.0-re-review Need to re-review for potential API impact changes. label Jun 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
5.0-major Major change in 5.0 need proper documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants