-
Notifications
You must be signed in to change notification settings - Fork 143
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
2 changed files
with
37 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Orchestration file to load environment variables from the `.env` and `.secrets` files. | ||
# Environment variables go here, and can be read in by Python using `os.getenv`: | ||
# | ||
# Only used by systems with `direnv` (https://direnv.net/) installed. Environment | ||
# variables can be read in by Python using `os.getenv` _without_ using `python-dotenv`: | ||
# | ||
# -------------------------------------------------------- | ||
# import os | ||
# | ||
# # Example variable | ||
# EXAMPLE_VARIABLE = os.getenv("EXAMPLE_VARIABLE") | ||
# -------------------------------------------------------- | ||
# | ||
# To ensure the `sed` command below works correctly, make sure all file paths in environment variables are absolute | ||
# (recommended), or are relative paths using other environment variables (works for Python users only). Environment | ||
# variable names are expected to contain letters, numbers or underscores only. | ||
# | ||
# DO NOT STORE SECRETS HERE - this file is version-controlled! You should store secrets in a `.secrets` file, which is | ||
# not version-controlled - this can then be sourced here, using `source_env ".secrets"`. | ||
|
||
# Extract the variables to `.env` if required. Note `.env` is NOT version-controlled, so `.secrets` will not be committed | ||
#sed -n 's/^export \(.*\)$/\1/p' .envrc .secrets | sed -e 's?$(pwd)?'"$(pwd)"'?g' | sed -e 's?$\([a-zA-Z0-9_]\{1,\}\)?${\1}?g' >> .env | ||
|
||
# Add the working directory to `PYTHONPATH`; allows Jupyter notebooks in the `notebooks` folder to import `tsfel` | ||
export PYTHONPATH="$PYTHONPATH:$(pwd)/tsfel" | ||
|
||
# Load the `.env` file | ||
# dotenv .env | ||
|
||
# Import secrets from an untracked file `.secrets` (if it exists) | ||
dotenv_if_exists .secrets | ||
|
||
eval "$(conda shell.bash hook)" | ||
|
||
conda activate python3.11 | ||
source .venv-dev/bin/activate |
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 |
---|---|---|
|
@@ -90,8 +90,7 @@ celerybeat-schedule | |
|
||
# Environments | ||
.env | ||
.venv | ||
.venv-docs | ||
.venv* | ||
env/ | ||
venv/ | ||
ENV/ | ||
|