Skip to content

Conversation

@blueyed
Copy link
Contributor

@blueyed blueyed commented Jun 1, 2019

No description provided.

@blueyed blueyed force-pushed the lxml-optional-tests branch from cbd088b to b0dc4bd Compare June 1, 2019 20:30
@blueyed
Copy link
Contributor Author

blueyed commented Jun 1, 2019

Now it appears to fail because of py38 itself: https://travis-ci.org/python/mypy/jobs/540209205#L357

@blueyed
Copy link
Contributor Author

blueyed commented Jun 1, 2019

Mostly/only:

DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def"

But still at least one related to lxml:

AttributeError: module 'lxml.etree' has no attribute 'Element'

(https://travis-ci.org/python/mypy/jobs/540193652#L635)

Copy link
Member

@emmatyping emmatyping left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be best not to install lxml on 3.8 for the time being and add it back latter, so we can keep running some tests.

@blueyed
Copy link
Contributor Author

blueyed commented Jun 3, 2019

I think it would be best not to install lxml on 3.8 for the time being

Sounds good - just noticed that it was pinned to an older version, trying an upgrade there first.

We should not be catching SystemError.

👍 reverted

@blueyed blueyed force-pushed the lxml-optional-tests branch from fcee3cd to 06da1cc Compare June 3, 2019 07:17
@blueyed
Copy link
Contributor Author

blueyed commented Jun 3, 2019

Ok, also broken with lxml==4.3.3.
Disabled now, and rebased to include 580e0e4.

@blueyed
Copy link
Contributor Author

blueyed commented Jun 3, 2019

Needs more skipping...

What to do about the following?

DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def"

@blueyed
Copy link
Contributor Author

blueyed commented Jun 3, 2019

FWIW, locally typed-ast fails to build for me (current cpython master), so that might be a next issue here then maybe also.

Shouldn't be used according to https://github.com/python/typed_ast#python-38 anyway?!

setup.py Outdated
cmdclass=cmdclass,
# When changing this, also update test-requirements.txt.
install_requires=['typed-ast >= 1.3.5, < 1.4.0; python_version < "3.8"',
install_requires=['typed-ast >= 1.3.5, < 1.4.0',
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if that does not make sense though in general?
Even when assuming that it gets used with --python-version / for versions before py38, it could still be an optional dependency then, being checked during runtime?!

@emmatyping
Copy link
Member

Looks like you had a bad rebase or something?

@blueyed
Copy link
Contributor Author

blueyed commented Jun 3, 2019

Looks like you had a bad rebase or something?

Confused by running only a single job? (see the TEMP commits)

@msullivan
Copy link
Collaborator

python/typed_ast#119 should fix compilation on 3.8, then we'll do a typed-ast release. No way around requiring typed_ast, I think. (We could make python2 support optional but I don't like that idea.)

@blueyed
Copy link
Contributor Author

blueyed commented Jun 5, 2019

@msullivan
Thanks, will update this after #6937 then.

What should we do about the DeprecationWarnings?

@blueyed blueyed force-pushed the lxml-optional-tests branch from 551ae6b to 02d2d27 Compare June 8, 2019 14:47
@msullivan
Copy link
Collaborator

we've reenabled 3.8 without trouble a while ago

@msullivan msullivan closed this Jan 16, 2020
@blueyed blueyed deleted the lxml-optional-tests branch January 16, 2020 00:02
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

Successfully merging this pull request may close these issues.

3 participants