diff --git a/pytchat/__init__.py b/pytchat/__init__.py index 75531ce..5cff606 100644 --- a/pytchat/__init__.py +++ b/pytchat/__init__.py @@ -2,11 +2,11 @@ pytchat is a python library for fetching youtube live chat. """ __copyright__ = 'Copyright (C) 2019 taizan-hokuto' -__version__ = '0.0.1.7' +__version__ = '0.0.1.8' __license__ = 'MIT' __author__ = 'taizan-hokuto' __author_email__ = '55448286+taizan-hokuto@users.noreply.github.com' -__url__ = 'https://github.com/taizan-hokuto' +__url__ = 'https://github.com/taizan-hokuto/pytchat' __all__ = ["core_async","core_multithread","processors"] diff --git a/requirements.txt b/requirements.txt index 619d39a..ea514b1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,9 +1,4 @@ -aiohttp==3.6.0 -aioresponses==0.6.0 -mock==3.0.5 -mocker==1.1.1 -pytest==5.1.2 -pytest-mock==1.10.4 -pytz==2019.2 -requests==2.22.0 -urllib3==1.25.3 \ No newline at end of file +aiohttp +pytz +requests +urllib3 \ No newline at end of file diff --git a/requirements_test.txt b/requirements_test.txt new file mode 100644 index 0000000..d9e1069 --- /dev/null +++ b/requirements_test.txt @@ -0,0 +1,5 @@ +aioresponses +mock +mocker +pytest +pytest-mock \ No newline at end of file diff --git a/setup.py b/setup.py index 295d63a..52c8fd1 100644 --- a/setup.py +++ b/setup.py @@ -7,8 +7,13 @@ package_name = "pytchat" root_dir = path.abspath(path.dirname(__file__)) -def _requires_from_file(filename): - return open(filename).read().splitlines() +def _requirements(): + return [name.rstrip() for name in open(path.join(root_dir, 'requirements.txt')).readlines()] + +def _test_requirements(): + return [name.rstrip() for name in open(path.join(root_dir, 'requirements_test.txt')).readlines()] + + with open(path.join(root_dir, package_name, '__init__.py')) as f: init_text = f.read() @@ -30,15 +35,15 @@ with open('README.md', encoding='utf-8') as f: setup( name=package_name, packages=find_packages(), - version=version, - url=url, author=author, author_email=author_email, long_description=long_description, long_description_content_type='text/markdown', license=license, + install_requires=_requirements(), + tests_require=_test_requirements(), description="a python library for fetching youtube live chat.", classifiers=[ 'Natural Language :: Japanese', @@ -52,5 +57,5 @@ setup( 'License :: OSI Approved :: MIT License', ], keywords='youtube livechat asyncio', - install_requires=_requires_from_file('requirements.txt') + ) \ No newline at end of file