Loading .git_archival.txtdeleted 100644 → 0 +0 −4 Original line number Diff line number Diff line node: $Format:%H$ node-date: $Format:%cI$ describe-name: $Format:%(describe:tags=true,match=*[0-9]*)$ ref-names: $Format:%D$ No newline at end of file .gitattributesdeleted 100644 → 0 +0 −24 Original line number Diff line number Diff line # For explanation of this file and uses see # https://git-scm.com/docs/gitattributes # https://developer.lsst.io/git/git-lfs.html#using-git-lfs-enabled-repositories # https://lincc-ppt.readthedocs.io/en/latest/practices/git-lfs.html # # Used by https://github.com/lsst/afwdata.git # *.boost filter=lfs diff=lfs merge=lfs -text # *.dat filter=lfs diff=lfs merge=lfs -text # *.fits filter=lfs diff=lfs merge=lfs -text # *.gz filter=lfs diff=lfs merge=lfs -text # # apache parquet files # *.parq filter=lfs diff=lfs merge=lfs -text # # sqlite files # *.sqlite3 filter=lfs diff=lfs merge=lfs -text # # gzip files # *.gz filter=lfs diff=lfs merge=lfs -text # # png image files # *.png filter=lfs diff=lfs merge=lfs -text .git_archival.txt export-subst No newline at end of file .initialize_new_project.shdeleted 100644 → 0 +0 −62 Original line number Diff line number Diff line #!/usr/bin/env bash # Bash Unofficial strict mode (http://redsymbol.net/articles/unofficial-bash-strict-mode/) # and (https://disconnected.systems/blog/another-bash-strict-mode/) set -o nounset # Any uninitialized variable is an error set -o errexit # Exit the script on the failure of any command to execute without error set -o pipefail # Fail command pipelines on the failure of any individual step IFS=$'\n\t' #set internal field separator to avoid iteration errors # Trap all exits and output something helpful trap 's=$?; echo "$0: Error on line "$LINENO": $BASH_COMMAND"; exit $s' ERR echo "Checking virtual environment" if [ "${VIRTUAL_ENV:-missing}" = "missing" ] && [ "${CONDA_PREFIX:-missing}" = "missing" ]; then echo 'No virtual environment detected: none of $VIRTUAL_ENV or $CONDA_PREFIX is set.' echo echo "=== This script is going to install the project in the system python environment ===" echo "Proceed? [y/N]" read -r RESPONCE if [ "${RESPONCE}" != "y" ]; then echo "See https://lincc-ppt.readthedocs.io/ for details." echo "Exiting." exit 1 fi fi echo "Checking pip version" MINIMUM_PIP_VERSION=22 pipversion=( $(python -m pip --version | awk '{print $2}' | sed 's/\./\n\t/g') ) if let "${pipversion[0]}<${MINIMUM_PIP_VERSION}"; then echo "Insufficient version of pip found. Requires at least version ${MINIMUM_PIP_VERSION}." echo "See https://lincc-ppt.readthedocs.io/ for details." exit 1 fi echo "Initializing local git repository" { gitversion=( $(git version | git version | awk '{print $3}' | sed 's/\./\n\t/g') ) if let "${gitversion[0]}<2"; then # manipulate directly git init . && echo 'ref: refs/heads/main' >.git/HEAD elif let "${gitversion[0]}==2 & ${gitversion[1]}<34"; then # rename master to main git init . && { git branch -m master main 2>/dev/null || true; }; else # set the initial branch name to main git init --initial-branch=main >/dev/null fi } > /dev/null echo "Installing package and runtime dependencies in local environment" python -m pip install -e . > /dev/null echo "Installing developer dependencies in local environment" python -m pip install -e .'[dev]' > /dev/null if [ -f docs/requirements.txt ]; then python -m pip install -r docs/requirements.txt; fi echo "Installing pre-commit" pre-commit install > /dev/null echo "Committing initial files" git add . && SKIP="no-commit-to-branch" git commit -m "Initial commit" .setup_dev.shdeleted 100755 → 0 +0 −51 Original line number Diff line number Diff line #!/usr/bin/env bash # Bash Unofficial strict mode (http://redsymbol.net/articles/unofficial-bash-strict-mode/) # and (https://disconnected.systems/blog/another-bash-strict-mode/) set -o nounset # Any uninitialized variable is an error set -o errexit # Exit the script on the failure of any command to execute without error set -o pipefail # Fail command pipelines on the failure of any individual step IFS=$'\n\t' #set internal field separator to avoid iteration errors # Trap all exits and output something helpful trap 's=$?; echo "$0: Error on line "$LINENO": $BASH_COMMAND"; exit $s' ERR # This script should be run by new developers to install this package in # editable mode and configure their local environment echo "Checking virtual environment" if [ "${VIRTUAL_ENV:-missing}" = "missing" ] && [ "${CONDA_PREFIX:-missing}" = "missing" ]; then echo 'No virtual environment detected: none of $VIRTUAL_ENV or $CONDA_PREFIX is set.' echo echo "=== This script is going to install the project in the system python environment ===" echo "Proceed? [y/N]" read -r RESPONCE if [ "${RESPONCE}" != "y" ]; then echo "See https://lincc-ppt.readthedocs.io/ for details." echo "Exiting." exit 1 fi fi echo "Checking pip version" MINIMUM_PIP_VERSION=22 pipversion=( $(python -m pip --version | awk '{print $2}' | sed 's/\./\n\t/g') ) if let "${pipversion[0]}<${MINIMUM_PIP_VERSION}"; then echo "Insufficient version of pip found. Requires at least version ${MINIMUM_PIP_VERSION}." echo "See https://lincc-ppt.readthedocs.io/ for details." exit 1 fi echo "Installing package and runtime dependencies in local environment" python -m pip install -e . > /dev/null echo "Installing developer dependencies in local environment" python -m pip install -e .'[dev]' > /dev/null if [ -f docs/requirements.txt ]; then python -m pip install -r docs/requirements.txt > /dev/null; fi echo "Installing pre-commit" pre-commit install > /dev/null ####################################################### # Include any additional configurations below this line ####################################################### Loading
.git_archival.txtdeleted 100644 → 0 +0 −4 Original line number Diff line number Diff line node: $Format:%H$ node-date: $Format:%cI$ describe-name: $Format:%(describe:tags=true,match=*[0-9]*)$ ref-names: $Format:%D$ No newline at end of file
.gitattributesdeleted 100644 → 0 +0 −24 Original line number Diff line number Diff line # For explanation of this file and uses see # https://git-scm.com/docs/gitattributes # https://developer.lsst.io/git/git-lfs.html#using-git-lfs-enabled-repositories # https://lincc-ppt.readthedocs.io/en/latest/practices/git-lfs.html # # Used by https://github.com/lsst/afwdata.git # *.boost filter=lfs diff=lfs merge=lfs -text # *.dat filter=lfs diff=lfs merge=lfs -text # *.fits filter=lfs diff=lfs merge=lfs -text # *.gz filter=lfs diff=lfs merge=lfs -text # # apache parquet files # *.parq filter=lfs diff=lfs merge=lfs -text # # sqlite files # *.sqlite3 filter=lfs diff=lfs merge=lfs -text # # gzip files # *.gz filter=lfs diff=lfs merge=lfs -text # # png image files # *.png filter=lfs diff=lfs merge=lfs -text .git_archival.txt export-subst No newline at end of file
.initialize_new_project.shdeleted 100644 → 0 +0 −62 Original line number Diff line number Diff line #!/usr/bin/env bash # Bash Unofficial strict mode (http://redsymbol.net/articles/unofficial-bash-strict-mode/) # and (https://disconnected.systems/blog/another-bash-strict-mode/) set -o nounset # Any uninitialized variable is an error set -o errexit # Exit the script on the failure of any command to execute without error set -o pipefail # Fail command pipelines on the failure of any individual step IFS=$'\n\t' #set internal field separator to avoid iteration errors # Trap all exits and output something helpful trap 's=$?; echo "$0: Error on line "$LINENO": $BASH_COMMAND"; exit $s' ERR echo "Checking virtual environment" if [ "${VIRTUAL_ENV:-missing}" = "missing" ] && [ "${CONDA_PREFIX:-missing}" = "missing" ]; then echo 'No virtual environment detected: none of $VIRTUAL_ENV or $CONDA_PREFIX is set.' echo echo "=== This script is going to install the project in the system python environment ===" echo "Proceed? [y/N]" read -r RESPONCE if [ "${RESPONCE}" != "y" ]; then echo "See https://lincc-ppt.readthedocs.io/ for details." echo "Exiting." exit 1 fi fi echo "Checking pip version" MINIMUM_PIP_VERSION=22 pipversion=( $(python -m pip --version | awk '{print $2}' | sed 's/\./\n\t/g') ) if let "${pipversion[0]}<${MINIMUM_PIP_VERSION}"; then echo "Insufficient version of pip found. Requires at least version ${MINIMUM_PIP_VERSION}." echo "See https://lincc-ppt.readthedocs.io/ for details." exit 1 fi echo "Initializing local git repository" { gitversion=( $(git version | git version | awk '{print $3}' | sed 's/\./\n\t/g') ) if let "${gitversion[0]}<2"; then # manipulate directly git init . && echo 'ref: refs/heads/main' >.git/HEAD elif let "${gitversion[0]}==2 & ${gitversion[1]}<34"; then # rename master to main git init . && { git branch -m master main 2>/dev/null || true; }; else # set the initial branch name to main git init --initial-branch=main >/dev/null fi } > /dev/null echo "Installing package and runtime dependencies in local environment" python -m pip install -e . > /dev/null echo "Installing developer dependencies in local environment" python -m pip install -e .'[dev]' > /dev/null if [ -f docs/requirements.txt ]; then python -m pip install -r docs/requirements.txt; fi echo "Installing pre-commit" pre-commit install > /dev/null echo "Committing initial files" git add . && SKIP="no-commit-to-branch" git commit -m "Initial commit"
.setup_dev.shdeleted 100755 → 0 +0 −51 Original line number Diff line number Diff line #!/usr/bin/env bash # Bash Unofficial strict mode (http://redsymbol.net/articles/unofficial-bash-strict-mode/) # and (https://disconnected.systems/blog/another-bash-strict-mode/) set -o nounset # Any uninitialized variable is an error set -o errexit # Exit the script on the failure of any command to execute without error set -o pipefail # Fail command pipelines on the failure of any individual step IFS=$'\n\t' #set internal field separator to avoid iteration errors # Trap all exits and output something helpful trap 's=$?; echo "$0: Error on line "$LINENO": $BASH_COMMAND"; exit $s' ERR # This script should be run by new developers to install this package in # editable mode and configure their local environment echo "Checking virtual environment" if [ "${VIRTUAL_ENV:-missing}" = "missing" ] && [ "${CONDA_PREFIX:-missing}" = "missing" ]; then echo 'No virtual environment detected: none of $VIRTUAL_ENV or $CONDA_PREFIX is set.' echo echo "=== This script is going to install the project in the system python environment ===" echo "Proceed? [y/N]" read -r RESPONCE if [ "${RESPONCE}" != "y" ]; then echo "See https://lincc-ppt.readthedocs.io/ for details." echo "Exiting." exit 1 fi fi echo "Checking pip version" MINIMUM_PIP_VERSION=22 pipversion=( $(python -m pip --version | awk '{print $2}' | sed 's/\./\n\t/g') ) if let "${pipversion[0]}<${MINIMUM_PIP_VERSION}"; then echo "Insufficient version of pip found. Requires at least version ${MINIMUM_PIP_VERSION}." echo "See https://lincc-ppt.readthedocs.io/ for details." exit 1 fi echo "Installing package and runtime dependencies in local environment" python -m pip install -e . > /dev/null echo "Installing developer dependencies in local environment" python -m pip install -e .'[dev]' > /dev/null if [ -f docs/requirements.txt ]; then python -m pip install -r docs/requirements.txt > /dev/null; fi echo "Installing pre-commit" pre-commit install > /dev/null ####################################################### # Include any additional configurations below this line #######################################################