Skip to content

Commit

Permalink
Remove Repackaging
Browse files Browse the repository at this point in the history
  • Loading branch information
olijeffers0n committed Jul 7, 2022
1 parent 57d701e commit ce1c7e4
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 120 deletions.
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1 +1 @@
recursive-include src/rustplus *.png
recursive-include rustplus *.png
65 changes: 0 additions & 65 deletions release_gen.py

This file was deleted.

9 changes: 4 additions & 5 deletions rustplus/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@
from .exceptions import *
from .conversation import ConversationFactory, Conversation, ConversationPrompt
from .utils import *
from .module_info import ModuleInfo

__name__ = ModuleInfo.__module_name__
__author__ = ModuleInfo.__author__
__version__ = ModuleInfo.__version__
__support__ = ModuleInfo.__support__
__name__ = "rustplus"
__author__ = "olijeffers0n"
__version__ = "5.3.27"
__support__ = "Discord: https://discord.gg/nQqJe8qvP8"
2 changes: 1 addition & 1 deletion rustplus/api/remote/rustws.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def close(self) -> None:

self.connection_status = CLOSING
self.shutdown()
#super().close()
# super().close()
self.connection_status = CLOSED

async def send_message(self, message: AppRequest) -> None:
Expand Down
6 changes: 0 additions & 6 deletions rustplus/module_info.py

This file was deleted.

3 changes: 1 addition & 2 deletions rustplus/utils/rust_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
import string

from ..api.structures import RustTime
from ..module_info import ModuleInfo

icons_path = f"rustplus{'.V' + str(ModuleInfo.__version__.replace('.', '_')) if not ModuleInfo.__dev__ else ''}.api.icons"
icons_path = "rustplus.api.icons"


def format_time(protobuf) -> RustTime:
Expand Down
73 changes: 33 additions & 40 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,44 +1,37 @@
from setuptools import setup, find_packages

version = ""
with open("rustplus/__init__.py") as input_file:
for line in input_file.readlines():
if line.startswith("__version__"):
version = line.strip("__version__ =").strip().strip('"')
break

def main() -> None:
version = ""
with open("src/rustplus/__init__.py") as input_file:
for line in input_file.readlines():
if line.startswith("__version__"):
version = line.strip("__version__ =").strip().strip('"')
break
with open("README.md", errors='ignore') as input_file:
readme = input_file.read()

with open("README.md", errors='ignore') as input_file:
readme = input_file.read()

setup(
name='rustplus',
author='olijeffers0n',
url='https://github.com/olijeffers0n/rustplus',
project_urls={
"Issue tracker": "https://github.com/olijeffers0n/rustplus/issues",
},
package_dir={"": "src"},
version=version,
packages=find_packages(where='src'),
license='MIT',
description='A python wrapper for the Rust Plus API',
long_description=readme,
include_package_data=True,
long_description_content_type='text/markdown',
install_requires=[
"websocket_client",
"Pillow",
"protobuf==4.21.1",
"asyncio",
"rustPlusPushReceiver==0.4.1",
"http-ece",
"requests"
],
python_requires='>=3.7.0',
)


if __name__ == "__main__":
main()
setup(
name='rustplus',
author='olijeffers0n',
url='https://github.com/olijeffers0n/rustplus',
project_urls={
"Issue tracker": "https://github.com/olijeffers0n/rustplus/issues",
},
version=version,
packages=find_packages(include=['rustplus', 'rustplus.*']),
license='MIT',
description='A python wrapper for the Rust Plus API',
long_description=readme,
include_package_data=True,
long_description_content_type='text/markdown',
install_requires=[
"websocket_client",
"Pillow",
"protobuf==4.21.1",
"asyncio",
"rustPlusPushReceiver==0.4.1",
"http-ece",
"requests"
],
python_requires='>=3.7.0',
)

0 comments on commit ce1c7e4

Please sign in to comment.