-
Notifications
You must be signed in to change notification settings - Fork 3
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
Showing
10 changed files
with
105 additions
and
107 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
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,19 @@ | ||
test: | ||
imports: | ||
- thermoextrap | ||
commands: | ||
- pip check | ||
requires: | ||
- pip | ||
|
||
about: | ||
home: https://github.com/usnistgov/thermoextrap | ||
summary: Thermodynamic extrapolation | ||
description: | | ||
A package to perform thermodynamic extrapolation of molecular simulations. | ||
license: NIST-PD | ||
license_file: LICENSE | ||
|
||
extra: | ||
recipe-maintainers: | ||
- wpk-nist-gov |
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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -8,7 +8,7 @@ authors = [ | |
{ name = "Jacob Monroe", email = "[email protected]" }, | ||
{ name = "William Krekelberg", email = "[email protected]" } | ||
] | ||
license = { text = '"NIST license https://www.nist.gov/director/licensing"' } | ||
license = { text = "NIST-PD" } | ||
description = "Thermodynamic extrapolation" | ||
# if using markdown | ||
# long_description_content_type = text/markdown | ||
|
@@ -60,16 +60,16 @@ test = ["pytest"] | |
|
||
# dev = [] | ||
# docs = [] | ||
## Defer this to setup.cfg | ||
## Will transition when everything works (grayskull in particular) | ||
## and will remove setup.py | ||
# [tool.setuptools] | ||
# zip-safe = true # if using mypy, must be False | ||
# include-package-data = true | ||
# license-files = ["LICENSE"] | ||
# [tool.setuptools.packages.find] | ||
# namespaces = true | ||
# where = ["src"] | ||
## grayskull still messes some things up, but use scripts/recipe-append.sh for this | ||
[tool.setuptools] | ||
zip-safe = true # if using mypy, must be False | ||
include-package-data = true | ||
license-files = ["LICENSE"] | ||
|
||
[tool.setuptools.packages.find] | ||
namespaces = true | ||
where = ["src"] | ||
|
||
## include = [] | ||
## exclude = [] | ||
## | ||
|
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 |
---|---|---|
@@ -1,21 +1,32 @@ | ||
|
||
project_name?=thermoextrap | ||
sdist_path?=$(project_name) | ||
|
||
.PHONY: help clean-recipe clean-build recipe build command | ||
.PHONY: help clean-recipe clean-build grayskull recipe-append recipe build command | ||
|
||
help: | ||
@echo Makefile for building conda dist | ||
clean-recipe: | ||
rm -rf $(project_name) | ||
rm -rf dist-conda/$(project_name) | ||
|
||
clean-build: | ||
rm -rf build | ||
|
||
recipe: clean-recipe | ||
grayskull pypi $(project_name) && \ | ||
cat $(project_name)/meta.yaml | ||
# by default, only use a few sections | ||
grayskull_args ?= --maintainers wpk-nist-gov --sections package source build requirements | ||
grayskull: clean-recipe | ||
grayskull pypi $(sdist_path) $(grayskull_args) -o dist-conda | ||
|
||
# append the rest | ||
recipe_base_path ?= dist-conda/$(project_name)/meta.yaml | ||
recipe_append_path ?= .recipe-append.yaml | ||
recipe-append: | ||
bash scripts/recipe-append.sh $(recipe_base_path) $(recipe_append_path) | ||
|
||
recipe: grayskull recipe-append | ||
|
||
build: clean-build | ||
conda mambabuild --output-folder=build --no-anaconda-upload . | ||
conda mambabuild --output-folder=dist-conda/build --no-anaconda-upload dist-conda | ||
|
||
command: | ||
$(command) |
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,34 @@ | ||
# This is to fix issues using grayskull with pyproject.toml only projects | ||
# We fall back to using grayskull to create the majority of the recipe | ||
# but add in the final sections | ||
# Edit .recipe-append.yaml | ||
if [ $# -lt 2 ]; then | ||
echo "need recipe_base_path, recipe_append_path" | ||
exit 1 | ||
fi | ||
|
||
base_path=$1 | ||
append_path=$2 | ||
|
||
|
||
if [ ! -f $base_path ]; then | ||
echo "no $base_path" | ||
exit 1 | ||
fi | ||
|
||
if [ ! -f $append_path ]; then | ||
echo "no $append_path" | ||
exit | ||
fi | ||
|
||
|
||
tmp_file=$(mktemp) | ||
cp $base_path $tmp_file | ||
|
||
echo "" >> $tmp_file | ||
|
||
cat $append_path >> $tmp_file | ||
|
||
mv $tmp_file $base_path | ||
|
||
cat $base_path |
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