raineszm / rubypython

Rubypython is no longer being maintained. Apologies for any inconvenience this might cause.
Other
9 stars 9 forks source link

Consider using a live gemspec #2

Closed postmodern closed 12 years ago

postmodern commented 12 years ago

I tried building rubypython from hg source, but the gemspec which Hoe generated was out of date (particularly gem.files). Consider using a live gemspec which calls hg manifest to list the files. Here is one such gemspec generated by Ore.

# -*- encoding: utf-8 -*-

require File.expand_path('../lib/rubypython/version', __FILE__)

Gem::Specification.new do |gem|
  gem.name          = "rubypython"
  gem.version       = RubyPython::VERSION
  gem.summary       = %q{RubyPython is a bridge between the Ruby and Python interpreters}
  gem.description   = %q{
RubyPython is a bridge between the Ruby and Python interpreters. It embeds a
running Python interpreter in the Ruby application's process using FFI and
provides a means for wrapping, converting, and calling Python objects and
methods.

RubyPython uses FFI to marshal the data between the Ruby and Python VMs and
make Python calls. You can:

* Inherit from Python classes.
* Configure callbacks from Python.
* Run Python generators (on Ruby 1.9.2 or later).
                      }.strip
  gem.license       = "MIT"
  gem.authors       = ['Steeve Morin', 'Austin Ziegler', 'Zach Raines']
  gem.email         = [
                        'swiuzzz+rubypython@gmail.com',
                        'austin@rubyforge.org',
                        'raineszm+rubypython@gmail.com'
                      ]
  gem.homepage      = 'http://raineszm.bitbucket.org/rubypython/'

  gem.files         = `hg manifest`.split($/)
  gem.executables   = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
  gem.test_files    = gem.files.grep(%r{^(test|spec|features)/})
  gem.require_paths = ['lib']

  gem.requirements = 'Python >= 2.4'

  gem.add_dependency 'ffi', '~> 1.0.7'
  gem.add_dependency 'blankslate', '>= 2.1.2.3'

  gem.add_development_dependency 'rspec', '~> 2.0'
  gem.add_development_dependency 'tilt', '~> 1.0'
end
raineszm commented 12 years ago

Hoe shouldn't actually leave a gemspec sitting around. For some reason there was an old gemspec from before we used Hoe still in the source. It built fine with Hoe last time I tried. Try building it again?

postmodern commented 12 years ago

OK it worked after installing hoe and rubyforge. Although, it's most easier to build the gem using gem build.