FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-escpos/setup.py at development · python-escpos/python-escpos · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
python-escpos
/
python-escpos
Public
Notifications
You must be signed in to change notification settings
Fork
316
Star
1.3k
Code
Issues
60
Pull requests
12
Discussions
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
python-escpos
/
setup.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
110 lines (99 loc) · 3.03 KB
Breadcrumbs
python-escpos
/
setup.py
Copy path
File metadata and controls
executable file
·
110 lines (99 loc) · 3.03 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
#!/usr/bin/env python
import
os
import
sys
from
setuptools
import
find_packages
,
setup
base_dir
=
os
.
path
.
dirname
(
__file__
)
src_dir
=
os
.
path
.
join
(
base_dir
,
"src"
)
# When executing the setup.py, we need to be able to import ourselves, this
# means that we need to add the src/ directory to the sys.path.
sys
.
path
.
insert
(
0
,
src_dir
)
def
read
(
fname
):
"""read file from same path as setup.py"""
return
open
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
fname
)).
read
()
setuptools_scm_template
=
"""
\
# coding: utf-8
# file generated by setuptools_scm
# don't change, don't track in version control
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
version = '{version}'
"""
setup
(
name
=
'python-escpos'
,
use_scm_version
=
{
'write_to'
:
'src/escpos/version.py'
,
'write_to_template'
:
setuptools_scm_template
,
},
url
=
'https://github.com/python-escpos/python-escpos'
,
download_url
=
'https://github.com/python-escpos/python-escpos/archive/master.zip'
,
description
=
'Python library to manipulate ESC/POS Printers'
,
license
=
'MIT'
,
long_description
=
read
(
'README.rst'
),
author
=
'Manuel F Martinez and others'
,
author_email
=
'manpaz@bashlinux.com'
,
maintainer
=
'Patrick Kanzler'
,
maintainer_email
=
'dev@pkanzler.de'
,
keywords
=
[
'ESC/POS'
,
'thermoprinter'
,
'voucher printer'
,
'printing'
,
'receipt,'
,
],
platforms
=
'any'
,
package_dir
=
{
""
:
"src"
},
packages
=
find_packages
(
where
=
"src"
,
exclude
=
[
"tests"
,
"tests.*"
]),
package_data
=
{
'escpos'
: [
'capabilities.json'
]},
include_package_data
=
True
,
classifiers
=
[
'Development Status :: 4 - Beta'
,
'Environment :: Console'
,
'Intended Audience :: Developers'
,
'License :: OSI Approved :: MIT License'
,
'Operating System :: OS Independent'
,
'Programming Language :: Python'
,
'Programming Language :: Python :: 3'
,
'Programming Language :: Python :: 3.5'
,
'Programming Language :: Python :: 3.6'
,
'Programming Language :: Python :: 3.7'
,
'Programming Language :: Python :: 3.8'
,
'Programming Language :: Python :: Implementation :: CPython'
,
'Topic :: Software Development :: Libraries :: Python Modules'
,
'Topic :: Office/Business :: Financial :: Point-Of-Sale'
,
],
install_requires
=
[
'pyusb>=1.0.0'
,
'Pillow>=2.0'
,
'qrcode>=4.0'
,
'pyserial'
,
'six'
,
'appdirs'
,
'PyYAML'
,
'argparse'
,
'argcomplete'
,
'future'
,
'viivakoodi>=0.8'
],
setup_requires
=
[
'setuptools_scm'
,
],
tests_require
=
[
'jaconv'
,
'tox'
,
'pytest!=3.2.0,!=3.3.0'
,
'pytest-cov'
,
'pytest-mock'
,
'nose'
,
'scripttest'
,
'mock'
,
'hypothesis>4'
,
'flake8'
],
entry_points
=
{
'console_scripts'
: [
'python-escpos = escpos.cli:main'
]
},
)
Back
|
FazBrowse Home
|
New Git URL