11import sys
22
3- from stream_chat import __version__ , __maintainer__ , __email__ , __license__
43from setuptools import find_packages , setup
54from setuptools .command .test import test as TestCommand
65
7-
86install_requires = [
97 "pycryptodomex==3.4.7" ,
108 "requests>=2.3.0,<3" ,
1412long_description = open ("README.md" , "r" ).read ()
1513tests_require = ["pytest==4.4.1" , "pytest-cov" , "codecov" ]
1614
15+ about = {}
16+ with open ("stream_chat/__pkg__.py" ) as fp :
17+ exec (fp .read (), about )
1718
1819class PyTest (TestCommand ):
1920 def finalize_options (self ):
@@ -32,14 +33,13 @@ def run_tests(self):
3233setup (
3334 name = "stream-chat" ,
3435 cmdclass = {"test" : PyTest },
35- version = __version__ ,
36- author = __maintainer__ ,
37- author_email = __email__ ,
36+ version = about [ " __version__" ] ,
37+ author = about [ " __maintainer__" ] ,
38+ author_email = about [ " __email__" ] ,
3839 url = "http://github.com/GetStream/chat-py" ,
3940 description = "Client for Stream Chat." ,
4041 long_description = long_description ,
4142 long_description_content_type = "text/markdown" ,
42- license = __license__ ,
4343 packages = find_packages (),
4444 zip_safe = False ,
4545 install_requires = install_requires ,
0 commit comments