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

Test against Python 3.7 and support pytest 4.x #130

Closed
wants to merge 14 commits into from

Conversation

jcfr
Copy link
Contributor

@jcfr jcfr commented Mar 5, 2019

This PR adds support for Python 3.7 and will be updated to address #100, #110, #92 , #125

@bmoscon bmoscon requested review from bmoscon, javefang and eeaston and removed request for bmoscon and javefang March 5, 2019 20:08
@jcfr jcfr force-pushed the support-python3.7-and-pytest-4.x branch from 43e6ce8 to 175271e Compare March 5, 2019 21:23
@jcfr
Copy link
Contributor Author

jcfr commented Mar 5, 2019

For reference, setting COVERALLS_REPO_TOKEN is required to use coveralls python client or to submit coverage results using curl. Failing to do so reports Couldn't find a repository matching this job.
See lemurheavy/coveralls-public#487 and https://github.com/z4r/python-coveralls#configuration

@jcfr jcfr force-pushed the support-python3.7-and-pytest-4.x branch from fe428b2 to f91b893 Compare March 5, 2019 22:53
@bmoscon bmoscon requested a review from javefang March 6, 2019 17:46
The current implementation needs to be refactored to support the latest
release of rethinkdb-python package. See man-group#132
@jcfr jcfr force-pushed the support-python3.7-and-pytest-4.x branch 2 times, most recently from 654d32f to cc04b79 Compare March 7, 2019 06:57
@jcfr jcfr force-pushed the support-python3.7-and-pytest-4.x branch from cc04b79 to deded3b Compare March 7, 2019 07:07
jcfr added 7 commits March 7, 2019 02:21
This commit fixes the following error:

  >           root_uri.append(request.getfuncargvalue('pyramid_server').uri)
  E           RemovedInPytest4Warning: getfuncargvalue is deprecated, use getfixturevalue

  pytest_webdriver.py:62: RemovedInPytest4Warning

See man-group#100
…cture

This commit fixes tests failing with pytest > 4.0.0
…= 4.1.0

This commit updates tests to support version of pytest with
pytest-dev/pytest@e9b2475e2 (Display actual test ids in `--collect-only`)
Wheel is currently considered the standard for built and binary
packaging for Python

See https://packaging.python.org/discussions/wheel-vs-egg/

See man-group#125
@jcfr
Copy link
Contributor Author

jcfr commented Mar 8, 2019

@bmoscon @eeaston @javefang This is now ready for final review.

It addresses issues #125 #122 #110 and #100

After getting your feedback, I will also:

  • update CHANGES.md
  • update the install_all target in the Makefile so that python 3.7 is also installed in Vagrantfile

Once, this is done it would be great to cut a release and have all the wheels uploaded to pypi. This will all me to fix testing associated with cmake-python-distributions, ninja-python-distributions and scikit-build

Cc: @thewtex

@bmoscon
Copy link
Collaborator

bmoscon commented Mar 8, 2019

@eeaston @javefang looks good to me, but given the size and scope of the change I'd like to have another review before merging

@jcfr
Copy link
Contributor Author

jcfr commented Mar 9, 2019

Et voila. The last two updates have been pushed. Now looking forward final reviews.

In the mean time and waiting new official wheels are released, temporary ones are available at https://github.com/jcfr/pytest-plugins/releases/tag/v1.7.0.dev15

They can be installed using:

pip install pytest-virtualenv -f https://github.com/jcfr/pytest-plugins/releases/tag/v1.7.0.dev15 --pre

@javefang
Copy link
Contributor

LGTM, thanks for the contribution!
@eeaston , I tested the branch against pytest==3.1.0 which is also a pass.

@ssbarnea
Copy link

When can have this merged as now I went into conflicts caused by:

pytest-verbose-parametrize 1.5.1 has requirement pytest<4.0.0, but you have pytest 4.3.1.

@jcfr
Copy link
Contributor Author

jcfr commented Mar 13, 2019

@ssbarnea As a temporary workaround, you could install corresponding development wheels. See #130 (comment)

@ssbarnea
Copy link

@jcfr Thanks for the hint but I will have to pass. I would not be able to do this even if the pre-release would be on posted on pypi as we have a policy of not using unreleased dependencies (not a real surproise).

For the moment I added a <4.0.0 on pytest with a comment blaming pytest-verbose-parametrize as being the reason.

@bmoscon
Copy link
Collaborator

bmoscon commented Mar 19, 2019

@eeaston this ok to merge? I'll probably squash and merge it soon unless you want to review/comment

@jcfr
Copy link
Contributor Author

jcfr commented Mar 20, 2019

'll probably squash and merge it soon unless you want to review/comment

For convenience, here is a squashed version of that same topic:

#134

@eeaston
Copy link
Collaborator

eeaston commented Mar 20, 2019

Hi guys apologies for the tardy replies.
@jcfr - amazing PR, many thanks for the hard work, I'll start going through it.

@eeaston
Copy link
Collaborator

eeaston commented Mar 20, 2019

LGTM, many thanks! I'll approve the squashed PR #134

@jcfr
Copy link
Contributor Author

jcfr commented Mar 20, 2019

I'll approve the squashed PR #134

Closing this one.

@jcfr jcfr closed this Mar 20, 2019
@jcfr jcfr deleted the support-python3.7-and-pytest-4.x branch March 20, 2019 18:22
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.

5 participants