Skip to content

Pipfile support (schema)#4782

Merged
stsewd merged 5 commits into
readthedocs:masterfrom
stsewd:pipfile-schema
Nov 13, 2018
Merged

Pipfile support (schema)#4782
stsewd merged 5 commits into
readthedocs:masterfrom
stsewd:pipfile-schema

Conversation

@stsewd

@stsewd stsewd commented Oct 18, 2018

Copy link
Copy Markdown
Member

Ref #3181

Comment thread readthedocs/rtd_tests/fixtures/spec/v2/schema.yml
Comment thread readthedocs/rtd_tests/fixtures/spec/v2/schema.yml
@stsewd stsewd requested a review from a team October 18, 2018 22:57

@humitos humitos left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm blocking this one because the YAML is important and I want to be sure that I'm understanding the changes proposed here before I approve it.

In particular, the options --skip-lock and --ignore-pipfile are kind of confusing after reading the documentation. Using them together doesn't make too much sense and seems that pipenv should fail.

Comment thread readthedocs/rtd_tests/fixtures/spec/v2/schema.yml
Comment thread readthedocs/rtd_tests/fixtures/spec/v2/schema.yml
Comment thread readthedocs/rtd_tests/tests/test_build_config.py
assertValidConfig(tmpdir, content.format(value=value))


@pytest.mark.parametrize('value', [True, False])

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

True and False shouldn't be true and false since it's a YAML file?

Other tests use true and false, which I think it's correct.

Comment thread readthedocs/rtd_tests/tests/test_build_config.py Outdated
extra_requirements: list(str(), required=False)

python-install-pipfile:
# The path to the project to be installed

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think this should be,

The path to the directory that contains the Pipfile to use

since the project is not going to be installed, but all the dependencies on the Pipfile.

@codecov

codecov Bot commented Oct 23, 2018

Copy link
Copy Markdown

Codecov Report

Merging #4782 into master will increase coverage by 0.1%.
The diff coverage is n/a.

@@            Coverage Diff            @@
##           master    #4782     +/-   ##
=========================================
+ Coverage   76.12%   76.22%   +0.1%     
=========================================
  Files         158      158             
  Lines       10007    10025     +18     
  Branches     1261     1264      +3     
=========================================
+ Hits         7618     7642     +24     
+ Misses       2044     2039      -5     
+ Partials      345      344      -1
Impacted Files Coverage Δ
readthedocs/config/config.py 98.03% <0%> (ø) ⬆️
readthedocs/projects/forms.py 79.38% <0%> (+0.46%) ⬆️
readthedocs/projects/models.py 84.04% <0%> (+1.27%) ⬆️
readthedocs/builds/forms.py 87.87% <0%> (+5.27%) ⬆️

@stsewd

stsewd commented Oct 24, 2018

Copy link
Copy Markdown
Member Author

@agjohnson @humitos this is ready for re-review, I have changed (inverted) the defaults as #4782 (comment)

@agjohnson agjohnson left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Awesome, I think the schema matches how we want to use pipfile by default. I'm excited to get this implemented!

I think this satisfies the all the feedback, so we can unblock this. If @humitos has no other feedback tihs is ready for merge!

@humitos humitos left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Everything looks 👍



def test_python_install_pipfile(tmpdir):
@pytest.mark.parametrize('pipfile', ['another_docs/', '.', 'project/'])

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

💯

@stsewd stsewd merged commit 062b010 into readthedocs:master Nov 13, 2018
@stsewd stsewd deleted the pipfile-schema branch November 13, 2018 17:56
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