Skip to content

Commit 317e8ae

Browse files
committed
The .pyc and .pyo files are removed before building.
1 parent 1d7d4ac commit 317e8ae

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

README-PYPI.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Library for creating Stream Deck plugins in Python.
3838

3939
## Features
4040

41-
* Ease of use. You can quickly create your own plugin without having to understand how web sockets and
41+
* Ease of use. You can quickly create your own plugin without having to understand how websockets and
4242
other technologies work.
4343
* Fully typed, using [pydantic](https://github.com/pydantic/pydantic).
4444
* Includes image to base64 converters for easy installation of icons on keys.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ pip install streamdeck_sdk
5757

5858
## Features
5959

60-
* Ease of use. You can quickly create your own plugin without having to understand how web sockets and
60+
* Ease of use. You can quickly create your own plugin without having to understand how websockets and
6161
other technologies work.
6262
* Fully typed, using [pydantic](https://github.com/pydantic/pydantic).
6363
* Includes image to base64 converters for easy installation of icons on keys.

setup.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,22 @@
1+
from pathlib import Path
2+
13
import setuptools
24

3-
VERSION = "1.0.0dev4"
5+
VERSION = "1.0.0"
46
PACKAGE_DIR = "."
57
REQUIREMENTS_FILE = "./requirements.txt"
68
README = "README-PYPI.md"
9+
BASE_DIR = Path(__file__).resolve().parent
710

811
with open(REQUIREMENTS_FILE, "r") as f:
912
requirements = f.read().splitlines()
1013

1114
with open(README, "r") as file:
1215
long_description = file.read()
1316

17+
[p.unlink() for p in BASE_DIR.rglob('*.py[co]')]
18+
[p.rmdir() for p in BASE_DIR.rglob('__pycache__')]
19+
1420
setuptools.setup(
1521
name="streamdeck_sdk",
1622
version=VERSION,

streamdeck_sdk/executable/executable.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
def main():
2121
parser = argparse.ArgumentParser(description='StreamDeckSDK')
2222
parser.add_argument('command')
23-
parser.add_argument('-i', default=None, required=False, type=str)
23+
parser.add_argument('-i', default=None, required=False, type=str, help="Input file", )
2424
args = parser.parse_args()
2525
logger.info(args)
2626
command = args.command
@@ -37,6 +37,9 @@ def main():
3737
release_dir.mkdir(exist_ok=True, parents=True)
3838
release_dir = str(release_dir.resolve())
3939

40+
[p.unlink() for p in BASE_DIR.rglob('*.py[co]')]
41+
[p.rmdir() for p in BASE_DIR.rglob('__pycache__')]
42+
4043
os_name = platform.system()
4144
logger.info(os_name)
4245
if os_name == "Darwin":

0 commit comments

Comments
 (0)