Change package layout

This commit is contained in:
kokarare1212
2021-09-13 06:47:53 +09:00
parent dee69a9ee5
commit dc41f749bf
4 changed files with 7 additions and 8 deletions

View File

@@ -1,3 +1,4 @@
from __future__ import annotations
from librespot.proto.Keyexchange_pb2 import BuildInfo, Platform, Product, ProductFlags from librespot.proto.Keyexchange_pb2 import BuildInfo, Platform, Product, ProductFlags
import platform import platform
@@ -28,4 +29,4 @@ class Version:
return BuildInfo(product=Product.PRODUCT_CLIENT, return BuildInfo(product=Product.PRODUCT_CLIENT,
product_flags=[ProductFlags.PRODUCT_FLAG_NONE], product_flags=[ProductFlags.PRODUCT_FLAG_NONE],
platform=Version.platform(), platform=Version.platform(),
version=112800721) version=112800721)

View File

@@ -1,12 +1,9 @@
from __future__ import annotations from __future__ import annotations
import urllib.parse
from Cryptodome import Random from Cryptodome import Random
from Cryptodome.Hash import HMAC, SHA1 from Cryptodome.Hash import HMAC, SHA1
from Cryptodome.PublicKey import RSA from Cryptodome.PublicKey import RSA
from Cryptodome.Signature import PKCS1_v1_5 from Cryptodome.Signature import PKCS1_v1_5
from librespot import util from librespot import util, Version
from librespot.audio import AudioKeyManager, CdnManager, PlayableContentFeeder from librespot.audio import AudioKeyManager, CdnManager, PlayableContentFeeder
from librespot.audio.storage import ChannelManager from librespot.audio.storage import ChannelManager
from librespot.cache import CacheManager from librespot.cache import CacheManager
@@ -16,7 +13,6 @@ from librespot.metadata import AlbumId, ArtistId, EpisodeId, ShowId, TrackId
from librespot.proto import Authentication_pb2 as Authentication, Connect_pb2 as Connect, Keyexchange_pb2 as Keyexchange, Metadata_pb2 as Metadata from librespot.proto import Authentication_pb2 as Authentication, Connect_pb2 as Connect, Keyexchange_pb2 as Keyexchange, Metadata_pb2 as Metadata
from librespot.proto.ExplicitContentPubsub_pb2 import UserAttributesUpdate from librespot.proto.ExplicitContentPubsub_pb2 import UserAttributesUpdate
from librespot.structure import Closeable, MessageListener, RequestListener, SubListener from librespot.structure import Closeable, MessageListener, RequestListener, SubListener
from librespot.version import Version
import base64 import base64
import concurrent.futures import concurrent.futures
import defusedxml.ElementTree import defusedxml.ElementTree
@@ -35,6 +31,7 @@ import struct
import threading import threading
import time import time
import typing import typing
import urllib.parse
import websocket import websocket

View File

@@ -3,4 +3,5 @@ protobuf==3.17.3
pycryptodomex==3.10.1 pycryptodomex==3.10.1
pyogg==0.6.14a.1 pyogg==0.6.14a.1
requests==2.26.0 requests==2.26.0
websocket-client==1.2.1 websocket-client==1.2.1
zeroconf==0.36.2

View File

@@ -11,7 +11,7 @@ setuptools.setup(name="librespot",
packages=setuptools.find_packages("."), packages=setuptools.find_packages("."),
install_requires=[ install_requires=[
"defusedxml", "protobuf", "pycryptodomex", "pyogg", "defusedxml", "protobuf", "pycryptodomex", "pyogg",
"requests" "requests", "zeroconf"
], ],
classifiers=[ classifiers=[
"Development Status :: 1 - Planning", "Development Status :: 1 - Planning",