diff --git a/.idea/CSDiscordBot.iml b/.idea/CSDiscordBot.iml deleted file mode 100644 index 74d515a..0000000 --- a/.idea/CSDiscordBot.iml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml deleted file mode 100644 index 105ce2d..0000000 --- a/.idea/inspectionProfiles/profiles_settings.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml deleted file mode 100644 index 049bce8..0000000 --- a/.idea/misc.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml deleted file mode 100644 index ca20f3b..0000000 --- a/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml deleted file mode 100644 index 94a25f7..0000000 --- a/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/README.md b/README.md index bf4e5b9..f3d64d9 100644 --- a/README.md +++ b/README.md @@ -19,4 +19,20 @@ Accept news for every section of a course rather than just course 001 Assignment storage that takes user input and stores it for later Fill out rss information for most sections Accept math commands +``` + +### Local Dev + +Clone the repo, the run the powershell script `create_env.ps1` + +Make sure to have `git` cli installed + +Open powershell (preferably in administrator mode) +```cmd +.\create_env.ps1 +``` + +Activate the environment at anytime using +```cmd +.\venv\Scripts\activate ``` \ No newline at end of file diff --git a/create_env.ps1 b/create_env.ps1 new file mode 100644 index 0000000..1913547 --- /dev/null +++ b/create_env.ps1 @@ -0,0 +1,29 @@ +# Make sure powershell is allowed to execute scripts +$scope = Get-ExecutionPolicy +if ([string]$scope = "RemoteSigned") { + "All is good." +} else { + try { + Set-ExecutionPolicy RemoteSigned + Get-ExecutionPolicy + } catch { + Set-ExecutionPolicy RemoteSigned -Scope CurrentUser + Get-ExecutionPolicy + } +} + + +# Get the root of the repo +$root = $(git rev-parse --show-toplevel) +cd $root + +# Create the virtual env +python -m venv venv + +# activate it +.\venv\Scripts\activate + +# upgrade pip +python -m pip install --upgrade pip +# install what we need +pip install -r requirements.txt \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..b9a68e1 Binary files /dev/null and b/requirements.txt differ