-
Notifications
You must be signed in to change notification settings - Fork 55
feat: adapt to v1 #79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
null8626
wants to merge
71
commits into
Top-gg-Community:master
Choose a base branch
from
null8626:patch-1
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,310
−1,431
Draft
Changes from 12 commits
Commits
Show all changes
71 commits
Select commit
Hold shift + click to select a range
6db23f6
refactor: remove unused import
null8626 a9f6ee7
meta: update links
null8626 28c56e4
meta: make the min supported ver 3.8
null8626 957af68
fix: python 3.12 support
null8626 3300b50
fix: why does it say 3.1 :skull:
null8626 c2c7a69
fix: migrate from setup.py to pyproject.toml
null8626 ee2ec2e
meta: bump version
null8626 472f69d
ci: support pyproject.toml
null8626 5ee4fec
feat: add python-publish.yml again with PyPI token support
null8626 82187cb
meta: update .gitignore [skip ci]
null8626 f4e83c0
meta: change maintainers
null8626 533295a
doc: trauma
null8626 df9b489
meta: remove duplicated path in .gitignore
null8626 eda566e
meta: update LICENSE
null8626 e146048
*: use ruff, remove need for default_bot_id, deprecate get_bots, make…
null8626 a4ce9f2
fix: let's see if this fixes it
null8626 d4a9123
fix: this should fix it
null8626 d3b48dc
fix: AAAAAAAAAAHHHHHHH
null8626 e7bd0b8
fix: fix bot_id test
null8626 99d8ab7
refactor: collapse if-statement
null8626 b6be4c4
doc: update readme
null8626 d2ae045
doc: documentation overhaul
null8626 99b9bc3
doc: add examples
null8626 8ea8f7a
doc: more redirects and refactor js script
null8626 1ed5505
doc: tweaks
null8626 ad4386b
doc: show monthly downloads
null8626 dd1a277
doc: show up monthly pypi downloads
null8626 cd6380f
doc: use pip, not pip3
null8626 023d63e
meta: update project URLs
null8626 f80bd29
fix: shutdown web.Application on close()
null8626 dcfdaea
fix: initialize __app as None at initialization
null8626 549eb59
meta: bump aiohttp
null8626 47e96f5
refactor: remove unneeded non-base64 removal
null8626 1d3f36d
deps: manually bump aiohttp version to at least version 3.10.5
null8626 404d713
meta: remove unneeded scripts directory as we already have ruff
null8626 5952209
meta: add .ruff_cache to .gitignore
null8626 9f092a3
meta: update keywords
null8626 44cc56c
deps: bump aiohttp dependency version
null8626 06966d5
deps: bump aiohttp version again
null8626 0cecb50
meta: remove obselete comments and update __all__ to use tuples [skip…
null8626 5fa5aaa
refactor: add __slots__
null8626 e6d3f3b
meta: use triple quotes for MIT license comments [skip ci]
null8626 6a4ca42
deps: bump minimum aiohttp version to version 3.10.8
null8626 abe17ca
meta: add support for python 3.13
null8626 e535b62
meta: add python 3.13 classifier
null8626 286a46c
doc: add ~ prefix
null8626 d10e7af
doc: add raw API reference redirect page
null8626 3707ff5
doc: simplify documentation hyperlinks [skip ci]
null8626 af94e5e
refactor: use fromisoformat instead of strptime
null8626 0bf758f
doc: reorder documentation tabs
null8626 803a7a1
fix: remove self.__app's None assignment
null8626 6e0eb06
deps: bump aiohttp version to 3.11.7
null8626 1d6da7d
deps: bump aiohttp dependency to version 3.11.10
null8626 d0c9da0
meta: update secrets name from PYPI_PASSWORD to PYPI_TOKEN
null8626 9952b20
fix: fix iso timestamp for python versions prior to 3.11
null8626 1480955
ci: remove support python 3.8 as it's now EOL
null8626 8ad44a7
ci: rewrite ci [skip ci]
null8626 f93de30
meta: update copyright year
null8626 0a1bbe2
doc: add raw API documentation link and update .readthedocs.yml
null8626 be287fe
ci: install build as well
null8626 ef7aba9
refactor: use time() instead
null8626 bcd414a
refactor: use walrus operator
null8626 e13d619
feat: add deprecation warnings for posting shard-related data
null8626 48e9c97
feat: deprecated shard-related things
null8626 542f220
ci: change pytest exception match
null8626 e88d2a8
feat: deprecate even more legacy API properties
null8626 15d962a
fix: fix tests not working because of guilds list
null8626 48e6055
feat: notify lib of deprecation as well
null8626 4a292d8
doc: add deprecations in whats-new
null8626 053a438
doc: it's BotStatsData [skip ci]
null8626 a078077
doc: update docs [skip ci]
null8626 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
[build-system] | ||
requires = ["setuptools"] | ||
|
||
[project] | ||
name = "topggpy" | ||
version = "2.0.1" | ||
description = "A simple API wrapper for Top.gg written in Python." | ||
readme = "README.rst" | ||
license = { text = "MIT" } | ||
authors = [{ name = "null8626" }, { name = "Top.gg" }] | ||
keywords = ["discord", "bot", "topgg", "top.gg"] | ||
dependencies = ["aiohttp>=3.9.0"] | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"License :: OSI Approved :: MIT License", | ||
"Intended Audience :: Developers", | ||
"Natural Language :: English", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Topic :: Internet", | ||
"Topic :: Software Development :: Libraries", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
"Topic :: Utilities" | ||
] | ||
requires-python = ">=3.8" | ||
|
||
[project.urls] | ||
Homepage = "https://topggpy.readthedocs.io/en/stable/" | ||
Documentation = "https://topggpy.readthedocs.io/en/stable/" | ||
Repository = "https://github.com/top-gg-community/python-sdk" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
sphinx | ||
insegel | ||
sphinxcontrib-napoleon | ||
sphinx-rtd-dark-mode |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
aiohttp>=3.6.0,<3.9.0 | ||
aiohttp>=3.9.0 |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.