Skip to content

Commit aa5907b

Browse files
authored
Merge pull request Top-gg-Community#86 from null8626/split/pyproject
meta: migrate to pyproject.toml
2 parents 488db49 + 7464848 commit aa5907b

File tree

13 files changed

+71
-91
lines changed

13 files changed

+71
-91
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ jobs:
1717
with:
1818
python-version: ${{ matrix.python-version }}
1919
- name: Install
20-
run: |
21-
python -m pip install -r requirements-dev.txt
22-
python setup.py install
20+
run: python -m pip install .[dev]
2321
- name: Test with pytest
2422
run: pytest

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ dist/
99
/.idea/
1010
__pycache__
1111
.coverage
12+
.pytest_cache/

.isort.cfg

Lines changed: 0 additions & 3 deletions
This file was deleted.

.readthedocs.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,4 @@ build:
99
python:
1010
version: 3.8
1111
install:
12-
- requirements: requirements.txt
13-
- requirements: requirements-docs.txt
12+
- requirements: docs/requirements.txt

MANIFEST.in

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1-
include LICENSE
2-
include requirements.txt
3-
include README.rst
1+
prune .github
2+
prune .pytest_cache
3+
prune .ruff_cache
4+
prune build
5+
prune docs
6+
prune examples
7+
prune scripts
8+
prune tests
9+
10+
exclude .coverage
11+
exclude .gitignore
12+
exclude .readthedocs.yml
13+
exclude ISSUE_TEMPLATE.md
14+
exclude mypy.ini
15+
exclude PULL_REQUEST_TEMPLATE.md
16+
exclude pytest.ini
17+
exclude ruff.toml
18+
exclude LICENSE

docs/requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
sphinx>=8.2.3
2+
insegel>=1.3.1

pyproject.toml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
[build-system]
2+
requires = ["setuptools"]
3+
4+
[project]
5+
name = "topggpy"
6+
version = "3.0.0"
7+
description = "A community-maintained Python API Client for the Top.gg API."
8+
readme = "README.md"
9+
license = { text = "MIT" }
10+
authors = [{ name = "null8626" }, { name = "Top.gg" }]
11+
keywords = ["discord", "discord-bot", "topgg"]
12+
dependencies = ["aiohttp>=3.12.15"]
13+
classifiers = [
14+
"Development Status :: 5 - Production/Stable",
15+
"Intended Audience :: Developers",
16+
"Natural Language :: English",
17+
"Operating System :: OS Independent",
18+
"Programming Language :: Python :: 3 :: Only",
19+
"Programming Language :: Python :: 3.9",
20+
"Programming Language :: Python :: 3.10",
21+
"Programming Language :: Python :: 3.11",
22+
"Programming Language :: Python :: 3.12",
23+
"Programming Language :: Python :: 3.13",
24+
"Topic :: Internet",
25+
"Topic :: Software Development :: Libraries",
26+
"Topic :: Software Development :: Libraries :: Python Modules",
27+
"Topic :: Utilities"
28+
]
29+
requires-python = ">=3.9"
30+
31+
[project.optional-dependencies]
32+
dev = ["mock>=5.2.0", "pytest>=8.4.2", "pytest-asyncio>=1.2.0", "pytest-mock>=3.15.0", "pytest-cov>=7.0.0", "ruff>=0.13.0"]
33+
34+
[project.urls]
35+
Documentation = "https://topggpy.readthedocs.io/en/latest/"
36+
"Raw API Documentation" = "https://docs.top.gg/docs/"
37+
Repository = "https://github.com/top-gg-community/python-sdk"
38+
"Support server" = "https://discord.gg/dbl"

requirements-dev.txt

Lines changed: 0 additions & 13 deletions
This file was deleted.

requirements-docs.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.

requirements.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)