Skip to content

Commit

Permalink
feat: 🎸 PEP 621
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhaoQi99 committed Aug 14, 2024
1 parent b6d81c4 commit b701fe3
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 54 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# PageSaver
[![Python version](https://img.shields.io/pypi/pyversions/pagesaver.svg?logo=python)](https://pypi.python.org/pypi/pagesaver)
![Python Version from PEP 621 TOML](https://img.shields.io/python/required-version-toml?tomlFilePath=https%3A%2F%2Fraw.githubusercontent.com%2FZhaoQi99%2FPageSaver%2Fmain%2Fpyproject.toml)
[![PyPI package](https://img.shields.io/pypi/v/pagesaver.svg)](https://pypi.python.org/pypi/pagesaver)
[![PyPI download](https://img.shields.io/pypi/dm/pagesaver.svg)](https://pypi.python.org/pypi/pagesaver)
[![GitHub](https://img.shields.io/github/license/ZhaoQi99/pagesaver)](https://github.com/ZhaoQi99/pagesaver/blob/main/LICENSE)
Expand Down
60 changes: 59 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,62 @@
requires = [
"setuptools >= 42",
]
build-backend = "setuptools.build_meta"
build-backend = "setuptools.build_meta"

[project]
name = "pagesaver"
authors = [{name = "Qi Zhao", email = "[email protected]"}]
classifiers = [
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
]
description = "Archive your web page."
keywords = ["archiving", "web archiving", "playwright", "backup"]
requires-python = ">=3.8"
dependencies = [
"django",
"django-ninja",
"click",
"requests",
"hypercorn",
"playwright",
]
readme = "README.md"
dynamic = ["version"]

[project.urls]
Homepage = "https://github.com/ZhaoQi99/PageSaver"
Changelog = "https://github.com/ZhaoQi99/PageSaver/releases"
Source = "https://github.com/ZhaoQi99/PageSaver"
"Issue Tracker" = "https://github.com/ZhaoQi99/PageSaver/issues"
# "Documentation" = "https://github.com/ZhaoQi99/PageSaver"
# "Trove classifiers" for PyPI (https://pypi.org/classifiers/).

[project.scripts]
pagesaver = "pagesaver.cli:main"

[tool.setuptools]
license-files = ["LICENSE"]
include-package-data = false

[tool.setuptools.dynamic]
version = {attr = "pagesaver.__version__"}

[tool.setuptools.packages.find]
exclude = [
"tests",
"*.tests.*",
]
namespaces = false

[tool.black]
line-length = "88"

[tool.isort]
profile = "black"

[tool.flake8]
max-line-length = "88"
extend-ignore = "E203,E701,E501"
52 changes: 0 additions & 52 deletions setup.cfg

This file was deleted.

0 comments on commit b701fe3

Please sign in to comment.