Skip to content

Commit 8c5e1f0

Browse files
authored
Merge pull request #6 from v7labs/hotfix/rle-imports
[HOTFIX] Rename rle to run_length_encoding
2 parents f4891d5 + 2c3ce2b commit 8c5e1f0

File tree

5 files changed

+123
-98
lines changed

5 files changed

+123
-98
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
**/__pycache__/
2+
.pytest_cache/
3+
build/
4+
5+
*.egg-info
6+
*.so

setup.py

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,26 @@
88
ext = ".pyx" if USE_CYTHON else ".c"
99

1010
extensions = [
11-
setuptools.Extension("draw_polygon", ["upolygon/draw_polygon" + ext], extra_compile_args=["-O3", "-Wall"]),
12-
setuptools.Extension("find_contours", ["upolygon/find_contours" + ext], extra_compile_args=["-O3", "-Wall"]),
13-
setuptools.Extension("simplify_polygon", ["upolygon/simplify_polygon" + ext], extra_compile_args=["-O3", "-Wall"]),
14-
setuptools.Extension("rle", ["upolygon/rle" + ext], extra_compile_args=["-O3", "-Wall"]),
11+
setuptools.Extension(
12+
"draw_polygon",
13+
["upolygon/draw_polygon" + ext],
14+
extra_compile_args=["-O3", "-Wall"],
15+
),
16+
setuptools.Extension(
17+
"find_contours",
18+
["upolygon/find_contours" + ext],
19+
extra_compile_args=["-O3", "-Wall"],
20+
),
21+
setuptools.Extension(
22+
"simplify_polygon",
23+
["upolygon/simplify_polygon" + ext],
24+
extra_compile_args=["-O3", "-Wall"],
25+
),
26+
setuptools.Extension(
27+
"run_length_encoding",
28+
["upolygon/run_length_encoding" + ext],
29+
extra_compile_args=["-O3", "-Wall"],
30+
),
1531
]
1632

1733
if USE_CYTHON:
@@ -21,7 +37,7 @@
2137

2238
setuptools.setup(
2339
name="upolygon",
24-
version="0.1.6",
40+
version="0.1.7",
2541
author="V7",
2642
author_email="simon@v7labs.com",
2743
description="Collection of fast polygon operations for DL",
@@ -31,6 +47,9 @@
3147
ext_modules=extensions,
3248
install_requires=["numpy"],
3349
packages=setuptools.find_packages(),
34-
classifiers=["Programming Language :: Python :: 3", "License :: OSI Approved :: MIT License",],
50+
classifiers=[
51+
"Programming Language :: Python :: 3",
52+
"License :: OSI Approved :: MIT License",
53+
],
3554
python_requires=">=3.6",
3655
)

upolygon/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
from draw_polygon import draw_polygon # noqa
22
from find_contours import find_contours # noqa
33
from simplify_polygon import simplify_polygon # noqa
4-
from rle import rle_decode, rle_encode # noqa
4+
from run_length_encoding import rle_decode, rle_encode # noqa

0 commit comments

Comments
 (0)