forked from hkeward/phomemo_printer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
42 lines (37 loc) · 1.28 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
from setuptools import setup, find_packages
import os
import sys
_here = os.path.abspath(os.path.dirname(__file__))
if sys.version_info[0] < 3:
with open(os.path.join(_here, "README.md")) as f:
long_description = f.read()
else:
with open(os.path.join(_here, "README.md"), encoding="utf-8") as f:
long_description = f.read()
version = {}
with open(os.path.join(_here, "phomemo_printer", "version.py")) as f:
exec(f.read(), version)
with open("requirements.txt") as f:
requirements = f.readlines()
setup(
name="phomemo_printer",
version=version["__version__"],
description="Print text as a raster bit image from a Phomemo printer.",
long_description=long_description,
long_description_content_type="text/markdown",
author="Heather Ward",
author_email="heather.ward13@gmail.com",
url="https://github.com/hkeward/phomemo_printer",
license="gpl-2.0",
packages=find_packages(),
install_requires=requirements,
include_package_data=True,
entry_points={
"console_scripts": ["phomemo_printer=phomemo_printer.command_line:cli"]
},
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
"Operating System :: Unix",
],
)