-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathsetup.py
57 lines (53 loc) · 1.93 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
45
46
47
48
49
50
51
52
53
54
55
56
57
""" Install script for pyShortUrl """
import os
import re
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
VERSIONFILE = os.path.join(os.path.dirname(__file__), '_version.py')
verstr = "unknown"
try:
verstrline = open(VERSIONFILE, "rt").read()
except EnvironmentError:
pass # Okay, there is no version file.
else:
VSRE = r'^__version__ = [\'"]([\w\d\.]+)[\'"]'
mo = re.search(VSRE, verstrline)
if mo:
verstr = mo.group(1)
else:
print('Unable to find version in {}'.format(VERSIONFILE))
raise RuntimeError('if {}.py exists, it is required to be '
'well-formed'.format(VERSIONFILE))
setup(
name = "smart-image-renamer",
version = verstr,
author = "Ronak Gandhi",
author_email = "[email protected]",
description = ("A script to intelligently bulk rename images using EXIF data contained within."),
license = "GPLv2",
keywords = "image photo rename bulk smart exif",
platforms = ['Linux', 'Max OS X', 'Windows', 'BSD', 'Unix'],
url = "https://github.com/ronakg/smart-image-renamer",
data_files=[
('.', ['README.rst']),
],
packages = [],
long_description = read('README.rst'),
scripts=['smart-image-renamer.py'],
install_requires=['pillow'],
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"Intended Audience :: Other Audience",
"License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Topic :: Multimedia :: Graphics",
"Topic :: System :: Filesystems",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Utilities",
],
)