forked from by-cx/InvoiceGenerator
-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
executable file
·53 lines (44 loc) · 1.45 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
#!/usr/bin/python
import os
import sys
import subprocess
import shlex
from setuptools import setup, find_packages
import InvoiceGenerator
version = InvoiceGenerator.__versionstr__
# release a version, publish to GitHub and PyPI
if sys.argv[-1] == 'publish':
command = lambda 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"
],
package_data={'InvoiceGenerator': ['locale/*/LC_MESSAGES/*']},
test_suite='tests',
)