-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0ecb2d4
commit 0e0426b
Showing
1 changed file
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# 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="bw_timex_app/__init__.py", | ||
regex_pattern='(?:.*)__version__ = "(.+)"') %} | ||
{% set version = version_match[1] %} | ||
# conda build --output-folder ./conda-out/ ./conda/ -c conda-forge -c cmutel -c diepers | ||
|
||
package: | ||
name: "optimex" | ||
version: {{ version }} | ||
|
||
about: | ||
summary: "Python Package for Time-Explicit Life Cycle Optimization" | ||
home: "https://github.com/TimoDiepers/optimex" | ||
license: "BSD-3-Clause" | ||
license_family: "BSD" | ||
license_file: "LICENSE" | ||
license_url: "https://github.com/TimoDiepers/optimex/blob/main/LICENSE" | ||
doc_url: "https://optimex.readthedocs.io" | ||
|
||
|
||
requirements: | ||
build: | ||
- python | ||
- setuptools | ||
run: | ||
- dynamic_characterization | ||
- premise | ||
- brightway25 | ||
- tqdm | ||
- pyomo | ||
|
||
|
||
source: | ||
path: .. | ||
|
||
build: | ||
noarch: python | ||
script: | ||
- rm -rf $SRC_DIR/docs | ||
- rm -rf $SRC_DIR/notebooks | ||
- rm -rf $SRC_DIR/dev | ||
- {{ PYTHON }} -m pip install . --no-deps -vv | ||
exclude_files: | ||
- docs/* | ||
- dev/* | ||
- notebooks/* | ||
- archive/* | ||
|
||
files: | ||
include: | ||
- optimex/** |