-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
49 lines (41 loc) · 1.38 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
from setuptools import setup, find_packages
AUTHOR = u'Minh Minh'
EMAIL = u'hnimminh@outlook.com'
NAME = u'redfs'
DESCRIPTION = u'Pure Python3 with Gevent implement the FreeSWITCH Event Socket Protocol Client'
URL = u'https://github.com/hnimminh/redfs'
META = {}
with open('README.md') as f:
README = f.read()
with open('requirements.txt') as f:
REQUIRES = f.readlines()
with open(f'{NAME.lower()}/__version__.py') as f:
exec(f.read(), META)
VERSION = META.get('__version__', '0.0.0')
setup(
name=NAME,
version=VERSION,
description=DESCRIPTION,
long_description_content_type='text/markdown',
long_description=README,
author=AUTHOR,
author_email=EMAIL,
url=URL,
license='MIT',
packages=find_packages(exclude=('tests', 'docs')),
classifiers=[
'Development Status :: 5 - Production/Stable',
# 'Development Status :: 4 - RC',
'Intended Audience :: Developers',
'Programming Language :: Python',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9'
],
install_requires=REQUIRES
)
# python3 setup.py sdist bdist_wheel
# python3 -m twine upload dist/*