-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
55 lines (48 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
#!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import os
import sys
import warnings
import subprocess
exec(open('pypaperbak/_version.py').read())
package_dir = 'pypaperbak'
# convert the README and format in restructured text (only when registering)
long_desc = ""
if os.path.exists("README.md"):
try:
cmd = ['pandoc', '--pypaperbakfrom=markdown', '--to=rst', 'README.md']
long_desc = subprocess.check_output(cmd).decode("utf8")
except Exception as e:
warnings.warn("Exception when converting the README format: %s" % e)
setup(name='pypaperbak',
version = __version__,
description = 'Backup and Restore from paper-based datastore',
long_description = long_desc,
author = 'Matheus Degiovani',
author_email = '[email protected]',
url = 'https://github.com/matheusd/pypaperbak',
license = 'MIT',
packages = ['pypaperbak', ],
package_dir = {'pypaperbak': package_dir},
package_data = {'pypaperbak': ['samples/*']},
install_requires = [
'pyqrcode',
'zbarlight',
'fpdf',
'python-magic',
'pypng'
],
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT",
"Programming Language :: Python",
"Programming Language :: Python :: 3.6",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
],
keywords=["pdf", "qrcode", "png", "jpg"],
)