-
Notifications
You must be signed in to change notification settings - Fork 118
/
setup.py
executable file
·78 lines (64 loc) · 1.8 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
74
75
76
77
78
#!/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 :: 3.5",
"Topic :: Utilities",
"License :: OSI Approved :: BSD License",
],
install_requires=[
"reportlab",
"pillow",
"qrplatba>=0.3.3",
"babel",
],
tests_require=[
"PyPDF2",
"xmlunittest",
"future",
"six",
],
extras_require={
"dev": [
"flake8",
"flake8-blind-except",
"flake8-comprehensions",
"flake8-import-order",
"flake8-tidy-imports",
],
"docs": "sphinx",
},
include_package_data=True,
test_suite="tests",
)