Skip to content

Commit

Permalink
Fix gift & refactor packaging
Browse files Browse the repository at this point in the history
- Move manifest into setup.py
- Fix gift attribute being terrible
  • Loading branch information
isaackogan committed Feb 28, 2024
1 parent 55be4ca commit 2196ad7
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 13 deletions.
2 changes: 1 addition & 1 deletion TikTokLive/events/proto_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def streaking(self) -> bool:
"""

if not self.streakable:
if not self.gift.streakable:
return False

return not bool(self.repeat_end)
Expand Down
7 changes: 0 additions & 7 deletions manifest.json

This file was deleted.

3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
async-timeout>=4.0.3 # Fix: python_socks/async_/asyncio/_proxy.py import package
jinja2
python-dotenv
4 changes: 3 additions & 1 deletion scripts/docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
import os
import sys

manifest = json.loads(open("../../manifest.json", "r").read())
from setup import manifest # todo this wont work

manifest = manifest
version = "v" + manifest["version"]

sys.path.insert(0, os.path.abspath('../../'))
Expand Down
3 changes: 2 additions & 1 deletion scripts/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
async-timeout>=4.0.3
jinja2
python-dotenv
build
build
twine
11 changes: 8 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
import json

import setuptools

# PyPi upload Command
# rm -r dist ; python setup.py sdist ; python -m twine upload dist/*
manifest: dict = json.loads(open("manifest.json", "r").read())

manifest: dict = {
"name": "TikTokLive",
"license": "MIT",
"author": "Isaac Kogan",
"version": "6.0.1-post1",
"email": "[email protected]"
}

if __name__ == '__main__':
with open("README.md", "r", encoding="utf-8") as fh:
Expand Down

0 comments on commit 2196ad7

Please sign in to comment.