Skip to content

Commit 178a273

Browse files
Merge branch 'main' into copilot-workspace
2 parents 1534cfb + 77bba8d commit 178a273

File tree

289 files changed

+22944
-1948
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

289 files changed

+22944
-1948
lines changed

LICENSE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

code/controllers/__init__.py

Lines changed: 0 additions & 3 deletions
This file was deleted.

code/models/__init__.py

Lines changed: 0 additions & 2 deletions
This file was deleted.

code/requirements.txt

Lines changed: 0 additions & 57 deletions
This file was deleted.

code/services/__init__.py

Lines changed: 0 additions & 3 deletions
This file was deleted.

code/tests/__init__.py

Lines changed: 0 additions & 3 deletions
This file was deleted.

config/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

scripts/__init.__py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

scripts/foia_manager_setup.ps1

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
<#
2+
.SYNOPSIS
3+
Installs Python 3 dependencies using pip.
4+
.DESCRIPTION
5+
This script checks for Python 3, updates pip, and installs the required dependencies
6+
listed in requirements.txt. It handles potential authentication prompts.
7+
.NOTES
8+
Requires Python 3 to be installed and in the system's PATH.
9+
#>
10+
11+
# Set error action preference to stop on any error
12+
$ErrorActionPreference = "Stop"
13+
14+
# Function to check if a command exists
15+
function Test-CommandExists {
16+
param (
17+
[string]$Command
18+
)
19+
try {
20+
Get-Command $Command -ErrorAction Stop | Out-Null
21+
return $true
22+
}
23+
catch {
24+
return $false
25+
}
26+
}
27+
28+
# Check if Python 3 is installed
29+
if (-not (Test-CommandExists "python3")) {
30+
Write-Error "Python 3 is not installed or not in your PATH. Please install Python 3."
31+
exit 1
32+
}
33+
34+
Write-Host "Python 3 found."
35+
36+
# Check if pip is installed
37+
if (-not (Test-CommandExists "pip3")) {
38+
Write-Error "pip3 is not installed. Please install pip for Python 3."
39+
exit 1
40+
}
41+
42+
Write-Host "pip3 found."
43+
44+
# Update pip
45+
Write-Host "Updating pip..."
46+
try {
47+
python3 -m pip install --upgrade pip
48+
}
49+
catch {
50+
Write-Error "Failed to update pip: $($_.Exception.Message)"
51+
exit 1
52+
}
53+
Write-Host "pip updated successfully."
54+
55+
# Install dependencies from requirements.txt
56+
Write-Host "Installing dependencies from requirements.txt..."
57+
try {
58+
python3 -m pip install -r requirements.txt
59+
}
60+
catch {
61+
Write-Error "Failed to install dependencies: $($_.Exception.Message)"
62+
exit 1
63+
}
64+
65+
Write-Host "Dependencies installed successfully."
66+
Write-Host "Script completed."

scripts/foia_manager_setup.sh

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
#!/bin/bash
2+
#
3+
# Installs Python 3 dependencies using pip.
4+
#
5+
# This script checks for Python 3, updates pip, and installs the required dependencies
6+
# listed in requirements.txt. It handles potential authentication prompts.
7+
#
8+
# Requires Python 3 to be installed and in the system's PATH.
9+
10+
set -e
11+
12+
# Check if Python 3 is installed
13+
if ! command -v python3 &> /dev/null
14+
then
15+
echo "Python 3 is not installed or not in your PATH. Please install Python 3."
16+
exit 1
17+
fi
18+
19+
echo "Python 3 found."
20+
21+
# Check if pip is installed
22+
if ! command -v pip3 &> /dev/null
23+
then
24+
echo "pip3 is not installed. Please install pip for Python 3."
25+
exit 1
26+
fi
27+
28+
echo "pip3 found."
29+
30+
# Update pip
31+
echo "Updating pip..."
32+
python3 -m pip install --upgrade pip
33+
echo "pip updated successfully."
34+
35+
# Install dependencies from requirements.txt
36+
echo "Installing dependencies from requirements.txt..."
37+
python3 -m pip install -r requirements.txt
38+
echo "Dependencies installed successfully."
39+
40+
echo "Script completed."

0 commit comments

Comments
 (0)