Repository navigation
Expand file tree
/
Copy pathsetup.py
More file actions
58 lines (51 loc) · 1.93 KB
/
Copy pathsetup.py
File metadata and controls
58 lines (51 loc) · 1.93 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
"""Packaging entry-point for qrforge.
The CI workflow (``.github/workflows/build_and_publish.yaml``) replaces
``{{VERSION_PLACEHOLDER}}`` with the git tag before building, so the version in
this file is the single source of truth for releases. For local development
the placeholder falls back to a dev version.
"""
import os
from setuptools import find_packages, setup
HERE = os.path.abspath(os.path.dirname(__file__))
VERSION = "{{VERSION_PLACEHOLDER}}"
if VERSION.startswith("{{"):
VERSION = "1.0.0" # local development fallback (CI replaces the token)
with open(os.path.join(HERE, "README.md"), encoding="utf-8") as fh:
LONG_DESCRIPTION = fh.read()
setup(
name="qrforge",
version=VERSION,
description=(
"Generate and heavily customise QR codes (shapes, gradients, shaders, "
"logos, textures) in pure Python; Pillow optional."
),
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",
author="qrforge contributors",
license="MIT",
packages=find_packages(include=["qrforge", "qrforge.*"]),
python_requires=">=3.8",
install_requires=[], # zero hard dependencies
extras_require={
"imaging": ["pillow>=9"],
},
entry_points={
"console_scripts": [
"qrforge=qrforge.cli:main",
],
},
keywords=["qr", "qrcode", "barcode", "svg", "png", "generator", "art"],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"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",
"Topic :: Multimedia :: Graphics",
],
)