license, packaging etc

This commit is contained in:
Travis J Parker 2010-06-10 09:27:10 -07:00
parent 7d34c14121
commit c0e66323d2
5 changed files with 93 additions and 0 deletions

7
.gitignore vendored Normal file
View File

@ -0,0 +1,7 @@
.*.swp
wirebin.egg-info/*
MANIFEST.in
build/*
docs/build/*
dist/*
html/*

19
LICENSE Normal file
View File

@ -0,0 +1,19 @@
Copyright 2005-2010 Slide, Inc.
All Rights Reserved
Permission to use, copy, modify, and distribute this software and
its documentation for any purpose and without fee is hereby
granted, provided that the above copyright notice appear in all
copies and that both that copyright notice and this permission
notice appear in supporting documentation, and that the name of
Slide not be used in advertising or publicity pertaining to
distribution of the software without specific, written prior
permission.
SLIDE DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN
NO EVENT SHALL SLIDE BE LIABLE FOR ANY SPECIAL, INDIRECT OR
CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

60
pavement.py Normal file
View File

@ -0,0 +1,60 @@
import errno
import os
from setuptools import Extension
from paver.easy import *
from paver.path import path
from paver.setuputils import setup
setup(
name="wirebin",
description="Fast binary [de]serialization of native python types",
version="1.0",
ext_modules=[Extension(
'wbin',
['wbin.c'],
include_dirs=('.',),
extra_compile_args=['-Wall'])],
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
#"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Operating System :: Unix",
"Programming Language :: C",
"Topic :: System",
]
)
MANIFEST = (
"setup.py",
"paver-minilib.zip",
"wbin.c",
)
@task
def manifest():
path('MANIFEST.in').write_lines('include %s' % x for x in MANIFEST)
@task
@needs('generate_setup', 'minilib', 'manifest', 'setuptools.command.sdist')
def sdist():
pass
@task
def clean():
for p in map(path, ('wirebin.egg-info', 'dist', 'build', 'MANIFEST.in')):
if p.exists():
if p.isdir():
p.rmtree()
else:
p.remove()
for p in path(__file__).abspath().parent.walkfiles():
if p.endswith(".pyc") or p.endswith(".pyo"):
try:
p.remove()
except OSError, exc:
if exc.args[0] == errno.EACCES:
continue
raise

BIN
paver-minilib.zip Normal file

Binary file not shown.

7
setup.py Normal file
View File

@ -0,0 +1,7 @@
import os
if os.path.exists("paver-minilib.zip"):
import sys
sys.path.insert(0, "paver-minilib.zip")
import paver.tasks
paver.tasks.main()