Skip to content

Commit

Permalink
Merge pull request #6 from v7labs/hotfix/rle-imports
Browse files Browse the repository at this point in the history
[HOTFIX] Rename rle to run_length_encoding
  • Loading branch information
simedw authored Dec 21, 2021
2 parents f4891d5 + 2c3ce2b commit 8c5e1f0
Show file tree
Hide file tree
Showing 5 changed files with 123 additions and 98 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
**/__pycache__/
.pytest_cache/
build/

*.egg-info
*.so
31 changes: 25 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,26 @@
ext = ".pyx" if USE_CYTHON else ".c"

extensions = [
setuptools.Extension("draw_polygon", ["upolygon/draw_polygon" + ext], extra_compile_args=["-O3", "-Wall"]),
setuptools.Extension("find_contours", ["upolygon/find_contours" + ext], extra_compile_args=["-O3", "-Wall"]),
setuptools.Extension("simplify_polygon", ["upolygon/simplify_polygon" + ext], extra_compile_args=["-O3", "-Wall"]),
setuptools.Extension("rle", ["upolygon/rle" + ext], extra_compile_args=["-O3", "-Wall"]),
setuptools.Extension(
"draw_polygon",
["upolygon/draw_polygon" + ext],
extra_compile_args=["-O3", "-Wall"],
),
setuptools.Extension(
"find_contours",
["upolygon/find_contours" + ext],
extra_compile_args=["-O3", "-Wall"],
),
setuptools.Extension(
"simplify_polygon",
["upolygon/simplify_polygon" + ext],
extra_compile_args=["-O3", "-Wall"],
),
setuptools.Extension(
"run_length_encoding",
["upolygon/run_length_encoding" + ext],
extra_compile_args=["-O3", "-Wall"],
),
]

if USE_CYTHON:
Expand All @@ -21,7 +37,7 @@

setuptools.setup(
name="upolygon",
version="0.1.6",
version="0.1.7",
author="V7",
author_email="simon@v7labs.com",
description="Collection of fast polygon operations for DL",
Expand All @@ -31,6 +47,9 @@
ext_modules=extensions,
install_requires=["numpy"],
packages=setuptools.find_packages(),
classifiers=["Programming Language :: Python :: 3", "License :: OSI Approved :: MIT License",],
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
],
python_requires=">=3.6",
)
2 changes: 1 addition & 1 deletion upolygon/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from draw_polygon import draw_polygon # noqa
from find_contours import find_contours # noqa
from simplify_polygon import simplify_polygon # noqa
from rle import rle_decode, rle_encode # noqa
from run_length_encoding import rle_decode, rle_encode # noqa
Loading

0 comments on commit 8c5e1f0

Please sign in to comment.