forked from scardine/image_size
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
33 lines (29 loc) · 906 Bytes
/
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
import os
import codecs
from setuptools import setup, find_packages
import versioneer
def read_long_description():
long_desc = []
with codecs.open('README.rst', 'r', 'utf8') as longdesc:
long_desc.append(longdesc.read())
if os.path.exists("HISTORY.rst"):
with codecs.open('HISTORY.rst', 'r', 'utf8') as history:
long_desc.append(history.read())
return u'\n\n'.join(long_desc)
LONG_DESCRIPTION = read_long_description()
setup(
name='opsdroid_get_image_size',
url='https://github.com/opsdroid/image_size',
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
long_description=LONG_DESCRIPTION,
author='github.com/scardine',
author_email=' ',
license='MIT',
packages=find_packages(),
entry_points={
'console_scripts': [
'get-image-size = get_image_size:main',
],
},
)