Skip to content

Commit

Permalink
Generate requirements.txt using poetry.
Browse files Browse the repository at this point in the history
This is required for App Engine.
  • Loading branch information
mrhappyasthma committed Jan 23, 2025
1 parent 0f9f8c2 commit 61a6176
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
*.pyc
old/
env/

# Generated by poetry
requirements.txt
# For Pycharm
.idea
.envrc
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,18 @@ If you want to run bulk queries for stock analysis, check out the [Rule 1 Stock

This repository contains a script to iteratively issue a bulk fetch and populate a MySQL database with the results. It also includes some predefined SQL queries for convenience.

## Install dependencies

### Poetry

On windows:

1. Install `pipx` with `py -m pip install --user pipx`.
2. Go to the path in "WARNING: The script pipx.exe is installed in `<USER folder>\AppData\Roaming\Python\Python3x\Scripts` which is not on "PATH". Once in this path execute: `.\pipx.exe ensurepath`
3. Install poetry with: `pipx install poetry`
4. In the repo path for IsThisStockGood, run `poetry install`
5. Install the `export` command addon: `poetry self add poetry-plugin-export`

## Running the site locally.

1. Clone the repo.
Expand Down
1 change: 1 addition & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/bash

poetry export --without-hashes -f requirements.txt -o requirements.txt
gcloud app deploy app.yaml

0 comments on commit 61a6176

Please sign in to comment.