-
Notifications
You must be signed in to change notification settings - Fork 24
/
setup.py
56 lines (48 loc) · 1.69 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
"packaging"
from os.path import dirname, join
from setuptools import setup
package_name = "pdfforms"
base_dir = dirname(__file__)
def read(filename):
"read file contents"
with open(join(base_dir, filename)) as f:
return f.read()
def get_version(package_name, default="0.1"):
"read package version from python file"
with open(join(base_dir, package_name, "version.py")) as f:
for line in f:
parts = line.split()
if parts[:2] == ["__version__", "="]:
return parts[2].strip("'\"")
return default
setup(
name=package_name,
version=get_version(package_name),
description="Populate fillable pdf forms from csv data file",
long_description=read("README.rst") + "\n\n" + read("CHANGELOG.rst"),
author="Aryeh Leib Taurog",
author_email="[email protected]",
license="MIT",
url="https://github.com/altaurog/pdfforms",
packages=[package_name],
entry_points={"console_scripts": ["pdfforms=pdfforms.cli:main"]},
install_requires=["pyexcel"],
extras_require={
"csv": ["pyexcel-io"],
"xlsx": ["pyexcel-xlsx"],
"ods": ["pyexcel-ods"],
},
classifiers=[
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Intended Audience :: End Users/Desktop",
"Environment :: Console",
"Topic :: Office/Business",
],
)