Fix single file installer (#308)

This commit is contained in:
Mike Henry
2023-04-17 14:47:52 -07:00
committed by GitHub
parent d008c2bcde
commit daa74cbf60
4 changed files with 76 additions and 111 deletions

View File

@@ -1,11 +0,0 @@
name: constructor
channels:
- defaults
- conda-forge
dependencies:
- conda-build
- conda
- constructor=>3.1
- cookiecutter

View File

@@ -0,0 +1,23 @@
name: OpenFEforge
version: {{ environ["VERSION"] }}
company: OpenFE
license_file: ../../LICENSE
channels:
- conda-forge
write_condarc: True
keep_pkgs: True
transmute_file_type: .conda
specs:
- conda
- gufe=={{ environ["VERSION"] }}
- mamba
- openfe=={{ environ["VERSION"] }}
- pip
- pytest
- python 3.9.*
# Not building an .exe for windows or a .pkg for macOS
installer_type: sh

View File

@@ -1,23 +0,0 @@
import sys
import json
release_tag = sys.argv[1]
python_version = sys.argv[2]
ci_os = sys.argv[3]
platform_mapping = {
"ubuntu-latest": "linux-64",
"macOS-latest": "osx-64",
}
data = {
"name": "openfe",
"channel": "conda-forge",
"python": [python_version],
"platform": [platform_mapping[ci_os]],
"release": release_tag,
}
with open("new_cookiecutter.json", "w") as fp:
json.dump(data, fp)