Permalink
Browse files

Version 0.1.0

- convert documentation to reStructuredText format for PyPI
- move tests to within the module they are testing
- setup.py:
  - read long_description and version from files
  - add download URL
  - also package AUTHORS and TODO
  - re-add license declaration for completeness
  • Loading branch information...
1 parent 604ceb0 commit d8fa2ef0ebe137cb237e58ce2c5c9e9d2613f064 @michel-slm committed Jun 9, 2012
View
@@ -1,7 +1,10 @@
-
# compiled Python files
*.py?
+
+# generated by setup.py
build
+dist
+MANIFEST
# temporary files
*~
File renamed without changes.
View
1 README
View
@@ -2,21 +2,29 @@ Prelude library for Python
==========================
This library provides functional programming constructs from languages
such as Haskell and Scala, implemented using existing Python libraries
-such as `abc` (_abstract base class_) as appropriate.
+such as ``abc`` (*abstract base class*) as appropriate.
-The intention is for this to complement the existing `functools` library,
+The intention is for this to complement the existing ``functools`` library,
not to replace it.
+
Installation
------------
-This package will be posted on PyPI once it's ready
+From an unpacked archive::
+
+ $ python setup.py install
+
+With `pip <http://pypi.python.org/pypi/pip>`_::
+
+ $ pip install prelude
+
License
-------
Copyright © 2012 Michel Alexandre Salim. Distributed under the MIT
-license. See the file `LICENSE`. For a humorous
-[poetic](https://github.com/alexgenaud/Poetic-License/blob/master/README)
-"translation" of the terms, read on:
+license. See the file ``LICENSE``. For a humorous
+`poetic <https://github.com/alexgenaud/Poetic-License/blob/master/README>`_
+"translation" of the terms, read on::
This work ‘as-is’ we provide.
No warranty express or implied.
View
@@ -6,9 +6,9 @@ Code
* more monads
* singly-linked lists
* list/sequence functions
-...
+* ...
Packaging
---------
-* add 'test' target to setup.py
+* add ``test`` target to setup.py
View
@@ -3,3 +3,5 @@
__all__ = [
"typeclasses",
]
+
+__version__ = '0.1.0'
File renamed without changes.
File renamed without changes.
File renamed without changes.
View
@@ -1,12 +1,25 @@
from distutils.core import setup
+from prelude import __version__
+import os
-setup(name='Prelude',
- version='0.1.0',
- description='Prelude library of functional programming constructs',
+URL='https://github.com/hircus/python-prelude'
+
+def read(fname):
+ return open(os.path.join(os.path.dirname(__file__), fname)).read()
+
+setup(name='prelude',
+ version=__version__,
author='Michel Alexandre Salim',
author_email='michel@sylvestre.me',
- url='http://github.com/msylvestre/prelude',
+ url=URL,
+ download_url=('%s/zipball/%s' % (URL, __version__)),
+ description='Prelude library of functional programming constructs',
+ license='MIT',
+ long_description=read('README.rst'),
packages=['prelude'],
+ data_files=[('.', ['AUTHORS.rst', 'TODO.rst']),
+ ],
+ install_requires=[],
classifiers = [
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',

0 comments on commit d8fa2ef

Please sign in to comment.