Compare commits

...

4 Commits

Author SHA1 Message Date
55448286+taizan-hokuto@users.noreply.github.com
8fcb3ab50f Merge branch 'develop' 2019-11-03 15:15:47 +09:00
55448286+taizan-hokuto@users.noreply.github.com
8ef6474c90 Increment version 2019-11-03 15:14:52 +09:00
55448286+taizan-hokuto@users.noreply.github.com
5da28e4d89 Update setup.py 2019-11-03 15:03:09 +09:00
55448286+taizan-hokuto@users.noreply.github.com
8902955fed Update setup.py 2019-11-03 15:02:22 +09:00
3 changed files with 21 additions and 5 deletions

View File

@@ -1 +1,4 @@
include requirements.txt
include requirements_test.txt
exclude *.egg-info

View File

@@ -2,7 +2,7 @@
pytchat is a python library for fetching youtube live chat.
"""
__copyright__ = 'Copyright (C) 2019 taizan-hokuto'
__version__ = '0.0.1.8'
__version__ = '0.0.1.9'
__license__ = 'MIT'
__author__ = 'taizan-hokuto'
__author_email__ = '55448286+taizan-hokuto@users.noreply.github.com'

View File

@@ -1,6 +1,6 @@
from setuptools import setup, find_packages
from setuptools import setup, find_packages, Command
from codecs import open
from os import path
from os import path, system
import re
package_name = "pytchat"
@@ -14,7 +14,6 @@ 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()
version = re.search(r'__version__\s*=\s*[\'\"](.+?)[\'\"]', init_text).group(1)
@@ -32,6 +31,18 @@ assert url
with open('README.md', encoding='utf-8') as f:
long_description = f.read()
class CleanCommand(Command):
"""Custom clean command to tidy up the project root."""
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
#system('rm -vrf ./build ./dist ./*.pyc ./*.tgz ./*.egg-info')
system('rmdir /Q /S pytchat.egg-info, dist')
setup(
name=package_name,
packages=find_packages(),
@@ -57,5 +68,7 @@ setup(
'License :: OSI Approved :: MIT License',
],
keywords='youtube livechat asyncio',
cmdclass={
'clean': CleanCommand,
}
)