-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Transition to
pyproject.toml
(#1147)
* replace `setup.py` with `pyproject.toml` * move all Python package requirements to single `requirements.txt` * remove checking Python package requirements in `CMakeLists.txt` * move Python bindings to own dir (python/nmodl), fixes #462 * add separate script for generating docs * add `packaging/change_name.py` script to as workaround to enable both NMODL and NMODL-nightly wheels in CI * update documentation and CI to reflect above changes --------- Co-authored-by: Luc Grosheintz <luc.grosheintz@gmail.com>
- Loading branch information
1 parent
9eef1ed
commit 43ca979
Showing
35 changed files
with
276 additions
and
264 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
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
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
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
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,44 @@ | ||
#!/usr/bin/env bash | ||
|
||
# script for generating documentation for NMODL | ||
|
||
set -eu | ||
|
||
if [ $# -lt 1 ] | ||
then | ||
echo "Usage: $(basename "$0") output_dir [python_exe]" | ||
exit 1 | ||
fi | ||
|
||
# the dir where we put the temporary build and the docs | ||
output_dir="$1" | ||
# path to the Python executable | ||
python_exe="${2:-"$(command -v python3)"}" | ||
|
||
if ! [ -d "${output_dir}" ] | ||
then | ||
mkdir -p "${output_dir}" | ||
fi | ||
|
||
build_dir="build" | ||
docs_dir="docs" | ||
|
||
echo "== Building documentation files in: ${output_dir}/${docs_dir} ==" | ||
echo "== Temporary project build directory is: ${output_dir}/${build_dir} ==" | ||
|
||
venv_name="${output_dir}/env" | ||
${python_exe} -m venv "${venv_name}" | ||
. "${venv_name}/bin/activate" | ||
python_exe="$(command -v python)" | ||
${python_exe} -m pip install -U pip | ||
${python_exe} -m pip install ".[docs]" -C build-dir="${output_dir}/${build_dir}" | ||
|
||
# the abs dir where this script is located (so we can call it from wherever) | ||
script_dir="$(cd "$(dirname "$0")"; pwd -P)" | ||
|
||
cd "${script_dir}" | ||
doxygen Doxyfile | ||
cd - | ||
sphinx-build docs/ "${output_dir}/${docs_dir}" | ||
|
||
deactivate |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.