Skip to content

Commit f6f0537

Browse files
authored
Merge pull request #18 from nyu-devops/sp25-updates
Updates for Sprint 2025 Semester
2 parents a313a5c + 1615550 commit f6f0537

File tree

13 files changed

+1139
-1475
lines changed

13 files changed

+1139
-1475
lines changed

.devcontainer/Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
# Image for a NYU Lab development environment
2-
FROM rofrano/nyu-devops-base
2+
FROM rofrano/nyu-devops-base:sp25
33

44
# Set up the Python development environment
55
WORKDIR /app
6-
COPY pyproject.toml poetry.lock ./
7-
RUN sudo python -m pip install --upgrade pip poetry && \
8-
sudo poetry config virtualenvs.create false && \
9-
sudo poetry install
6+
COPY Pipfile Pipfile.lock ./
7+
RUN sudo python -m pip install --upgrade pip pipenv && \
8+
sudo pipenv install --system --dev

.devcontainer/devcontainer.json

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,12 @@
99
"vscode": {
1010
"settings": {
1111
"cSpell.words": [
12+
"wsgi",
1213
"sqlalchemy",
1314
"psycopg",
14-
"pytest"
15+
"pytest",
16+
"onupdate",
17+
"testdb"
1518
],
1619
"[python]": {
1720
"editor.defaultFormatter": "ms-python.black-formatter",
@@ -34,28 +37,29 @@
3437
},
3538
"extensions": [
3639
"ms-python.python",
37-
"ms-python.pylint",
3840
"ms-python.vscode-pylance",
41+
"ms-python.pylint",
3942
"ms-python.flake8",
4043
"ms-python.black-formatter",
44+
"njpwerner.autodocstring",
45+
"wholroyd.jinja",
4146
"ms-vscode.makefile-tools",
4247
"yzhang.markdown-all-in-one",
43-
"hnw.vscode-auto-open-markdown-preview",
4448
"davidanson.vscode-markdownlint",
49+
"bierner.github-markdown-preview",
50+
"hnw.vscode-auto-open-markdown-preview",
4551
"bierner.markdown-preview-github-styles",
4652
"tamasfe.even-better-toml",
4753
"donjayamanne.githistory",
4854
"GitHub.vscode-pull-request-github",
49-
"github.vscode-github-actions",
5055
"hbenl.vscode-test-explorer",
5156
"LittleFoxTeam.vscode-python-test-adapter",
52-
"njpwerner.autodocstring",
53-
"wholroyd.jinja",
5457
"redhat.vscode-yaml",
58+
"unjinjang.rest-api-client",
5559
"ms-azuretools.vscode-docker",
56-
"rangav.vscode-thunder-client",
57-
"bbenoist.vagrant",
58-
"streetsidesoftware.code-spell-checker"
60+
"github.vscode-github-actions",
61+
"streetsidesoftware.code-spell-checker",
62+
"bbenoist.vagrant"
5963
]
6064
}
6165
}

.github/workflows/ci.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,10 @@ jobs:
4040
- name: Checkout
4141
uses: actions/checkout@v3
4242

43-
- name: Install dependencies
43+
- name: Install Python package dependencies
4444
run: |
45-
python -m pip install poetry
46-
poetry config virtualenvs.create false
47-
poetry install
45+
python -m pip install -U pip pipenv
46+
pipenv install --system --dev
4847
4948
- name: Linting
5049
run: |

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
.DS_Store
33
Thumbs.db
44

5+
# Pytest
6+
.pytest_cache/
7+
58
# Nose
69
.noseids
710

Makefile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,12 @@ clean: ## Removes all dangling docker images
2020
.PHONY: venv
2121
venv: ## Create a Python virtual environment
2222
$(info Creating Python 3 virtual environment...)
23-
poetry config virtualenvs.in-project true
24-
poetry shell
23+
pipenv shell
2524

2625
.PHONY: install
2726
install: ## Install dependencies
2827
$(info Installing dependencies...)
29-
sudo poetry config virtualenvs.create false
30-
sudo poetry install
28+
pipenv install
3129

3230
.PHONY: lint
3331
lint: ## Run the linter

Pipfile

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
[[source]]
2+
url = "https://pypi.org/simple"
3+
verify_ssl = true
4+
name = "pypi"
5+
6+
[packages]
7+
flask = "==3.1.0"
8+
flask-sqlalchemy = "==3.1.1"
9+
psycopg = {extras = ["binary"], version = "==3.2.4"}
10+
retry2 = "==0.9.5"
11+
python-dotenv = "==1.0.1"
12+
gunicorn = "==23.0.0"
13+
14+
[dev-packages]
15+
honcho = "~=2.0.0"
16+
pylint = "~=3.3.4"
17+
flake8 = "~=7.1.1"
18+
black = "~=25.1.0"
19+
pytest = "~=8.3.4"
20+
pytest-pspec = "~=0.0.4"
21+
pytest-cov = "~=6.0.0"
22+
factory-boy = "~=3.3.3"
23+
coverage = "~=7.6.12"
24+
httpie = "~=3.2.4"
25+
26+
[requires]
27+
python_version = "3.11"

Pipfile.lock

Lines changed: 1033 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ The test cases have 95% test coverage and can be run with `pytest`
4646

4747
## License
4848

49-
Copyright (c) 2016, 2024 [John Rofrano](https://www.linkedin.com/in/JohnRofrano/). All rights reserved.
49+
Copyright (c) 2016, 2025 [John Rofrano](https://www.linkedin.com/in/JohnRofrano/). All rights reserved.
5050

5151
Licensed under the Apache License. See [LICENSE](LICENSE)
5252

poetry.lock

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

pyproject.toml

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

0 commit comments

Comments
 (0)