Sha256: 3b065b31e45faf4b1e5d328de340dccfa9e2f4e37c61ee7acb1f887a272877fc

Contents?: true

Size: 717 Bytes

Versions: 22

Compression:

Stored size: 717 Bytes

Contents

class DeploySpec
  module PypiDiscovery
    def discover_deploy_steps
      discover_pypi || super
    end

    def discover_pypi
      publish_egg if egg?
    end

    def discover_review_checklist
      discover_pypi_checklist || super
    end

    def discover_pypi_checklist
      [%(<strong>Don't forget to add a tag before deploying!</strong> You can do this with:
        git tag -a -m "Version <strong>x.y.z</strong>" v<strong>x.y.z</strong> && git push --tags)] if egg?
    end

    def egg?
      setup_dot_py.exist?
    end

    def setup_dot_py
      file('setup.py')
    end

    def publish_egg
      ["assert-egg-version-tag #{setup_dot_py}", 'python setup.py register sdist upload']
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
shipit-engine-0.5.2 app/models/deploy_spec/pypi_discovery.rb
shipit-engine-0.5.1 app/models/deploy_spec/pypi_discovery.rb
shipit-engine-0.5.0 app/models/deploy_spec/pypi_discovery.rb
shipit-engine-0.4.10 app/models/deploy_spec/pypi_discovery.rb
shipit-engine-0.4.9 app/models/deploy_spec/pypi_discovery.rb
shipit-engine-0.4.8 app/models/deploy_spec/pypi_discovery.rb
shipit-engine-0.4.7 app/models/deploy_spec/pypi_discovery.rb
shipit-engine-0.4.6 app/models/deploy_spec/pypi_discovery.rb
shipit-engine-0.4.5 app/models/deploy_spec/pypi_discovery.rb
shipit-engine-0.4.4 app/models/deploy_spec/pypi_discovery.rb
shipit-engine-0.4.3 app/models/deploy_spec/pypi_discovery.rb
shipit-engine-0.4.2 app/models/deploy_spec/pypi_discovery.rb
shipit-engine-0.4.1 app/models/deploy_spec/pypi_discovery.rb
shipit-engine-0.4.0 app/models/deploy_spec/pypi_discovery.rb
shipit-engine-0.3.1 app/models/deploy_spec/pypi_discovery.rb
shipit-engine-0.3.0 app/models/deploy_spec/pypi_discovery.rb
shipit-engine-0.2.3 app/models/deploy_spec/pypi_discovery.rb
shipit-engine-0.2.2 app/models/deploy_spec/pypi_discovery.rb
shipit-engine-0.2.1 app/models/deploy_spec/pypi_discovery.rb
shipit-engine-0.2.0 app/models/deploy_spec/pypi_discovery.rb