lib/dpl/provider/pypi.rb in dpl-1.7.10.travis.694.1 vs lib/dpl/provider/pypi.rb in dpl-1.7.10.travis.699.1
- old
+ new
@@ -63,10 +63,15 @@
end
def push_app
context.shell "python setup.py register -r #{options[:server] || 'pypi'}"
context.shell "python setup.py #{options[:distributions] || 'sdist'} upload -r #{options[:server] || 'pypi'}"
- context.shell "python setup.py upload_docs --upload-dir #{options[:docs_dir] || 'build/docs'}"
+ if options[:docs_dir]
+ docs_dir_option = '--upload-dir ' + options[:docs_dir]
+ else
+ docs_dir_option = ''
+ end
+ context.shell "python setup.py upload_docs #{docs_dir_option}"
end
end
end
end