From 7d470379fa229cbd48607d3f773b66ff8a4ffec0 Mon Sep 17 00:00:00 2001 From: Richard Barrell Date: Wed, 15 Feb 2012 18:59:22 +0000 Subject: [PATCH 1/4] Created a setup.py so that depixel can be installed as an egg, which lets it play nice with zc.buildout, easy_install or pip. --- depixel/scripts/__init__.py | 0 setup.py | 28 ++++++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 depixel/scripts/__init__.py create mode 100644 setup.py diff --git a/depixel/scripts/__init__.py b/depixel/scripts/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..9f21421 --- /dev/null +++ b/setup.py @@ -0,0 +1,28 @@ +from setuptools import setup, find_packages, Extension +import sys, os + +version = '1.0' + +setup(name='depixel', + version=version, + description='Depixeling tool, based on "Depixelizing Pixel Art"', + long_description=open('README','rb').read(), + # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers + classifiers=["Topic :: Multimedia :: Graphics"], + author='Jeremy Thurgood', + author_email='firxen@gmail.com', + url='https://github.com/jerith/depixel', + packages=find_packages(exclude=['ez_setup', 'examples', 'tests']), + include_package_data=True, + zip_safe=False, + install_requires=[ + 'setuptools', + 'networkx', + 'pypng', + 'svgwrite', + ], + entry_points=""" + [console_scripts] + depixel_png = depixel.scripts.depixel_png:main + """, + ) From 7d963ec7adf728ecfc44f075f828d014011f98a0 Mon Sep 17 00:00:00 2001 From: Richard Barrell Date: Wed, 15 Feb 2012 21:01:49 +0000 Subject: [PATCH 2/4] Remove unused imports. --- setup.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 9f21421..4876999 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,4 @@ -from setuptools import setup, find_packages, Extension -import sys, os +from setuptools import setup, find_packages version = '1.0' From fb6a886aeaf7cda4842eb0f4dd4110357798629f Mon Sep 17 00:00:00 2001 From: Richard Barrell Date: Wed, 15 Feb 2012 21:02:15 +0000 Subject: [PATCH 3/4] "1.0" was too optimistic a version number, going for "0.1" instead. --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 4876999..174bd73 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ from setuptools import setup, find_packages -version = '1.0' +version = '0.1' setup(name='depixel', version=version, From 1835210053409fd5da360c8bb9bf017346cc566c Mon Sep 17 00:00:00 2001 From: Richard Barrell Date: Wed, 15 Feb 2012 21:02:21 +0000 Subject: [PATCH 4/4] PEP-8 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 174bd73..ab94972 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setup(name='depixel', version=version, description='Depixeling tool, based on "Depixelizing Pixel Art"', - long_description=open('README','rb').read(), + long_description=open('README', 'rb').read(), # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers classifiers=["Topic :: Multimedia :: Graphics"], author='Jeremy Thurgood',