def create_tests(self): utils.create_dir("debian/tests") args = {} args['name'] = self.name args['debian_name'] = self.debian_name control = utils.get_template('tests/control') % args utils.create_debian_file("tests/control", control) require = utils.get_template("tests/require") % args utils.create_debian_file("tests/require", require)
def create_rules(self): args = {} args["overrides"] = "" for filename in os.listdir("."): if filename.lower().startswith("history"): args["overrides"] += "override_dh_installchangelogs:\n" + "\tdh_installchangelogs -k %s\n" % filename break content = utils.get_template("rules") % args utils.create_debian_file("rules", content) os.system("chmod +x debian/rules")
def _get_ITP(self): args = {} args["debian_author"] = self.debian_author args["debian_name"] = self.debian_name args["upstream_author"] = self.upstream_author args["homepage"] = self.homepage args["description"] = self.description args["version"] = self.upstream_version args["license"] = self.upstream_license content = utils.get_template("wnpp") return content % args
def get_ITP(self): args = {} args['debian_author'] = self.debian_author args['debian_name'] = self.debian_name args['upstream_author'] = self.upstream_author args['homepage'] = self.homepage args['description'] = self.description args['version'] = self.upstream_version args['license'] = self.upstream_license content = utils.get_template('wnpp') return content % args
def create_rules(self): args = {} args['overrides'] = '' for filename in _os.listdir('.'): if filename.lower().startswith('history'): args['overrides'] += "override_dh_installchangelogs:\n" + \ "\tdh_installchangelogs -k %s\n" % filename break content = utils.get_template('rules') % args utils.create_debian_file("rules", content) _os.system('chmod +x debian/rules')
def create_control(self): args = {} args["Source"] = self.debian_name args["Uploaders"] = self.debian_author args["debhelper"] = self.debian_debhelper args["Standards-Version"] = self.debian_standards args["Homepage"] = self.homepage args["Vcs-Git"] = "git://anonscm.debian.org/pkg-javascript/%s.git" % self.debian_name args["Vcs-Browser"] = "http://anonscm.debian.org/" + "gitweb/?p=pkg-javascript/%s.git" % self.debian_name args["Package"] = self.debian_name args["Depends"] = self._get_Depends() args["Description"] = self.description args["Description_Long"] = "FIX_ME long description" template = utils.get_template("control") utils.create_debian_file("control", template % args)
def create_control(self): args = {} args['Source'] = self.debian_name args['Uploaders'] = self.debian_author args['debhelper'] = self.debian_debhelper args['Standards-Version'] = self.debian_standards args['Homepage'] = self.homepage args['Vcs-Git'] = 'git://anonscm.debian.org/pkg-javascript/%s.git' \ % self.debian_name args['Vcs-Browser'] = 'http://anonscm.debian.org/' + \ 'gitweb/?p=pkg-javascript/%s.git' \ % self.debian_name args['Package'] = self.debian_name args['Depends'] = self._get_Depends() args['Description'] = self.description args['Description_Long'] = 'FIX_ME long description' template = utils.get_template('control') utils.create_debian_file('control', template % args)
def create_control(self): args = {} args['Source'] = self.debian_name args['Uploaders'] = self.debian_author args['debhelper'] = self.debian_debhelper args['Standards-Version'] = self.debian_standards args['Homepage'] = self.homepage args['Vcs-Git'] = 'https://salsa.debian.org/' + \ 'js-team/%s.git' \ % self.debian_name args['Vcs-Browser'] = 'https://salsa.debian.org/' + \ 'js-team/%s' \ % self.debian_name args['Package'] = self.debian_name args['Depends'] = self._get_Depends() args['Description'] = 'FIX_ME write the Debian package description' args['upstream_description'] = self.upstream_description template = utils.get_template('control') utils.create_debian_file('control', template % args)
def create_copyright(self): args = {} args["upstream_name"] = self.name args["source"] = self.homepage args["upstream_date"] = self.date.year args["upstream_author"] = self.upstream_author args["upstream_contact"] = self.upstream_author if "bugs" in self.json and "url" in self.json["bugs"]: args["upstream_contact"] = self.json["bugs"]["url"] args["upstream_license_name"] = self.upstream_license if self.debian_license and self.upstream_license != self.debian_license: args["upstream_license"] = "\nLicense: %s" % utils.get_license(self.upstream_license) else: args["upstream_license"] = "" # do not insert same license twice args["debian_date"] = self.date.year args["debian_author"] = self.debian_author args["debian_license_name"] = self.debian_license args["debian_license"] = "License: %s" % utils.get_license(self.debian_license) template = utils.get_template("copyright") utils.create_debian_file("copyright", template % args)
def create_copyright(self): args = {} args['upstream_name'] = self.name args['source'] = self.homepage args['upstream_date'] = self.date.year args['upstream_author'] = self.upstream_author args['upstream_contact'] = self.upstream_author if 'bugs' in self.json and 'url' in self.json['bugs']: args['upstream_contact'] = self.json['bugs']['url'] args['upstream_license_name'] = self.upstream_license if self.debian_license and \ self.upstream_license != self.debian_license: args['upstream_license'] = "\nLicense: %s" % \ utils.get_license(self.upstream_license) else: args['upstream_license'] = '' # do not insert same license twice args['debian_date'] = self.date.year args['debian_author'] = self.debian_author args['debian_license_name'] = self.debian_license args['debian_license'] = "License: %s" % \ utils.get_license(self.debian_license) template = utils.get_template('copyright') utils.create_debian_file('copyright', template % args)