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

new manage_requirements argument to address issue 273 #274

Merged
merged 2 commits into from
Dec 15, 2015

Conversation

rosenbergj
Copy link

No description provided.

@rosenbergj
Copy link
Author

(My first ever pr; please be gentle...)

@ghoneycutt
Copy link
Member

@rosenbergj thanks for contributing!

@@ -38,6 +38,9 @@
# [*extra_pip_args*]
# Extra arguments to pass to pip after the requirements file
#
# [*manage_requirements*]
Copy link
Member

Choose a reason for hiding this comment

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

This also needs to be documented in the README.md

Copy link
Author

Choose a reason for hiding this comment

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

Fixed.

@rosenbergj rosenbergj force-pushed the issue-273 branch 2 times, most recently from f2d5e72 to 42afd0d Compare December 7, 2015 15:49
@ghoneycutt
Copy link
Member

Looks good. We also need some spec tests - See https://github.com/stankevich/puppet-python/blob/master/spec/defines/requirements_spec.rb

Add a block where you let params set manage_requirements to false and it should test that the file $requirements is not in the catalog

context "/requirements.txt" do
        let (:params) {{ :requirements => "/requirements.txt", :manage_requirements => false }}
        it { is_expected.not_to contain_file("/requirements.txt") }
      end

shivapoudel pushed a commit that referenced this pull request Dec 15, 2015
new manage_requirements argument to address issue 273
@shivapoudel shivapoudel merged commit 0d08d4e into voxpupuli:master Dec 15, 2015
@rosenbergj
Copy link
Author

Thank you!

@rosenbergj rosenbergj deleted the issue-273 branch December 15, 2015 17:18
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