Skip to content

Commit

Permalink
Add version to init, update tox
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkduvall committed May 10, 2015
1 parent 51044bd commit 3663aaf
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 3 deletions.
6 changes: 4 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# -*- coding: utf-8 -*-
# flake8: noqa
#
# serpy documentation build configuration file, created by
# sphinx-quickstart on Thu Apr 2 22:25:55 2015.
Expand All @@ -19,6 +20,7 @@
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
sys.path.insert(0, os.path.join(os.path.abspath('.'), os.pardir))
import serpy

# -- General configuration ------------------------------------------------

Expand Down Expand Up @@ -57,9 +59,9 @@
# built documents.
#
# The short X.Y version.
version = '0.0.3'
version = serpy.__version__
# The full version, including alpha/beta/rc tags.
release = '0.0.3'
release = serpy.__version__

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ mccabe==0.3
pep8==1.5.7
py==1.4.26
pyflakes==0.8.1
six==1.9.0
tox==1.9.2
virtualenv==12.0.7
wheel==0.24.0
4 changes: 4 additions & 0 deletions serpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
Field, BoolField, IntField, FloatField, MethodField, StrField)
from serpy.serializer import Serializer, DictSerializer

__version__ = '0.0.3'
__author__ = 'Clark DuVall'
__license__ = 'MIT'

__all__ = [
'Serializer',
'DictSerializer',
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from codecs import open
from os import path
from setuptools import setup, find_packages
import serpy

here = path.abspath(path.dirname(__file__))

Expand All @@ -9,7 +10,7 @@

setup(
name='serpy',
version='0.0.3',
version=serpy.__version__,
description='ridiculously fast object serialization',
long_description=long_description,
url='https://github.com/clarkduvall/serpy',
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ envlist = py26, py27, py32, py33, py34, pypy
[testenv]
commands = {envpython} setup.py test
deps =
six==1.9.0

[testenv:benchmarks]
deps =
Expand Down

0 comments on commit 3663aaf

Please sign in to comment.