Skip to content

Commit 133c4ef

Browse files
committed
added tox.ini
1 parent 501c5eb commit 133c4ef

File tree

5 files changed

+29
-5
lines changed

5 files changed

+29
-5
lines changed

.gitignore

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
*.egg
12
*.egg-info
23
__pycache__
34
.coverage
5+
.tox
6+
build
47
dist
5-
htmlcov
6-
build
8+
htmlcov

CHANGELOG.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
Release history
22
---------------
33

4+
0.1.2 (????)
5+
++++++++++++
6+
- added tox.ini for easier testing accross interpreter versions
7+
48
0.1.1 (November 2013)
59
+++++++++++++++++++++
610
- Fixed a bug in launchd.plist.read() when no scope was specified

launchd/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# -*- coding: utf-8 -*-
22

3+
__author__ = 'Paul Kremer'
4+
__email__ = '[email protected]'
5+
__version__ = '0.1.2dev'
6+
37
from .launchctl import jobs, LaunchdJob, load, unload
48
from . import plist
59
from . import util

setup.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
# -*- coding: utf-8 -*-
33

44
import sys
5+
import re
6+
import os
7+
58
try:
69
from setuptools import setup
710
except ImportError:
@@ -31,17 +34,21 @@
3134
install_requires.append("argparse")
3235

3336
if not 'darwin' in sys.platform:
34-
import os
3537
sys.stderr.write("Warning: The package 'launchd' can only be installed and run on OS X!" + os.linesep)
3638

39+
v = open(os.path.join(os.path.dirname(__file__), 'launchd', '__init__.py'))
40+
VERSION = re.compile(r".*__version__ = '(.*?)'", re.S).match(v.read()).group(1)
41+
v.close()
42+
3743
setup(name="launchd",
3844
packages=["launchd", "launchd.tests"],
39-
version="0.1.1",
45+
version=VERSION,
4046
author="Paul Kremer",
4147
author_email="@".join(("paul", "spurious.biz")), # avoid spam,
4248
license="MIT License",
4349
description="pythonic interface for OS X launchd",
44-
long_description=open("README.rst", "r").read(),
50+
long_description=(open('README.rst', 'r').read() + '\n\n' +
51+
open('CHANGELOG.rst', 'r').read()),
4552
url="https://github.com/infothrill/python-launchd",
4653
install_requires=install_requires,
4754
classifiers=classifiers,

tox.ini

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Tox (http://tox.testrun.org/)
2+
3+
[tox]
4+
envlist = py27, py32, py33
5+
6+
[testenv]
7+
commands = {envpython} setup.py test

0 commit comments

Comments
 (0)