Skip to content
This repository has been archived by the owner on Feb 14, 2025. It is now read-only.

Add dependencies to pyproject.toml #31

Merged
merged 4 commits into from
Feb 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pulumi.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: Install dependencies
run: |
uv venv
uv pip install -r requirements.txt
uv sync
- uses: 'google-github-actions/auth@v2'
with:
credentials_json: '${{ secrets.GOOGLE_CREDENTIALS }}'
Expand Down
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,16 @@

Link to the Telegram Bot: https://t.me/OLEDBlackMeterBot

## Prerequisites
- Python >= 3.12
- [ngrok](https://ngrok.com/download)
- Telegram Bot API token from [BotFather](https://t.me/BotFather)

## Installation

```bash
# Install the necessary packages
pip install -r requirements.txt
uv sync
```

## Run in Local Development
Expand All @@ -25,7 +30,7 @@ NGROK_STATIC_DOMAIN=2655-158-140-141-125.ngrok-free.app # Example
TELEGRAM_BOT_TOKEN=

# Run the server.py
python server.py
uv run server.py
```

Once the above is completed, head over to your Telegram Bot that was setup with [@BotFather](https://t.me/BotFather) and
Expand Down
2 changes: 1 addition & 1 deletion __main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def create_zip(files_to_zip):
return zip_file


zip_path = create_zip(["main.py", "calculator.py", "requirements.txt"])
zip_path = create_zip(["main.py", "calculator.py"])
archive_name = f"{PROJECT_NAME}-function-{TIMESTAMP}.zip"

bucket = gcp.storage.Bucket("bucket", name=f"{PROJECT_NAME}-bucket", location="ASIA")
Expand Down
53 changes: 52 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,55 @@ name = "oled-blackmeter"
version = "0.1.0"
readme = "README.md"
requires-python = ">=3.12"
dependencies = []
dependencies = [
"anyio==4.4.0",
"arpeggio==2.0.2",
"attrs==24.3.0",
"black==24.4.2",
"blinker==1.8.2",
"certifi==2024.7.4",
"cfgv==3.4.0",
"click==8.1.7",
"cloudevents==1.10.1",
"debugpy==1.8.12",
"deprecation==2.1.0",
"dill==0.3.9",
"distlib==0.3.8",
"filelock==3.14.0",
"flask==3.0.3",
"flask-wtf==1.2.1",
"functions-framework==3.7.0",
"grpcio==1.66.2",
"gunicorn==22.0.0",
"h11==0.14.0",
"httpcore==1.0.5",
"httpx==0.27.0",
"identify==2.5.36",
"idna==3.7",
"itsdangerous==2.2.0",
"jinja2==3.1.5",
"markupsafe==2.1.5",
"mypy-extensions==1.0.0",
"nodeenv==1.9.1",
"numpy==1.26.4",
"packaging==24.0",
"parver==0.5",
"pathspec==0.12.1",
"pillow==10.3.0",
"pip==24.3.1",
"platformdirs==4.2.2",
"pre-commit==3.7.1",
"protobuf==4.25.5",
"pulumi==3.146.0",
"pulumi-gcp==8.14.0",
"python-dotenv==1.0.1",
"python-telegram-bot==21.3",
"pyyaml==6.0.2",
"semver==2.13.0",
"six==1.17.0",
"sniffio==1.3.1",
"virtualenv==20.26.6",
"watchdog==4.0.1",
"werkzeug==3.0.6",
"wtforms==3.1.2",
]
50 changes: 0 additions & 50 deletions requirements.txt

This file was deleted.

Loading