forked from chrisjbillington/inotify_simple
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes to package structure, fixed links, fixed docs so they should …
…render on readthedocs.
- Loading branch information
1 parent
f4d37e6
commit 71edf36
Showing
9 changed files
with
50 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
build/* | ||
doc/build/* | ||
dist/* | ||
*.pyc | ||
/MANIFEST |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
inotify_init() is wrapped as a class that does little more than hold the | ||
resulting inotify file descriptor. A read() method is provided which reads | ||
available data from the file descriptor and returns events as namedtuples | ||
after unpacking them with the struct module. inotify_add_watch() and | ||
inotify_rm_watch() are wrapped with no changes at all, taking and returning | ||
watch descriptor integers that calling code is expected to keep track of | ||
itself, just as one would use inotify from C. Works with Python 2 or 3. | ||
|
||
Fork me on github: https://github.com/chrisjbillington/inotify_simple | ||
Read the docs: http://inotify_simple.readthedocs.org | ||
|
||
Installation: | ||
|
||
to install `inotify_simple`, run: | ||
|
||
$ pip install inotify_simple | ||
|
||
or to install from source: | ||
|
||
$ python setup.py install | ||
|
||
inotify_simple is a small amount of code and unlikely to change much in the | ||
future until inotify itself or Python changes, so you can also just copy and | ||
paste it into your project to avoid the extra dependency with pretty low risk. | ||
|
||
|
||
See full documentation at http://inotify_simple.readthedocs.org |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
build/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/__version__.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from __future__ import absolute_import | ||
from .inotify_simple import * | ||
try: | ||
from __version__ import __version__ | ||
except ImportError: | ||
__version__ = None |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,21 +5,26 @@ | |
# If the package is not registered with PyPI yet, do so with: | ||
# python setup.py register | ||
|
||
import os | ||
from distutils.core import setup | ||
|
||
__version__ = '1.0.0' | ||
__version__ = '1.0.1' | ||
|
||
DESCRIPTION = \ | ||
"""A simple wrapper around inotify. No fancy bells and whistles, just a | ||
literal wrapper with ctypes. Only 95 lines of code! | ||
""" | ||
|
||
# Auto generate a __version__ package for the package to import | ||
with open(os.path.join('inotify_simple', '__version__.py'), 'w') as f: | ||
f.write("__version__ = '%s'\n" % __version__) | ||
|
||
setup(name='inotify_simple', | ||
version=__version__, | ||
description=DESCRIPTION, | ||
author='Chris Billington', | ||
author_email='[email protected]', | ||
url='https://github.org/cbillington/inotify_simple', | ||
url='https://github.com/chrisjbillington/inotify_simple', | ||
license="BSD", | ||
py_modules=["inotify_simple"] | ||
packages=["inotify_simple"] | ||
) |