Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit d8fa2ef0ebe137cb237e58ce2c5c9e9d2613f064 1 parent 604ceb0
@michel-slm authored
View
5 .gitignore
@@ -1,7 +1,10 @@
-
# compiled Python files
*.py?
+
+# generated by setup.py
build
+dist
+MANIFEST
# temporary files
*~
View
0  AUTHORS.md → AUTHORS.rst
File renamed without changes
View
1  README
View
20 README.md → README.rst
@@ -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
4 TODO.md → TODO.rst
@@ -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
2  prelude/__init__.py
@@ -3,3 +3,5 @@
__all__ = [
"typeclasses",
]
+
+__version__ = '0.1.0'
View
0  tests/__init__.py → prelude/test/__init__.py
File renamed without changes
View
0  tests/test_monads.py → prelude/test/test_monads.py
File renamed without changes
View
0  tests/test_typeclasses.py → prelude/test/test_typeclasses.py
File renamed without changes
View
21 setup.py
@@ -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',
Please sign in to comment.
Something went wrong with that request. Please try again.