-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
73 lines (56 loc) · 1.68 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# coding: utf-8
import os
import setuptools
import sys
import codecs
LIB_DIR = os.path.join(
os.path.dirname(__file__),
'lib')
sys.path.append(LIB_DIR)
# Information published on PyPi
PACKAGE_NAME = 'photofs'
VERSION = '1.3'
DESCRIPTION = 'Explore tagged photos from Shotwell in the filesystem'
AUTHOR = 'Moses Palmér'
PACKAGE_URL = 'https://github.com/moses-palmer/photofs'
with codecs.open(os.path.join(
os.path.dirname(__file__),
'README.rst'), encoding="UTF-8") as f:
README = f.read()
with codecs.open(os.path.join(
os.path.dirname(__file__),
'CHANGES.rst'), encoding="UTF-8") as f:
CHANGES = f.read()
# The author email
AUTHOR_EMAIL = 'moses.palmer@gmail.com'
def setup(**kwargs):
setuptools.setup(
name=PACKAGE_NAME,
version=VERSION,
description=DESCRIPTION,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
long_description=README + '\n\n' + CHANGES,
install_requires=[
'fusepy >=2.0.2',
'pyxdg >= 0.25'],
setup_requires=[],
url=PACKAGE_URL,
entry_points={
'console_scripts': ['photofs=photofs.__main__:main']},
packages=setuptools.find_packages(LIB_DIR),
package_dir={'': LIB_DIR},
zip_safe=True,
license='GPLv3',
classifiers=[
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3'],
**kwargs)
try:
setup()
except Exception as e:
try:
sys.stderr.write(e.args[0] % e.args[1:] + '\n')
except:
sys.stderr.write(str(e) + '\n')