summaryrefslogtreecommitdiff
BranchCommit messageAuthorAge
debian-debianremove REUSE from test dependenciesWojtek Kosior2 years
debian-upstreamNew upstream version 1.1~beta1Wojtek Kosior2 years
koszkoonly block 'requests' library for tests if it is presentWojtek Kosior2 years
masteronly block 'requests' library for tests if it is presentWojtek Kosior2 years
 
TagDownloadAuthorAge
upstream/1.1_beta1hydrilla-builder-upstream/1.1_beta1.tar.gz  hydrilla-builder-upstream/1.1_beta1.zip  Wojtek Kosior2 years
v1.1-beta1hydrilla-builder-1.1-beta1.tar.gz  hydrilla-builder-1.1-beta1.zip  Wojtek Kosior2 years
upstream/1.0hydrilla-builder-upstream/1.0.tar.gz  hydrilla-builder-upstream/1.0.zip  Wojtek Kosior3 years
v1.0hydrilla-builder-1.0.tar.gz  hydrilla-builder-1.0.zip  Wojtek Kosior3 years
v1.0-beta2hydrilla-builder-1.0-beta2.tar.gz  hydrilla-builder-1.0-beta2.zip  Wojtek Kosior3 years
v1.0-beta1hydrilla-builder-1.0-beta1.tar.gz  hydrilla-builder-1.0-beta1.zip  Wojtek Kosior3 years
'payloads': dict((p, resource_ref) for p in patterns) }, { **common_definition_fields, 'type': 'resource', 'revision': 1, 'dependencies': [], 'scripts': [{'file': 'script.js'}] }] } with tempfile.TemporaryDirectory() as tmpdir_str: tmpdir = Path(tmpdir_str) source_dir = tmpdir / 'src' source_dir.mkdir() malcontent_dir = tmpdir / 'malcontent' malcontent_dir.mkdir() license_text = get_as_str('license_text') if license_text: package_index_json['copyright'] = [{'file': 'COPYING'}] (source_dir / 'COPYING').write_text(license_text) (source_dir / 'script.js').write_text(get_as_str('script_text')) (source_dir / 'index.json').write_text(json.dumps(package_index_json)) try: builder_args = ['-s', str(source_dir), '-d', str(malcontent_dir)] build.perform(builder_args, standalone_mode=False) _app.get_haketilo_state().import_items(malcontent_dir) except: import traceback traceback.print_exc() return items_import({'invalid_ad_hoc_package': True}) return flask.redirect(flask.url_for('items.packages')) @bp.route('/import', methods=['POST']) def items_import_post() -> werkzeug.Response: action = flask.request.form['action'] if action == 'import_from_file': return items_import_from_file() elif action == 'import_ad_hoc': return item_import_ad_hoc() else: raise ValueError()