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

Update Python versions, test on more platforms and fix Travis CI issues #734

Merged
merged 103 commits into from Mar 31, 2020

Conversation

lcorbasson
Copy link
Contributor

@lcorbasson lcorbasson commented Feb 3, 2020

This PR fixes Travis CI issues by:

  • dropping support for Python 3.4 (EOL and unsupported by the current lxml),
  • adding ICU / PyICU to the various Travis CI builds,
  • extending testing to:
    • Python 3.7 and 3.8,
    • various versions of PyPy3,
    • other versions of PyPy2,
    • MacOS X and Windows (but allowing tests to fail there),
  • fixes issues with bad detection of TRAVIS_PYTHON_VERSION and segmentation faults of nosetests on PyPy3,
  • fixes agate.Number().cast(u'👍') (or any other Unicode char) on PyPy3,
  • fixes agate.Table.from_json() on platforms where UTF-8 is not the default encoding (e.g. Travis CI's Windows build, which uses CP1252).

It also ensures files are closed even if an error occurs in:

  • agate.Table.from_csv(),
  • agate.Table.from_fixed(),
  • agate.Table.from_json().

And it takes into account the user's locale when running tests displaying numbers with decimal or grouping separators.

It is meant as a replacement for PR #731 and #732, and fixes #694.

lcorbasson and others added 30 commits January 8, 2020 15:23
…, where TRAVIS_PYTHON_VERSION is not defined)
lcorbasson and others added 28 commits February 5, 2020 19:57
The previous commit was sufficient for PyPy3 and to fix tests.test_py3.TestSniffer.test_sniffer() where csv_py3.Sniffer().sniff(contents).__dict__ on some Python versions where it was empty. This commit tries to fix segfault issues on PyPy by breaking the tests in yet more processes.
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.

Should we ditch pypy?
2 participants