Skip to content

Relax ruamel.yaml dependency and support python 3.7#189

Merged
mr-c merged 24 commits intocommon-workflow-language:masterfrom
wtsi-hgi:relax_ruamel_yaml_dependancy
Jul 17, 2018
Merged

Relax ruamel.yaml dependency and support python 3.7#189
mr-c merged 24 commits intocommon-workflow-language:masterfrom
wtsi-hgi:relax_ruamel_yaml_dependancy

Conversation

@ThomasHickman
Copy link
Member

ruamel.yaml<0.15.37 fails to install with python >= 3.7, as this works with ruamel.yaml>0.15, we should allow that to happen. See common-workflow-language/cwltool#822

`ruamel.yaml<0.15.37` fails to install with python >= 3.7, as this works with `ruamel.yaml>0.15`, we should allow that to happen.
@ThomasHickman ThomasHickman changed the title Relax ruamel.yaml dependancy Relax ruamel.yaml dependency Jul 16, 2018
Copy link
Member

@mr-c mr-c left a comment

Choose a reason for hiding this comment

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

Thanks! Can you add in the appropriate TravisCI and Appveyor, and setup.py classifiers changes too?

https://github.com/common-workflow-language/schema_salad/pull/189/files#diff-2eeaed663bd0d25b7e608891384b7298L68

.travis.yml Outdated
- 3.4
- 3.5
- 3.6
- 3.7
Copy link
Contributor

Choose a reason for hiding this comment

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

This will fail, travis support for 3.7 requires some effort: 3.7 only works on xenial with sudo enabled; and 3.4 only works on trusty, see travis-ci/travis-ci#9815

Example: https://github.com/jdufresne/psycopg2/blob/a8b9c9971ea18d7581a8aba8cb3b5f336b33672b/.travis.yml

setup.py Outdated
'setuptools',
'requests >= 1.0',
'ruamel.yaml >= 0.12.4, < 0.15',
'ruamel.yaml >= 0.12.4',
Copy link
Member

Choose a reason for hiding this comment

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

How about changing that to < 0.16 in case there's another new version? (ruamel.yaml seems to be treating the minor version as if it were the major version...)

@ThomasHickman
Copy link
Member Author

ThomasHickman commented Jul 16, 2018

Could someone with a windows machine debug the windows failures? I'm having difficulty debugging it on a windows virtual machine.

@mr-c
Copy link
Member

mr-c commented Jul 17, 2018

I'm working on the appveyor side, something isn't right with TravisCI:

Worker information
hostname: b84634ea-8282-4f0c-9139-2f6555ef76f0@1.production-2-worker-org-03-packet.packet-ewr1.travisci.net
version: v3.10.1 https://github.com/travis-ci/worker/tree/2f4923494b1f57289a2d4b68a0861e882a7215ad
instance: a316c4c travisci/ci-garnet:packer-1512502276-986baf0 (via amqp)
startup: 892.754443ms
/home/travis/.travis/job_stages: line 521: syntax error in conditional expression
/home/travis/.travis/job_stages: line 521: syntax error near `"xenial"]/bin/activate'
/home/travis/.travis/job_stages: line 521: `if [[ ! -f ~/virtualenv/python[:dist, "xenial"]/bin/activate ]]; then'
travis_run_configure: command not found
travis_run_prepare: command not found
travis_run_disable_sudo: command not found
travis_run_checkout: command not found
travis_run_export: command not found
travis_run_setup: command not found
travis_run_setup_casher: command not found
travis_run_setup_cache: command not found
travis_run_announce: command not found
travis_run_debug: command not found
travis_run_before_install: command not found
travis_run_install: command not found
travis_run_before_script: command not found
travis_run_script: command not found
travis_run_before_cache: command not found
travis_run_cache: command not found
travis_run_after_success: command not found
travis_run_after_failure: command not found
travis_run_after_script: command not found
travis_run_finish: command not found
Done. Your build exited with .

https://travis-ci.org/common-workflow-language/schema_salad/jobs/404748729

@ThomasHickman
Copy link
Member Author

Ah, that must be due to me using

python:
  - 2.7
  - 3.4
  - 3.5
  - 3.6
  - python: 3.7
    dist: xenial
    sudo: true

to specify the python versions. I hoped it would work correctly, but instead it seems to have triggered a bug in travis (reported at https://travis-ci.org/common-workflow-language/schema_salad/jobs/404748729#L1)

@ThomasHickman ThomasHickman changed the title Relax ruamel.yaml dependency Relax ruamel.yaml dependency and support python 3.7 Jul 17, 2018
@ThomasHickman
Copy link
Member Author

^ I think you can get python 3.4 tested by using

  include:
    - stage: test
      python: "2.7"
    - stage: test
      python: "3.4"
    - stage: test
      python: "3.5"
    - stage: test
      python: "3.6"
    - stage: test
      python: "3.7"
      dist: xenial
      sudo: required
    - stage: release-test
      script: RELEASE_SKIP=head PYVER= ./release-test.sh

@mr-c mr-c merged commit fd7d964 into common-workflow-language:master Jul 17, 2018
@mr-c
Copy link
Member

mr-c commented Jul 17, 2018

@ThomasHickman You are welcome to iterate on that in another PR 😭

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.

4 participants