Commits

Anonymous committed e1fead2

Fix a few packaging problems

Comments (0)

Files changed (5)

+include heightfield/data/*.png
+A library and commandline tool for generating random maps using
+the method of particle deposition.
+
+Usage
+-----
+
+heightfield can be executed as a command line script by running::
+
+    $ heightfield outputfile.png
+
+This will generate a 256x256 image in PNG format. Other file formats supported
+by `PIL`_  will also work.
+
+.. _`PIL`: http://www.pythonware.com/library/pil/handbook/index.htm#appendixes
+

README.rst

-A library and commandline tool for generating random maps using
-the method of particle deposition.
-
-Usage
------
-
-heightfield can be executed as a command line script by running::
-
-    $ heightfield outputfile.png
-
-This will generate a 256x256 image in PNG format. Other file formats supported
-by `PIL`_  will also work.
-
-.. _`PIL`: http://www.pythonware.com/library/pil/handbook/index.htm#appendixes
-

heightfield/__init__.py

+__version__ = (0, 1)
 from setuptools import setup, find_packages
 
 # Load long_description from README.rst
-readme = os.path.join(os.path.dirname(__file__), 'README.rst')
+readme = os.path.join(os.path.dirname(__file__), 'README')
 long_description = open(readme, 'rU').read().decode('utf8')
 
+# Construct version string
+from heightfield import __version__
+version = '.'.join([str(component) for component in __version__])
+
 setup(
     name='heightfield',
-    version="0.1",
+    version=version,
     packages=find_packages(),
+    package_data={
+        'heightfield': ['data/*.png'],
+    },
     description=u"Generate random maps by particle deposition",
     long_description=long_description,
     author='Daniel Pope / Reading Python Dojo',
     author_email='lord.mauve@gmail.com',
+    url='https://bitbucket.org/lordmauve/heightfield',
     install_requires=[
         'PIL>=1.1.6',
     ],
         'Operating System :: OS Independent',
         'Topic :: Multimedia :: Graphics',
     ],
-    package_data={
-        'heightfield': ['data/*.png'],
-    },
     entry_points={
         'console_scripts': [
             'heightfield = heightfield.main:main',
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.