Skip to content

Commit 63bbc57

Browse files
committed
gitignore, license, distribution boilerplate
1 parent d2a52d2 commit 63bbc57

File tree

5 files changed

+94
-0
lines changed

5 files changed

+94
-0
lines changed

.gitignore

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.*.swp
2+
itimer.egg-info/*
3+
MANIFEST.in
4+
build/*
5+
docs/build/*
6+
dist/*
7+
html/*

LICENSE

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

pavement.py

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
import errno
2+
import os
3+
from setuptools import Extension
4+
5+
from paver.easy import *
6+
from paver.path import path
7+
from paver.setuputils import setup
8+
9+
10+
setup(
11+
name="itimer",
12+
description="alarm signal delivery with setitimer(2) and getitimer(2)",
13+
version="1.0",
14+
py_modules=['itimer'],
15+
ext_modules=[Extension(
16+
'_itimer',
17+
['itimermodule.c'],
18+
include_dirs=('.',),
19+
extra_compile_args=['-Wall'])],
20+
classifiers = [
21+
"Development Status :: 5 - Production/Stable",
22+
"Intended Audience :: Developers",
23+
#"License :: OSI Approved :: BSD License",
24+
"Natural Language :: English",
25+
"Operating System :: Unix",
26+
"Programming Language :: C",
27+
"Topic :: System",
28+
]
29+
)
30+
31+
MANIFEST = (
32+
"setup.py",
33+
"paver-minilib.zip",
34+
"itimermodule.c",
35+
)
36+
37+
@task
38+
def manifest():
39+
path('MANIFEST.in').write_lines('include %s' % x for x in MANIFEST)
40+
41+
@task
42+
@needs('generate_setup', 'minilib', 'manifest', 'setuptools.command.sdist')
43+
def sdist():
44+
pass
45+
46+
@task
47+
def clean():
48+
for p in map(path, ('itimer.egg-info', 'dist', 'build', 'MANIFEST.in')):
49+
if p.exists():
50+
if p.isdir():
51+
p.rmtree()
52+
else:
53+
p.remove()
54+
for p in path(__file__).abspath().parent.walkfiles():
55+
if p.endswith(".pyc") or p.endswith(".pyo"):
56+
try:
57+
p.remove()
58+
except OSError, exc:
59+
if exc.args[0] == errno.EACCES:
60+
continue
61+
raise

paver-minilib.zip

22.4 KB
Binary file not shown.

setup.py

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import os
2+
if os.path.exists("paver-minilib.zip"):
3+
import sys
4+
sys.path.insert(0, "paver-minilib.zip")
5+
6+
import paver.tasks
7+
paver.tasks.main()

0 commit comments

Comments
 (0)