Skip to content

Commit 148709d

Browse files
committed
possible v1.1.7 release
1 parent 58d8643 commit 148709d

File tree

5 files changed

+11
-37
lines changed

5 files changed

+11
-37
lines changed

CHANGELOG.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
===========
22
Changelog
33
===========
4-
Current
4+
1.1.7
55
* Noise generator now seeds properly
6-
* The OS event queue will now be handled during a call to tdl.flush
7-
This will prevent common lock-ups where events are handled infrequently
6+
* The OS event queue will now be handled during a call to tdl.flush. This
7+
prevents a common newbie programmer hang where events are handled
8+
infrequently during long animations, simulations, or early development
9+
* Fixed a major bug that would cause a crash in later versions of Python 3
810

911
1.1.6
1012
* Fixed a race condition when importing on some platforms

README.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ You can find more about libtcod at: http://doryen.eptalys.net/libtcod/
1919
==============
2020
Requirements
2121
==============
22-
* Python 2.6+ or 3.x up to 3.3
22+
* Python 2.6+ or 3.x
2323
* 32 bit Windows, 32/64 bit Linux, or Mac OS/X (64 bit architecture)
2424

2525
=========

setup.py

Lines changed: 4 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,20 @@
11
#!/usr/bin/env python2
22

3-
import subprocess
4-
53
try:
64
# use setuptools or distribute if available
75
from setuptools import setup
86
except ImportError:
97
from distutils.core import setup
108

11-
base_version = '1.1.6' # base version
12-
def get_version():
13-
"""Probably a much more elegant way to do this.
14-
15-
Update tdl/VERSION.txt with the current svn version, then return the result"""
16-
try:
17-
revision = subprocess.check_output('svnversion', universal_newlines=True)[:-1]
18-
except:
19-
revision = None
9+
from tdl import __version__
2010

21-
if revision:
22-
if ':' in revision:
23-
revision = revision.split(':')[-1]
24-
if 'M' in revision:
25-
revision = str(int(revision[:-1]) + 1)
26-
file = open('tdl/VERSION.txt', 'w')
27-
file.write(base_version + 'r' + revision)
28-
file.close()
29-
print('revision %s' % revision)
30-
31-
file = open('tdl/VERSION.txt', 'r')
32-
version = file.read()
33-
file.close()
34-
return version
35-
3611
setup(name='tdl',
37-
version=get_version(),
12+
version=__version__,
3813
author='Kyle Stewart',
3914
author_email='4B796C65+pythonTDL@gmail.com',
4015
description='Pythonic port of rogue-like library libtcod.',
4116
long_description=open('README.txt', 'r').read() + open('CHANGELOG.txt', 'r').read(),
42-
url='http://code.google.com/p/python-tdl/',
17+
url='https://github.com/HexDecimal/python-tdl',
4318
download_url='https://pypi.python.org/pypi/tdl',
4419
packages=['tdl'],
4520
package_data={'tdl': ['*.txt', 'lib/*.txt', '*.bmp', '*.png', 'lib/win32/*',
@@ -62,6 +37,7 @@ def get_version():
6237
'Programming Language :: Python :: 3.1',
6338
'Programming Language :: Python :: 3.2',
6439
'Programming Language :: Python :: 3.3',
40+
'Programming Language :: Python :: 3.4',
6541
'Programming Language :: Python :: Implementation :: CPython',
6642
'Programming Language :: Python :: Implementation :: PyPy',
6743
'Topic :: Games/Entertainment',

tdl/VERSION.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

tdl/__init__.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1335,7 +1335,4 @@ def forceResolution(width, height):
13351335

13361336
__license__ = "New BSD License"
13371337
__email__ = "4b796c65+pythonTDL@gmail.com"
1338-
1339-
file = open(os.path.join(os.path.dirname(__file__), 'VERSION.txt'), 'r')
1340-
__version__ = file.read()
1341-
file.close()
1338+
__version__ = '1.1.7'

0 commit comments

Comments
 (0)