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

build: Create tox environments using a known Cython version #408

Open
wants to merge 1 commit into
base: master
from

Conversation

@moreati
Copy link
Contributor

@moreati moreati commented Feb 13, 2020

This change causes Tox to run the project's setup.py in a virtualenv
(default path is .tox/.package). The required version of Cython is
installed, rather than whatever version is installed system wide. I
found that this eliminated test suite failures under CPython 3.8, that
were due to me having a version of Cython that was too old to generate a
compatible _cmsgpack.cpp.

isolated_build was released in Tox 3.3.0, released 2018-09-11.

e.g.

± tox -r
.package create: /home/alex/src/msgpack-python/.tox/.package
.package installdeps: setuptools >= 35.0.2, Cython~=0.29.13, pytest
py27-pure recreate: /home/alex/src/msgpack-python/.tox/py27-pure
py27-pure installdeps: pytest
py27-pure inst:
/home/alex/src/msgpack-python/.tox/.tmp/package/1/msgpack-1.0.0rc1.tar.gz
...
py27-x86 create: /home/alex/src/msgpack-python/.tox/py27-x86
ERROR: InterpreterNotFound: python2.7-x86
py34-x86 create: /home/alex/src/msgpack-python/.tox/py34-x86
ERROR: InterpreterNotFound: python3.4-x86
_________________________________________ summary
_________________________________________
  py27-pure: commands succeeded
  py35-c: commands succeeded
  py35-pure: commands succeeded
  py36-c: commands succeeded
  py36-pure: commands succeeded
  py37-c: commands succeeded
  py37-pure: commands succeeded
  py38-c: commands succeeded
  py38-pure: commands succeeded
  pypy-pure: commands succeeded
  pypy3-pure: commands succeeded
ERROR:  py27-x86: InterpreterNotFound: python2.7-x86
ERROR:  py34-x86: InterpreterNotFound: python3.4-x86
@codecov-io
Copy link

@codecov-io codecov-io commented Feb 13, 2020

Codecov Report

Merging #408 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #408   +/-   ##
=======================================
  Coverage   88.06%   88.06%           
=======================================
  Files           5        5           
  Lines         846      846           
=======================================
  Hits          745      745           
  Misses        101      101
Impacted Files Coverage Δ
msgpack/fallback.py 88.95% <0%> (ø) ⬆️
msgpack/ext.py 85.18% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fcb19a0...0814a1c. Read the comment docs.

This change causes Tox to run the project's setup.py in a virtualenv
(default path is .tox/.package). The required version of Cython is
installed, rather than whatever version is installed system wide. I
found that this eliminated test suite failures under CPython 3.8, that
were due to me having a version of Cython that was too old to generate a
compatible _cmsgpack.cpp.

isolated_build was released in Tox 3.3.0, released 2018-09-11.

e.g.

± tox -r
.package create: /home/alex/src/msgpack-python/.tox/.package
.package installdeps: setuptools >= 35.0.2, Cython~=0.29.13, pytest
py27-pure recreate: /home/alex/src/msgpack-python/.tox/py27-pure
py27-pure installdeps: pytest
py27-pure inst:
/home/alex/src/msgpack-python/.tox/.tmp/package/1/msgpack-1.0.0rc1.tar.gz
...
py27-x86 create: /home/alex/src/msgpack-python/.tox/py27-x86
ERROR: InterpreterNotFound: python2.7-x86
py34-x86 create: /home/alex/src/msgpack-python/.tox/py34-x86
ERROR: InterpreterNotFound: python3.4-x86
_________________________________________ summary
_________________________________________
  py27-pure: commands succeeded
  py35-c: commands succeeded
  py35-pure: commands succeeded
  py36-c: commands succeeded
  py36-pure: commands succeeded
  py37-c: commands succeeded
  py37-pure: commands succeeded
  py38-c: commands succeeded
  py38-pure: commands succeeded
  pypy-pure: commands succeeded
  pypy3-pure: commands succeeded
ERROR:  py27-x86: InterpreterNotFound: python2.7-x86
ERROR:  py34-x86: InterpreterNotFound: python3.4-x86
@moreati moreati force-pushed the moreati:tox-isolated-build branch from 070dc11 to 0814a1c Feb 14, 2020
@moreati
Copy link
Contributor Author

@moreati moreati commented Feb 15, 2020

This PR was slightly speculative on my part. Please feel free to reject it for any reason, or no reason - no hurt feelings. If you're unsure about anything, or you'd like a fuller explanation of what it does please let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.