Skip to content

Commit

Permalink
feat: add poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
eaguad1337 committed Jul 5, 2024
1 parent 9974ac4 commit 5043854
Show file tree
Hide file tree
Showing 7 changed files with 521 additions and 35 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/pythonapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,13 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
path: ~/test
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python -
echo 'export PATH="$HOME/.local/bin:$PATH"' >> $GITHUB_ENV
- name: Install dependencies
run: |
make init
make ci
- name: Test with pytest
env:
MAIL_HOST: ${{ github.secrets.MAIL_HOST }}
Expand All @@ -27,7 +31,7 @@ jobs:
MAIL_PASSWORD: ${{ github.secrets.MAIL_PASSWORD }}
DB_CONFIG_PATH: tests/integrations/config/database
run: |
make ci
make ci-test
lint:
runs-on: ubuntu-latest
name: Lint
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ src/masonite.egg-info/*
build/
venv4
.python-version
*.whl
*.whl
*.sqlite3
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
init:
cp .env-example .env
pip install --no-cache-dir --upgrade -r requirements.txt
pip install '.[test]'
# Create MySQL Database
# Create Postgres Database
poetry install
test:
python -m pytest tests
ci:
python -m pytest tests -m "not integrations"
cp .env-example .env
poetry install
ci-test:
poetry run python -m pytest tests -m "not integrations"
lint:
python -m flake8 src/masonite/ --ignore=E501,F401,E203,E128,E402,E731,F821,E712,W503,F811
format:
Expand Down
Binary file removed database.sqlite3
Binary file not shown.
502 changes: 501 additions & 1 deletion poetry.lock

Large diffs are not rendered by default.

8 changes: 7 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,15 @@ pyjwt = ">=2.3,<2.5"
pytest = ">=7,<8"
werkzeug = ">=2,<3"
watchdog = ">=2,<3"
multipart = "^0.2.5"
responses = "^0.25.3"
argon2-cffi = "^23.1.0"

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]
pytest = "^7.0.0"
pwnedapi = "^1.0.2"
vonage = "^3.16.0"
slackblocks = "^1.0.10"

[build-system]
requires = ["poetry-core"]
Expand Down
25 changes: 0 additions & 25 deletions requirements.txt

This file was deleted.

0 comments on commit 5043854

Please sign in to comment.