mirror of
https://github.com/deesiigneer/pyspapi.git
synced 2026-04-20 12:35:26 +00:00
Compare commits
6 Commits
v3-(asynci
...
3.1.2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c086954c25 | ||
|
|
8d60472b9a | ||
|
|
14166cf519 | ||
|
|
ab60b4f104 | ||
|
|
b738db3252 | ||
| 18c1ff1daf |
@@ -1,8 +1,10 @@
|
|||||||
from .spworlds import *
|
from .spworlds import *
|
||||||
|
from .types import *
|
||||||
|
from .api import *
|
||||||
|
|
||||||
|
|
||||||
__author__ = 'deesiigneer'
|
__author__ = 'deesiigneer'
|
||||||
__url__ = 'https://github.com/deesiigneer/pyspapi'
|
__url__ = 'https://github.com/deesiigneer/pyspapi'
|
||||||
__description__ = 'API wrapper for SP servers written in Python.'
|
__description__ = 'API wrapper for SP servers written in Python.'
|
||||||
__license__ = 'MIT'
|
__license__ = 'MIT'
|
||||||
__version__ = "3.1.0"
|
__version__ = "3.1.2"
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ class SPAPI(APISession):
|
|||||||
:return: Объект Account, представляющий аккаунт текущего пользователя.
|
:return: Объект Account, представляющий аккаунт текущего пользователя.
|
||||||
:rtype: Account
|
:rtype: Account
|
||||||
"""
|
"""
|
||||||
me = await self.__get('account/me')
|
me = await self.__get('accounts/me')
|
||||||
return Account(
|
return Account(
|
||||||
account_id=me['id'],
|
account_id=me['id'],
|
||||||
username=me['username'],
|
username=me['username'],
|
||||||
|
|||||||
9
setup.py
9
setup.py
@@ -1,6 +1,6 @@
|
|||||||
import re
|
import re
|
||||||
|
|
||||||
from setuptools import setup
|
from setuptools import setup, find_packages
|
||||||
|
|
||||||
requirements = []
|
requirements = []
|
||||||
with open("requirements.txt") as f:
|
with open("requirements.txt") as f:
|
||||||
@@ -21,10 +21,6 @@ readme = ""
|
|||||||
with open("README.rst") as f:
|
with open("README.rst") as f:
|
||||||
readme = f.read()
|
readme = f.read()
|
||||||
|
|
||||||
packages = [
|
|
||||||
"pyspapi"
|
|
||||||
]
|
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='pyspapi',
|
name='pyspapi',
|
||||||
license='MIT',
|
license='MIT',
|
||||||
@@ -39,7 +35,8 @@ setup(
|
|||||||
description='API wrapper for SP servers written in Python',
|
description='API wrapper for SP servers written in Python',
|
||||||
long_description=readme,
|
long_description=readme,
|
||||||
long_description_content_type='text/x-rst',
|
long_description_content_type='text/x-rst',
|
||||||
packages=packages,
|
packages=find_packages(),
|
||||||
|
package_data={'pyspapi': ['types/*', 'api/*']}, # Включаем дополнительные файлы и папки
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
install_requires=requirements,
|
install_requires=requirements,
|
||||||
python_requires='>=3.8.0',
|
python_requires='>=3.8.0',
|
||||||
|
|||||||
Reference in New Issue
Block a user