mirror of
https://github.com/OpenFreeEnergy/openfe.git
synced 2026-06-04 14:14:22 +08:00
Fix single file installer (#308)
This commit is contained in:
@@ -1,11 +0,0 @@
|
||||
name: constructor
|
||||
|
||||
channels:
|
||||
- defaults
|
||||
- conda-forge
|
||||
|
||||
dependencies:
|
||||
- conda-build
|
||||
- conda
|
||||
- constructor=>3.1
|
||||
- cookiecutter
|
||||
23
devtools/installer/construct.yaml
Normal file
23
devtools/installer/construct.yaml
Normal 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
|
||||
@@ -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)
|
||||
Reference in New Issue
Block a user