Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Declare implicit dependency on Six 1.9 or higher#301

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
gsnedders merged 1 commit intohtml5lib:masterfromamorde:master
Oct 27, 2016
Merged

Declare implicit dependency on Six 1.9 or higher#301

gsnedders merged 1 commit intohtml5lib:masterfromamorde:master
Oct 27, 2016

Conversation

amorde
Copy link
Contributor

@amordeamorde commentedSep 15, 2016
edited
Loading

This project uses a syntax for importing urllib.parse from six which was introduced in Six version 1.4

The import can be foundhere

The relevant change in Six can be foundhere

This can cause an issue if a project has a previous version of Six (say version 1.3) installed when installing html5lib

EDIT:
importingviewkeys in html5parser.py requires six 1.9

@jayvdb
Copy link
Contributor

I need this for#294.

@jayvdb
Copy link
Contributor

It would be nice to have a test job that explicitly requires and uses six 1.4 , so that newer features are not inadvertently used without upgrading the requirement.

@amorde
Copy link
ContributorAuthor

@jayvdb That sounds like a great idea, I'm not really sure how to go about doing that though.

@jayvdb
Copy link
Contributor

You could add a job with

 env:   - USE_OPTIONAL=true   - USE_OPTIONAL=false+  - USE_SIX_14=true

And then inrequirements-install.sh look for that flag and force install 1.4 (and if anything upgrades it to a more recent version, fix it).

@amorde
Copy link
ContributorAuthor

@jayvdb It appears the minimum required version is actually1.9. Good call on the testing thing.

I'll squash these commits and do a force push

@amordeamorde changed the titleDeclare implicit dependency on Six 1.4 or higherDeclare implicit dependency on Six 1.9 or higherSep 26, 2016
@jayvdb
Copy link
Contributor

In addition to the Travis errors described in#298, you are introducing many additional Travis jobs per build. This problem only requires one additional job.

Copy link
Contributor

@jayvdbjayvdb left a comment

Choose a reason for hiding this comment

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

Unnecessary jobs created.

Copy link
Contributor

@jayvdbjayvdb left a comment

Choose a reason for hiding this comment

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

The commits probably need squashing.

@@ -16,6 +16,7 @@ cache:
env:
- USE_OPTIONAL=true
- USE_OPTIONAL=false
- USE_SIX_LOWEST_VERSION=1.9 USE_OPTIONAL=true
Copy link
Contributor

Choose a reason for hiding this comment

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

USE_SIX_LOWEST_VERSION is very long. Could be shorter.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Changed toSIX_VERSION

@gsneddersgsnedders mentioned this pull requestOct 6, 2016
@amorde
Copy link
ContributorAuthor

Hey@jayvdb, any updates on this?

@jayvdb
Copy link
Contributor

@amorde , I am not a committer here. I can only do code review, which I have done.
I am also waiting for this to be reviewed/merged so that I can complete#294. ;-)

@amorde
Copy link
ContributorAuthor

@jayvdb gotcha, haha sorry for the mixup!

@gsnedders
Copy link
Member

Thanks for the reviewing,@jayvdb! :)

Ultimately, we should almost certainly declare (and test) minimum required versions for all our dependencies.

@gsneddersgsnedders merged commitff6111c intohtml5lib:masterOct 27, 2016
@davidreaddavidread mentioned this pull requestMar 8, 2017
@gsneddersgsnedders mentioned this pull requestNov 28, 2017
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@jayvdbjayvdbjayvdb approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@amorde@jayvdb@gsnedders

[8]ページ先頭

©2009-2025 Movatter.jp