-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactoring of project structure (#4)
* Refactoring * Refactoring * gitignore resources folder * Refactoring * README to reflect changes to project structure
- Loading branch information
Showing
14 changed files
with
89 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
[project] | ||
name = "fantaformazionireminder" | ||
version = "0.1.0" | ||
dependencies = [ | ||
"python-dotenv", | ||
"python-telegram-bot[job_queue]>=20.5", | ||
"requests", | ||
] | ||
requires-python = ">=3.11.4" | ||
authors = [{ name = "Matteo Pelliccione", email = "[email protected]" }] | ||
description = "Telegram Bot to remind you of Fantacalcio's line-up" | ||
readme = "README.md" | ||
license = { file = "LICENSE" } | ||
classifiers = ["Programming Language :: Python :: 3.11.4"] | ||
|
||
[build-system] | ||
requires = ["setuptools >= 69.0"] | ||
build-backend = "setuptools.build_meta" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
python-dotenv==1.0.0 | ||
python-telegram-bot[job_queue]==20.5 | ||
requests==2.31.0 | ||
python-dotenv==1.0.1 | ||
python-telegram-bot[job-queue]>=20.5 | ||
requests==2.31.0 |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import os | ||
from typing import Final | ||
|
||
from dotenv import load_dotenv | ||
|
||
# Load .env | ||
load_dotenv() | ||
|
||
|
||
# Values | ||
BASE_RESOURCES_PATH: Final = os.path.join( | ||
os.getcwd(), "src\\fantaformazionireminder\\resources" | ||
) | ||
|
||
TOKEN: Final[str] = os.getenv("TOKEN") | ||
BOT_USERNAME: Final[str] = os.getenv("BOT_USERNAME") | ||
|
||
SAVED_DATES_FILEPATH: Final[str] = os.path.join( | ||
BASE_RESOURCES_PATH, os.getenv("SAVED_DATES_FILEPATH") | ||
) | ||
CHAT_IDS_FILEPATH: Final[str] = os.path.join( | ||
BASE_RESOURCES_PATH, os.getenv("CHAT_IDS_FILEPATH") | ||
) | ||
|
||
SERIE_A_CALENDAR_PATH: Final = os.path.join( | ||
BASE_RESOURCES_PATH, os.getenv("SERIE_A_CALENDAR_PATH") | ||
) | ||
SERIE_A_CALENDAR_URL: Final = os.getenv("SERIE_A_CALENDAR_URL") |
Empty file.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
17 changes: 5 additions & 12 deletions
17
clean_wiki_data.py → ...taformazionireminder/utils/clean_dates.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters