Skip to content

Commit

Permalink
Merge branch 'issue-29' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
tngTUDOR committed Mar 18, 2024
2 parents 0e293ad + 52268ff commit 8609720
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 15 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2014, Chris Mutel and ETH Zürich
Copyright (c) 2024, Chris Mutel and ETH Zürich
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 0 additions & 2 deletions conda.recipe-legacy/bld.bat

This file was deleted.

1 change: 0 additions & 1 deletion conda.recipe-legacy/build.sh

This file was deleted.

16 changes: 12 additions & 4 deletions conda.recipe-legacy/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# The regex used is a bit different from original documenation:
# https://docs.conda.io/projects/conda-build/en/latest/resources/define-metadata.html#loading-data-from-other-files
# Originald documentation implies that the __init__.py only has one line with __version__
{% set version_match = load_file_regex(load_file="bw2ui/__init__.py",
regex_pattern='(?:.*)__version__ = "(.+)"') %}
{% set version = version_match[1] %}


package:
name: bw2ui
version: {{ GIT_DESCRIBE_TAG }}
version: {{ version }}

source:
git_url: ../
Expand All @@ -9,7 +17,6 @@ requirements:
build:
- python
- setuptools
- setuptools_scm
run:
- python >=3.6
- brightway2
Expand All @@ -24,13 +31,14 @@ requirements:
- genson

about:
home: https://bitbucket.org/tomas_navarrete/brightway2-ui
home: https://github.com/brightway-lca/brightway2-ui
license: BSD
license_file: LICENSE.txt
license_file: LICENSE

build:
entry_points:
- bw2-browser = bw2ui.bin.bw2_browser:main
- bw2-web = bw2ui.bin.bw2_web:main

noarch: python
script: {{ PYTHON }} -m pip install --no-deps --no-build-isolation . -vv
2 changes: 0 additions & 2 deletions conda.recipe/bld.bat

This file was deleted.

1 change: 0 additions & 1 deletion conda.recipe/build.sh

This file was deleted.

16 changes: 12 additions & 4 deletions conda.recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# The regex used is a bit different from original documenation:
# https://docs.conda.io/projects/conda-build/en/latest/resources/define-metadata.html#loading-data-from-other-files
# Originald documentation implies that the __init__.py only has one line with __version__
{% set version_match = load_file_regex(load_file="bw2ui/__init__.py",
regex_pattern='(?:.*)__version__ = "(.+)"') %}
{% set version = version_match[1] %}


package:
name: bw25ui
version: {{ GIT_DESCRIBE_TAG }}
version: {{ version }}

source:
git_url: ../
Expand All @@ -9,7 +17,6 @@ requirements:
build:
- python
- setuptools
- setuptools_scm
run:
- python >=3.6
- brightway25
Expand All @@ -24,13 +31,14 @@ requirements:
- genson

about:
home: https://bitbucket.org/tomas_navarrete/brightway2-ui
home: https://github.com/brightway-lca/brightway2-ui
license: BSD
license_file: LICENSE.txt
license_file: LICENSE

build:
entry_points:
- bw2-browser = bw2ui.bin.bw2_browser:main
- bw2-web = bw2ui.bin.bw2_web:main

noarch: python
script: {{ PYTHON }} -m pip install --no-deps --no-build-isolation . -vv
5 changes: 5 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
"""boilerplate necessary to build conda packages."""

from setuptools import setup

setup()

0 comments on commit 8609720

Please sign in to comment.