diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..b5a3c46 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,6 @@ +[build-system] +requires = [ + "setuptools>=42", + "wheel" +] +build-backend = "setuptools.build_meta" \ No newline at end of file diff --git a/setup.py b/setup.py index fa2ca81..8b061de 100644 --- a/setup.py +++ b/setup.py @@ -1,34 +1,16 @@ import setuptools -def readme(): - with open('README.md', 'r') as f: - return f.read() +with open("README.md", "r", encoding="utf-8") as fh: + long_description = fh.read() setuptools.setup( name='pysnic', - version='1.0.3', + version='1.0.4', description='SNIC superpixels algorithm', - long_description=''' -Python-only implementation of the SNIC superpixels algorithm (https://www.epfl.ch/labs/ivrl/research/snic-superpixels/). - -Typical usage example: -:: - - from pysnic.algorithms.snic import snic - from pysnic.algorithms.polygonize import polygonize - from pysnic.algorithms.ramerDouglasPeucker import RamerDouglasPeucker - - segmentation, distance_map, number_of_segments = snic( - lab_image, 500, 0.01, - update_func=lambda num_pixels: print("processed %05.2f%%" % (num_pixels * 100 / number_of_pixels))) - - rdp = RamerDouglasPeucker(10) - graphs = polygonize(segmentation, seeds, rdp) - -This project is maintained under: https://github.com/MoritzWillig/pysnic -''', + long_description=long_description, + long_description_content_type="text/markdown", keywords=["image processing", "computer vision", "image segmentation", "superpixels", "SNIC"], classifiers=[ "Programming Language :: Python :: 3.5",