forked from by-cx/InvoiceGenerator
-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
executable file
·71 lines (59 loc) · 1.7 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
#!/usr/bin/python
import os
import shlex
import subprocess
import sys
import InvoiceGenerator
from setuptools import find_packages, setup
version = InvoiceGenerator.__versionstr__
# release a version, publish to GitHub and PyPI
if sys.argv[-1] == 'publish':
def command(cmd):
subprocess.check_call(shlex.split(cmd))
command('git tag v' + version)
command('git push --tags origin master:master')
command('python setup.py sdist upload')
sys.exit()
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
description = ''
for file_ in ('README', 'CHANGES', 'CONTRIBUTORS'):
description += read('%s.rst' % file_) + '\n\n'
setup(
name="InvoiceGenerator",
version=version,
author="Adam Strauch",
author_email="[email protected]",
description="Library to generate PDF invoice.",
license="BSD",
keywords="invoice invoices generator",
url="https://github.com/creckx/InvoiceGenerator",
packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
long_description=description,
classifiers=[
"Development Status :: 3 - Alpha",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Topic :: Utilities",
"License :: OSI Approved :: BSD License",
],
install_requires=[
"reportlab",
"pillow",
"qrplatba>=0.3.3",
'babel',
],
tests_require=[
"PyPDF2",
"xmlunittest",
"future",
],
include_package_data=True,
test_suite='tests',
command_options={
'build_sphinx': {
'version': ('setup.py', version),
'release': ('setup.py', version),
},
},
)