-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
45 lines (41 loc) · 1.28 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
from setuptools import setup
import unittest
def readme():
try:
import pypandoc
return pypandoc.convert('README.md', 'rst')
except:
# Fall back to raw README
with open('README.md') as f:
return f.read()
# from https://stackoverflow.com/a/37033551
def my_test_suite():
test_loader = unittest.TestLoader()
test_suite = test_loader.discover('emoji2text/tests', pattern='test_*.py')
return test_suite
setup(
name='emoji2text',
version='0.1.7',
description='Can\'t handle emoji? Use this to treat them as plain strings, according to the description provided by unicode.',
long_description=readme(),
keywords='emoji convert text unicode plain',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 3',
'Topic :: Text Processing :: General'
],
url='https://github.com/SamCB/Emoji2Text',
author='Sam CB',
author_email='[email protected]',
license='MIT',
packages=['emoji2text'],
include_package_data=True,
install_requires=[
'grapheme'
],
test_suite='setup.my_test_suite',
zip_safe=False
)