mirror of
https://github.com/nikdoof/python-ts3.git
synced 2025-12-17 03:49:25 +00:00
Add version information, change setup to use the module version
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,2 +1,3 @@
|
|||||||
*.pyc
|
*.pyc
|
||||||
test.py
|
test.py
|
||||||
|
build
|
||||||
|
|||||||
3
setup.py
3
setup.py
@@ -1,9 +1,10 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
from distutils.core import setup
|
from distutils.core import setup
|
||||||
|
from ts3 import __version__
|
||||||
|
|
||||||
setup(name = "python-ts3",
|
setup(name = "python-ts3",
|
||||||
version = "0.1",
|
version = __version__,
|
||||||
description = "TS3 ServerQuery library for Python",
|
description = "TS3 ServerQuery library for Python",
|
||||||
author = "Andrew Willaims",
|
author = "Andrew Willaims",
|
||||||
author_email = "andy@tensixtyone.com",
|
author_email = "andy@tensixtyone.com",
|
||||||
|
|||||||
5
ts3.py
5
ts3.py
@@ -29,6 +29,11 @@ import time
|
|||||||
import telnetlib
|
import telnetlib
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
__version__ = "0.1"
|
||||||
|
__license__ = "BSD 3-Clause"
|
||||||
|
__copyright__ = "Copyright 2011, Andrew Williams"
|
||||||
|
__author__ = "Andrew Williams, Krzysztof Jagiello"
|
||||||
|
|
||||||
class ConnectionError(Exception):
|
class ConnectionError(Exception):
|
||||||
def __init__(self, ip, port):
|
def __init__(self, ip, port):
|
||||||
self.ip = ip
|
self.ip = ip
|
||||||
|
|||||||
Reference in New Issue
Block a user