Skip to content

Commit

Permalink
Prepare for deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
smokey42 committed Apr 20, 2012
1 parent b782b04 commit 760fb40
Show file tree
Hide file tree
Showing 7 changed files with 83 additions and 4 deletions.
27 changes: 27 additions & 0 deletions .gitignore
@@ -0,0 +1,27 @@
*.py[co]

# Packages
*.egg
*.egg-info
dist
build
eggs
parts
bin
var
sdist
develop-eggs
.installed.cfg

# Installer logs
pip-log.txt

# Unit test / coverage reports
.coverage
.tox

#Translations
*.mo

#Mr Developer
.mr.developer.cfg
19 changes: 19 additions & 0 deletions LICENCE
@@ -0,0 +1,19 @@
Copyright (c) 2010,2011,2012 Daniel Werner, Christoph Rauch

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
IN THE SOFTWARE.
2 changes: 2 additions & 0 deletions MANIFEST
@@ -0,0 +1,2 @@
setup.py
functional/__init__.py
16 changes: 16 additions & 0 deletions README.md
@@ -0,0 +1,16 @@
# functional

This is simple but extensive functional Python library suitable for most purposes.

It contains the functions `butlast`, `coalesce`, `complement`,
`compose`, `cons`, `const`, `constantly`, `delegate`, `drop`,
`filter_attr`, `filter_values`, `first`, `identity`, `interleave`,
`interpose`, `keep`, `last`, `map_all`, `mapcat`, `map_keys`, `maybe`,
`partition`, `partition_by`, `rest`, `second`, `sequify`, `some`,
`somefx`, `split_at`, `starchain`, `strcat`, `take`, `thrush`,
`treeleaves`, `treeseq`, `vertical_partition` and an updated
`update_wrapper` which can cope with partials.

# Compatibility

It is tested in Python 2.6
4 changes: 0 additions & 4 deletions functional.py → functional/__init__.py
Expand Up @@ -436,10 +436,6 @@ def map_all(funcs, iterable):
... [7331, 58008])
[1337, 80085]
>>> from lib.utils.dimens import unit, point
>>> inch = unit("inch")
>>> map_all((float, inch, point, float), [2.54, 1])
[182.88, 72.0]
"""
for func in funcs:
iterable = map(func, iterable)
Expand Down
12 changes: 12 additions & 0 deletions setup.py
@@ -0,0 +1,12 @@
#!/usr/bin/env python

from distutils.core import setup

setup(name='functional',
version='1.0',
description='functional library',
author='Daniel Werner',
author_email='dwerner@personalnovel.de',
packages=['functional'],
license="MIT",
)
7 changes: 7 additions & 0 deletions tox.ini
@@ -0,0 +1,7 @@
[tox]
envlist = py26

[testenv]
deps = nose
commands = nosetests --with-doctest -vv

0 comments on commit 760fb40

Please sign in to comment.