def setup_sources(self, tempdir, sources): strings, files = separate_sources(sources) log.debug("version: %s", version.intversion()) log.debug( """input sources: strings: %s files: %s """, "\n----\n".join(strings), "\n".join(files), ) allfiles = [] for x in strings: f = tmpfile(x, tempdir, version.sketch_extension()) allfiles += [f] for x in files: x = x.abspath() f = tempdir / x.namebase + version.sketch_extension() if x.parent.name == x.namebase: # copy other files from pde directory for y in x.parent.files(): if y != x: y.copy(tempdir / y.name) # copy pde x.copy(f) allfiles += [f] log.debug(" converted to:\n%s", "\n".join(allfiles)) return allfiles
def setup_sources(self, tempdir, sources): strings, files = separate_sources(sources) log.debug('version: %s', version.intversion()) log.debug('''input sources: strings: %s files: %s ''', '\n----\n'.join(strings), '\n'.join(files)) allfiles = [] for x in strings: f = tmpfile(x, tempdir, version.sketch_extension()) allfiles += [f] for x in files: x = x.abspath() f = tempdir / x.namebase + version.sketch_extension() if x.parent.name == x.namebase: # copy other files from pde directory for y in x.parent.files(): if y != x: y.copy(tempdir / y.name) # copy pde x.copy(f) allfiles += [f] log.debug(' converted to:\n%s', '\n'.join(allfiles)) return allfiles
def test_iver(): eq_(intversion('0022'), 22) eq_(intversion('0023'), 23) eq_(intversion('0001'), 1) eq_(intversion('0022ubuntu0.1'), 22) eq_(intversion('1.0'), 100) eq_(intversion('1.0.3'), 103) eq_(intversion('3.2.1'), 321) eq_(intversion('1:1.0.5+dfsg2-2'), 105)
def test_iver2(): for x in TEST_ARDUINO_INSTALLATIONS: print (x) set_arduino_path(x.path) eq_(intversion(), x.iver)
def test_iver2(): for x in TEST_ARDUINO_INSTALLATIONS: print(x) set_arduino_path(x.path) eq_(intversion(), x.iver)