Skip to content

Commit 79dc6ec

Browse files
committed
Add setup.py
1 parent 00b8014 commit 79dc6ec

File tree

2 files changed

+95
-2
lines changed

2 files changed

+95
-2
lines changed

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,5 +92,5 @@ ENV/
9292
# Rope project settings
9393
.ropeproject
9494

95-
setup.py
96-
MANIFEST
95+
MANIFEST
96+

setup.py

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
# -*- coding: utf-8 -*-
2+
3+
from distutils.core import setup
4+
5+
setup(
6+
name = 'MyQR',
7+
version = '3.0.0',
8+
keywords = ('qr', 'qrcode', 'qr code', 'artistic', 'animated', 'gif'),
9+
description = 'Generater for amazing QR Codes. Including Common, Artistic and Animated QR Codes.',
10+
long_description = '''
11+
Home Page: https://github.com/Isvvc/qrcode
12+
13+
Overview
14+
===============
15+
It can generate common qr-code, artistic qr-code (black & white or colorized), animated qr-code (black & white or colorized).
16+
17+
Usage
18+
===============
19+
terminal:
20+
21+
myqr input_filename
22+
[-h]
23+
[-v {1,2,3,...,40}]
24+
[-l {L, M, Q, H}]
25+
[-p image_filename]
26+
[-c]
27+
[-con contrast_value]
28+
[-bri brightness_value]
29+
[-n output_filename]
30+
[-d output_directory]
31+
32+
33+
import:
34+
35+
from MyQR import myqr
36+
version, level, qr_name = myqr.run(
37+
words,
38+
version = 1,
39+
level = 'H',
40+
picture = None,
41+
colorized = False,
42+
contrast = 1.0,
43+
brightness = 1.0,
44+
save_name = None,
45+
save_dir = os.getcwd()
46+
)
47+
48+
49+
More
50+
===============
51+
Please visit 'Home Page' for examples and details.
52+
53+
Updates
54+
===============
55+
version 3.0.0 - Read input from file.
56+
version 2.3.1 - Fixed another bug of number encoding.
57+
version 2.2.1 - Fixed a bug of number encoding.
58+
version 2.1.1 - Fixed a characters support problem.
59+
version 2.0.1 - Improved structure.
60+
version 2.0.0 - Recoded to be importable.
61+
version 1.0.0 - Distributed to PyPI.
62+
63+
64+
65+
66+
''',
67+
68+
author = 'Isvvc',
69+
author_email = 'lyons@tuta.io',
70+
url = 'https://github.com/Isvvc/qrcode',
71+
download_url = 'https://github.com/Isvvc/qrcode',
72+
73+
install_requires = [
74+
'imageio >= 1.5',
75+
'numpy >= 1.11.1',
76+
'Pillow>=3.3.1'
77+
],
78+
packages = ['MyQR', 'MyQR.mylibs'],
79+
80+
license = 'GPLv3',
81+
classifiers = [
82+
'Programming Language :: Python :: 3',
83+
'Operating System :: MacOS',
84+
'Operating System :: POSIX :: Linux',
85+
'Operating System :: Microsoft :: Windows',
86+
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)'
87+
],
88+
entry_points = {
89+
'console_scripts': [
90+
'myqr = MyQR.terminal:main',
91+
],
92+
}
93+
)

0 commit comments

Comments
 (0)