Sha256: 03f56aa63efaf2ac027396cd8fb030c8fa96bd08d0f9e528016053a78581347e

Contents?: true

Size: 811 Bytes

Versions: 10

Compression:

Stored size: 811 Bytes

Contents

module Shipit
  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
        if egg?
          [%(<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)]
        end
      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
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
shipit-engine-0.27.1 app/models/shipit/deploy_spec/pypi_discovery.rb
shipit-engine-0.27.0 app/models/shipit/deploy_spec/pypi_discovery.rb
shipit-engine-0.26.0 app/models/shipit/deploy_spec/pypi_discovery.rb
shipit-engine-0.25.1 app/models/shipit/deploy_spec/pypi_discovery.rb
shipit-engine-0.25.0 app/models/shipit/deploy_spec/pypi_discovery.rb
shipit-engine-0.24.0 app/models/shipit/deploy_spec/pypi_discovery.rb
shipit-engine-0.23.1 app/models/shipit/deploy_spec/pypi_discovery.rb
shipit-engine-0.23.0 app/models/shipit/deploy_spec/pypi_discovery.rb
shipit-engine-0.22.0 app/models/shipit/deploy_spec/pypi_discovery.rb
shipit-engine-0.21.0 app/models/shipit/deploy_spec/pypi_discovery.rb