structables/pyproject.toml
Kumi 85d5c88294
feat: Introduce pyproject.toml for build configuration
Migrated project dependencies and metadata into a newly added `pyproject.toml`, aligning with modern Python packaging practices. Removed `requirements.txt` as dependencies are now specified in the unified project configuration. Restructured the project by moving Python code, static assets, and templates into a `src/structables` directory to encapsulate project components better and facilitate packaging. Moreover, refactor `main.py` to read environment variables earlier, streamline argument parsing, and ensure configurations are correctly applied before the Flask app initialization. This reorganization supports better project scalability, simplifies the build process, and enhances maintainability by consolidating project configurations and dependencies.

Note: The usage of `pyproject.toml` requires tools that support PEP 518 and might necessitate updates to CI/CD pipelines or developer workflows.
2024-05-23 08:06:36 +02:00

31 lines
No EOL
835 B
TOML

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "structables"
version = "0.2.0"
authors = [
{ name="Private.coffee Team", email="support@private.coffee" },
]
description = "A simple frontend for Instructables"
readme = "README.md"
license = { file="LICENSE" }
requires-python = ">=3.10"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU Affero General Public License v3",
"Operating System :: OS Independent",
]
dependencies = [
"flask",
"bs4",
]
[project.scripts]
structables = "structables.main:main"
[project.urls]
"Homepage" = "https://git.private.coffee/privatecoffee/structables"
"Bug Tracker" = "https://git.private.coffee/privatecoffee/structables/issues"
"Source Code" = "https://git.private.coffee/privatecoffee/structables"