Skip to content

Commit

Permalink
feat: Setup for pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
OUDON committed Jun 9, 2022
1 parent 7657c66 commit a253558
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
output/*.png
my_qr.png
23 changes: 23 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Copyright (c) 2022 Takahiro Tomita

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

----
The word "QR Code" is registered trademark of DENSO WAVE Incorporated
http://www.denso-wave.com/qrcode/faqpatent-e.html
6 changes: 4 additions & 2 deletions make_qr.py → example.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
from rmqrcode import QRImage
from rmqrcode import FitStrategy

import os


def main():
data = "ABCdef123漢字あいうえお"
data = "https://oudon.xyz"
error_collection_level = ErrorCollectionLevel.M
fit_strategy = FitStrategy.BALANCED

Expand All @@ -22,7 +24,7 @@ def main():
# Save as png
image = QRImage(qr)
image.show()
image.save("output/my_qr.png")
image.save("my_qr.png")


if __name__ == '__main__':
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["setuptools>=42"]
build-backend = "setuptools.build_meta"
22 changes: 22 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[metadata]
name = rmqrcode
version = 0.0.1
author = Takahiro Tomita
author_email = [email protected]
description = An rMQR Code Generetor
long_description = file: README.md
long_description_content_type = text/markdown
url = https://github.com/OUDON/rmqrcode
classifiers =
Programming Language :: Python :: 3
License :: OSI Approved :: MIT License
Operating System :: OS Independent

[options]
package_dir =
= rmqrcode
packages = find:
python_requires = >=3.6

[options.packages.find]
where = rmqrcode

0 comments on commit a253558

Please sign in to comment.