Skip to content

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

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

Merged
merged 1 commit into from
Jan 27, 2021

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 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
Copy link
Contributor Author

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.

@methane methane merged commit 02e1f76 into msgpack:master Jan 27, 2021
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