Repository navigation
Expand file tree
/
Copy pathsetup.py
More file actions
88 lines (82 loc) · 2.6 KB
/
Copy pathsetup.py
File metadata and controls
88 lines (82 loc) · 2.6 KB
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
79
80
81
82
83
84
85
86
87
88
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""This module contains the build information for this project."""
import setuptools # type: ignore[import-untyped]
# open readme
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
# determine extras
extras_require = {
"dev": [
"black", # code formatting
"mypy", # typing
"pydocstyle", # docstrings
],
"docs": [
"sphinx",
"sphinx-rtd-theme",
],
"genai": [
"openai", # used for generating images
],
"image": [
"matplotlib", # charts
"Pillow", # images
"python-barcode", # barcodes
"py_avataaars", # avatars
"requests", # downloading images from urls
"segno", # qr codes
],
"text": [
"fonttools", # truetype fonts
"requests", # downloading fonts
],
}
extras_require["full"] = sorted(
{
dep
for group, deps in extras_require.items()
if group not in {"dev", "docs"}
for dep in deps
}
)
# setup
setuptools.setup(
author="Joris Schellekens",
author_email="joris.schellekens.1989@gmail.com",
classifiers=[
"Development Status :: 6 - Mature",
"Intended Audience :: Developers",
"Topic :: Artistic Software",
"Topic :: File Formats",
"Topic :: Text Processing",
"Topic :: Multimedia :: Graphics",
"Topic :: Multimedia",
"License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
],
description="borb is a library for reading, creating and manipulating PDF files in python.",
extras_require=extras_require,
include_package_data=True,
install_requires=[],
keywords=["pdf", "pdf-generation", "pdf-processing", "borb"],
license="AGPL-3.0-or-later",
long_description=long_description,
long_description_content_type="text/markdown",
name="borb",
packages=setuptools.find_packages(include=["borb", "borb.*"]),
project_urls={
"Source": "https://github.com/borb-pdf/borb",
"Tracker": "https://github.com/borb-pdf/borb/issues",
},
python_requires=">=3.6",
url="https://github.com/borb-pdf/borb",
version="3.0.9",
)