diff --git a/MANIFEST.in b/MANIFEST.in index 6a25526..6781c8d 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,4 +1,5 @@ include requirements.txt include requirements_test.txt +include README.MD global-exclude tests/* global-exclude pytchat/testrun*.py \ No newline at end of file diff --git a/pytchat/__init__.py b/pytchat/__init__.py index 8a29bbd..3dde444 100644 --- a/pytchat/__init__.py +++ b/pytchat/__init__.py @@ -2,7 +2,7 @@ pytchat is a python library for fetching youtube live chat without using yt api, Selenium, or BeautifulSoup. """ __copyright__ = 'Copyright (C) 2019 taizan-hokuto' -__version__ = '0.0.4.7' +__version__ = '0.0.4.9' __license__ = 'MIT' __author__ = 'taizan-hokuto' __author_email__ = '55448286+taizan-hokuto@users.noreply.github.com' diff --git a/setup.py b/setup.py index 60d583e..d7d2359 100644 --- a/setup.py +++ b/setup.py @@ -13,6 +13,16 @@ def _requirements(): def _test_requirements(): return [name.rstrip() for name in open(path.join(root_dir, 'requirements_test.txt')).readlines()] +txt= '' +with open('README.MD', 'r', encoding='utf-8') as f: + txt = f.read() + +with open('README1.MD', 'w', encoding='utf-8', newline='\n') as f: + f.write(txt) + +remove("README.MD") +rename("README1.MD","README.MD") + with open(path.join(root_dir, package_name, '__init__.py')) as f: init_text = f.read() version = re.search(r'__version__\s*=\s*[\'\"](.+?)[\'\"]', init_text).group(1) @@ -29,14 +39,7 @@ assert url -with open('README.MD', 'r', encoding='utf-8') as f: - txt = f.read() -with open('README1.MD', 'w', encoding='utf-8', newline='\n') as f: - f.write(txt) - -remove("README.MD") -rename("README1.MD","README.MD") with open('README.md', encoding='utf-8') as f: long_description = f.read()