Skip to content

Commit 562e7d7

Browse files
committed
Replace setup.py with pyproject.toml
1 parent ca78c26 commit 562e7d7

File tree

4 files changed

+62
-76
lines changed

4 files changed

+62
-76
lines changed

alexflipnote/__init__.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1+
"""An easy to use Python Wrapper for the AlexFlipnote API"""
2+
13
from .client import *
24
from .models import *
35
from .errors import *
46
from .enums import *
57

6-
__version__ = "4.3.0a"
8+
__version__ = "4.0.2"
79
__author__ = "Soheab"
810
__license__ = "MPL-2.0"
911
__description__ = "An easy to use Python Wrapper for the AlexFlipnote API"

pyproject.toml

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
[build-system]
2+
requires = ["setuptools>=61.0.0", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "alexflipnote.py"
7+
authors = [{ name = "Soheab_" }]
8+
requires-python = ">=3.8"
9+
keywords = [
10+
"alexflipnote",
11+
"discord",
12+
"api",
13+
"wrapper",
14+
"discord.py",
15+
]
16+
license = { file = "LICENSE" }
17+
dependencies = ["aiohttp>=3.7.0,<4.0.0"]
18+
dynamic = ["version", "readme", "description"]
19+
classifiers = [
20+
"Development Status :: 5 - Production/Stable",
21+
"Natural Language :: English",
22+
"Typing :: Typed",
23+
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
24+
"Programming Language :: Python :: 3 :: Only",
25+
"Programming Language :: Python :: 3.8",
26+
"Programming Language :: Python :: 3.9",
27+
"Programming Language :: Python :: 3.10",
28+
"Programming Language :: Python :: 3.11",
29+
]
30+
31+
[tool.setuptools]
32+
packages = ["alexflipnote", "alexflipnote.models", "alexflipnote._types"]
33+
34+
[project.urls]
35+
homepage = "https://github.com/Soheab/alexflipnote.py"
36+
documentation = "https://github.com/Soheab/alexflipnote.py/blob/master/start-docs.md"
37+
repository = "https://github.com/Soheab/alexflipnote.py"
38+
discord = "https://discord.gg/yCzcfju"
39+
40+
[tool.setuptools.dynamic]
41+
version = { attr = "alexflipnote.__version__" }
42+
description = { file = "alexflipnote" }
43+
readme = { file = ["README.md"], content-type = "text/markdown" }
44+
45+
[tool.pyright]
46+
include = ["alexflipnote", "alexflipnote.models", "alexflipnote._types"]
47+
exclude = ["**/__pycache__", "dist",]
48+
reportUnnecessaryTypeIgnoreComment = "warning"
49+
reportUnusedImport = "error"
50+
pythonVersion = "3.8"
51+
typeCheckingMode = "strict"
52+
reportDuplicateImport = "warning"
53+
reportDeprecated = "warning"
54+
55+
[tool.coverage.report]
56+
exclude_lines = ["pragma: no cover", "@overload"]
57+
58+
[tool.black]
59+
line-length = 120

requirements.txt

-1
This file was deleted.

setup.py

-74
This file was deleted.

0 commit comments

Comments
 (0)