prepare 0.9.0rc0

This commit is contained in:
jab 2015-05-30 16:26:26 -04:00
parent 34ae95f926
commit e6dd75525a
6 changed files with 15 additions and 10 deletions

View File

@ -1,2 +1,2 @@
include README.rst
include VERSION
include bidict/VERSION

View File

@ -1 +0,0 @@
0.9.0-dev

1
bidict/VERSION Normal file
View File

@ -0,0 +1 @@
0.9.0rc0

View File

@ -3,7 +3,7 @@
Changelog
=========
0.9.0 (not yet released)
0.9.0rc0 (2015-05-30)
----------------------------
- Add a Changelog!

View File

@ -59,7 +59,7 @@ copyright = u'2015 ' + author
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
with io.open('../VERSION', encoding='utf8') as f:
with io.open(os.path.abspath('../bidict/VERSION'), encoding='utf8') as f:
# The full version, including alpha/beta/rc tags.
release = f.read().strip()

View File

@ -1,16 +1,21 @@
from io import open
from setuptools import setup, Command
from warnings import warn
try:
with open('VERSION', encoding='utf8') as f:
version = f.read()
except:
with open('bidict/VERSION', encoding='utf8') as f:
version = f.read().strip()
except Exception as e:
version = '999999'
warn('Could not open bidict/VERSION, using bogus version (%s): %r' %
(version, e))
try:
with open('README.rst', encoding='utf8') as f:
long_description = f.read()
except:
except Exception as e:
long_description = 'See https://bidict.readthedocs.org'
warn('Could not open README.rst, using provisional long_description '
'(%r): %r' % (long_description, e))
tests_require = [
'tox',
@ -44,8 +49,8 @@ setup(
keywords='dict, dictionary, mapping, bidirectional, bijection, bijective, injective, two-way, 2-way, double, inverse, reverse',
url='https://github.com/jab/bidict',
license='ISCL',
py_modules=['bidict'],
data_files=[('', ['VERSION'])],
packages=['bidict'],
package_data=dict(bidict=['VERSION']),
zip_safe=True,
classifiers=[
'Development Status :: 4 - Beta',