Skip to content

Commit a286f48

Browse files
committed
Upload to pypi
1 parent 2747a9a commit a286f48

File tree

5 files changed

+44
-7
lines changed

5 files changed

+44
-7
lines changed

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include images/screenshot.png

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ Part of the Hands Free Computing project. This subproject aims to allow a user t
2828

2929
- [OpenCV](https://opencv.org)
3030

31-
<!-- GETTING STARTED -->
32-
3331
## Getting Started
3432

3533
Steps on how to set up the project are coming soon...
@@ -84,4 +82,4 @@ Project Link: [https://github.com/luiszugasti/IconMatch](https://github.com/luis
8482
[license-url]: https://github.com/luiszugasti/IconMatch/blob/main/LICENSE.txt
8583
[linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=flat-square&logo=linkedin&colorB=555
8684
[linkedin-url]: https://linkedin.com/in/luiszugasti
87-
[product-screenshot]: images/screenshot.png
85+
[product-screenshot]: https://i.imgur.com/Q4Rm7M6.png

icondetection/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# version of the icondetection package
2+
__version__ = "0.0.1"

setup.py

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
import pathlib
2+
from setuptools import setup, find_packages
3+
4+
# The directory containing this file
5+
HERE = pathlib.Path(__file__).parent
6+
7+
# The text of the README file
8+
README = (HERE / "README.md").read_text()
9+
10+
REQUIRES_PYTHON = ">=3.8"
11+
# This call to setup() does all the work
12+
setup(
13+
name="icondetection",
14+
version="0.0.1",
15+
description="Detect icons on the screen easily and quickly.",
16+
long_description=README,
17+
long_description_content_type="text/markdown",
18+
url="https://github.com/luiszugasti/IconMatch",
19+
author="Luis Zugasti",
20+
author_email="[email protected]",
21+
license="MIT",
22+
classifiers=[
23+
"License :: OSI Approved :: MIT License",
24+
"Programming Language :: Python :: 3",
25+
"Programming Language :: Python :: 3.7",
26+
],
27+
python_requires=REQUIRES_PYTHON,
28+
packages=find_packages(exclude=["test", "*.test", "*.test.*", "test.*"]),
29+
include_package_data=True,
30+
install_requires=["Pillow", "opencv-contrib-python", "numpy"],
31+
entry_points={
32+
"console_scripts": [
33+
"realpython=reader.__main__:main",
34+
]
35+
},
36+
)

test/test.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import unittest
22
from icondetection.weighted_quick_unionUF import WeightedQuickUnionUF as uf
3-
import sandbox.box as b
4-
import sandbox.rectangle as r
3+
import icondetection.box as b
4+
import icondetection.rectangle as r
55

66

77
class TestSIFT(unittest.TestCase):
@@ -147,9 +147,9 @@ def test_conglomeration(self):
147147
g = r.Rectangle(2, 2, 16, 16)
148148
h = r.Rectangle(15, 15, 16, 16)
149149

150-
self.assertEqual(a, b.merge_rects([a, c, d, e, f]))
150+
self.assertEqual(a, r.merge_rects([a, c, d, e, f]))
151151

152-
self.assertEqual(g, b.merge_rects([a, h]))
152+
self.assertEqual(g, r.merge_rects([a, h]))
153153

154154

155155
if __name__ == "__main__":

0 commit comments

Comments
 (0)