-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
64 lines (53 loc) · 2.25 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
from setuptools import setup, find_packages
with open("README.md", "r") as fh:
long_description = fh.read()
def read_file(fname):
with open(fname, "r") as f:
return f.read()
# sudo apt install twine -y
# python3 -m pip install --upgrade setuptools wheel
setup(
name="speechloop",
version="0.0.3",
author="robmsmt",
author_email="[email protected]",
description='A "keep it simple" collection of many speech recognition engines... Designed to help answer - what is the best ASR?',
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/robmsmt/SpeechLoop",
python_requires=">=3.6",
packages=["speechloop"],
# packages=find_packages('speechloop'),
# package_dir={'': 'speechloop'},
include_package_data=True,
install_requires=[elem.strip() for elem in read_file("requirements.txt").splitlines()],
entry_points={"console_scripts": ["speechloop=speechloop:interactive_cli"]},
classifiers=[
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Development Status :: 3 - Alpha",
],
keywords=["speech", "testing", "asr"],
)
# python3 setup.py sdist bdist_wheel
# twine upload dist/*
# one liner
# rm -rf ./build ./dist ./SpeechLoop.egg-info && python3 -m build --wheel && twine upload dist/*
# rm -rf ./build ./dist ./SpeechLoop.egg-info ; python3 setup.py bdist_wheel
# INSTALL LOCALLY: `pip install --editable .`
# BUILD: `rm -rf wheels; pip wheel . -w wheels`
# OR `rm -rf build dist speechloop.egg-info ; python3 setup.py sdist bdist_wheel`
# FIRST TIME SETUP
# sudo apt install twine -y
# python3 -m pip install --upgrade setuptools wheel
# python3 setup.py sdist bdist_wheel
# twine upload dist/*
# ONE LINER
# rm -rf build/ dist/ speechloop.egg-info/ ; python3 setup.py sdist bdist_wheel && twine upload dist/*
### note you cannot (easily) reuse the same version number when it's uploaded to pypi