Permalink
Browse files

gitignore, license, distribution boilerplate

  • Loading branch information...
1 parent d2a52d2 commit 63bbc57cf351f2b649f451bdd970d2f0cb35d0f6 @teepark teepark committed Jun 9, 2010
Showing with 94 additions and 0 deletions.
  1. +7 −0 .gitignore
  2. +19 −0 LICENSE
  3. +61 −0 pavement.py
  4. BIN paver-minilib.zip
  5. +7 −0 setup.py
View
@@ -0,0 +1,7 @@
+.*.swp
+itimer.egg-info/*
+MANIFEST.in
+build/*
+docs/build/*
+dist/*
+html/*
View
19 LICENSE
@@ -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.
View
@@ -0,0 +1,61 @@
+import errno
+import os
+from setuptools import Extension
+
+from paver.easy import *
+from paver.path import path
+from paver.setuputils import setup
+
+
+setup(
+ name="itimer",
+ description="alarm signal delivery with setitimer(2) and getitimer(2)",
+ version="1.0",
+ py_modules=['itimer'],
+ ext_modules=[Extension(
+ '_itimer',
+ ['itimermodule.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",
+ "itimermodule.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, ('itimer.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
View
Binary file not shown.
View
@@ -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()

0 comments on commit 63bbc57

Please sign in to comment.