Class: Travis::CLI::Setup::PyPI
- Defined in:
- lib/travis/cli/setup/pypi.rb
Instance Attribute Summary
Attributes inherited from Service
Instance Method Summary collapse
Methods inherited from Service
description, #initialize, known_as?, #method_missing, normalized_name, service_name
Constructor Details
This class inherits a constructor from Travis::CLI::Setup::Service
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Travis::CLI::Setup::Service
Instance Method Details
#run ⇒ Object
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/travis/cli/setup/pypi.rb', line 11 def run deploy 'pypi', 'release' do |config| config['user'] ||= ask('Username: ').to_s config['password'] ||= ask('Password: ') { |q| q.echo = '*' }.to_s on('release only tagged commits? ', config, 'tags' => true) # the default of pypi `setup.py build` is the `sdist` on('deploy as wheel file too? ', config, 'distributions' => 'sdist bdist_wheel') end end |