Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Install
run: |
python -m pip install -r requirements-dev.txt
python setup.py install
run: python -m pip install .[dev]
- name: Test with pytest
run: pytest
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ dist/
/.idea/
__pycache__
.coverage
.pytest_cache/
3 changes: 0 additions & 3 deletions .isort.cfg

This file was deleted.

3 changes: 1 addition & 2 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@ build:
python:
version: 3.8
install:
- requirements: requirements.txt
- requirements: requirements-docs.txt
- requirements: docs/requirements.txt
21 changes: 18 additions & 3 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
include LICENSE
include requirements.txt
include README.rst
prune .github
prune .pytest_cache
prune .ruff_cache
prune build
prune docs
prune examples
prune scripts
prune tests

exclude .coverage
exclude .gitignore
exclude .readthedocs.yml
exclude ISSUE_TEMPLATE.md
exclude mypy.ini
exclude PULL_REQUEST_TEMPLATE.md
exclude pytest.ini
exclude ruff.toml
exclude LICENSE
2 changes: 2 additions & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
sphinx>=8.2.3
insegel>=1.3.1
38 changes: 38 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
[build-system]
requires = ["setuptools"]

[project]
name = "topggpy"
version = "3.0.0"
description = "A community-maintained Python API Client for the Top.gg API."
readme = "README.md"
license = { text = "MIT" }
authors = [{ name = "null8626" }, { name = "Top.gg" }]
keywords = ["discord", "discord-bot", "topgg"]
dependencies = ["aiohttp>=3.12.15"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Internet",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Utilities"
]
requires-python = ">=3.9"

[project.optional-dependencies]
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"]

[project.urls]
Documentation = "https://topggpy.readthedocs.io/en/latest/"
"Raw API Documentation" = "https://docs.top.gg/docs/"
Repository = "https://github.com/top-gg-community/python-sdk"
"Support server" = "https://discord.gg/dbl"
13 changes: 0 additions & 13 deletions requirements-dev.txt

This file was deleted.

2 changes: 0 additions & 2 deletions requirements-docs.txt

This file was deleted.

1 change: 0 additions & 1 deletion requirements.txt

This file was deleted.

10 changes: 10 additions & 0 deletions ruff.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
indent-width = 4

[format]
docstring-code-format = true
docstring-code-line-length = 88
line-ending = "lf"
quote-style = "double"

[lint]
ignore = ["E402"]
64 changes: 0 additions & 64 deletions setup.py

This file was deleted.

Empty file removed topgg/py.typed
Empty file.