From eb1716c584850f5608c4f3252f1ea18c1343d46f Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Sun, 5 Jun 2011 21:28:36 +0100 Subject: [PATCH] Add version information, change setup to use the module version --- .gitignore | 1 + setup.py | 3 ++- ts3.py | 7 ++++++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index e00065f..d034212 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ *.pyc test.py +build diff --git a/setup.py b/setup.py index d783096..4be93bb 100755 --- a/setup.py +++ b/setup.py @@ -1,9 +1,10 @@ #!/usr/bin/env python from distutils.core import setup +from ts3 import __version__ setup(name = "python-ts3", - version = "0.1", + version = __version__, description = "TS3 ServerQuery library for Python", author = "Andrew Willaims", author_email = "andy@tensixtyone.com", diff --git a/ts3.py b/ts3.py index 98d8872..7d5cdae 100644 --- a/ts3.py +++ b/ts3.py @@ -29,6 +29,11 @@ import time import telnetlib import logging +__version__ = "0.1" +__license__ = "BSD 3-Clause" +__copyright__ = "Copyright 2011, Andrew Williams" +__author__ = "Andrew Williams, Krzysztof Jagiello" + class ConnectionError(Exception): def __init__(self, ip, port): self.ip = ip @@ -276,4 +281,4 @@ class TS3Server(TS3Proto): @param id: Virtual Server ID @type id: int """ - self.send_command('use', keys={'sid': id}) \ No newline at end of file + self.send_command('use', keys={'sid': id})