Skip to content

Commit

Permalink
Share version
Browse files Browse the repository at this point in the history
  • Loading branch information
alfred82santa committed Nov 2, 2016
1 parent ae00e01 commit 6fa4282
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
2 changes: 2 additions & 0 deletions README.rst
Expand Up @@ -93,6 +93,8 @@ Version 0.9.0
- Fixes on requirements.
- Fixes on formatter iters.
- Fixes on code.
- Added ``__version__`` to main package file.
- Synchronized version between main packege file, ``setup.py`` and docs.


Version 0.8.1
Expand Down
2 changes: 2 additions & 0 deletions dirty_models/__init__.py
Expand Up @@ -6,3 +6,5 @@

from .models import *
from .fields import *

__version__ = '0.9.0'
9 changes: 5 additions & 4 deletions docs/source/conf.py
Expand Up @@ -15,7 +15,7 @@

import sys
import os

from datetime import datetime
dirty_models_path = os.path.join(os.path.dirname(__file__), '..', '..')
sys.path.insert(0, dirty_models_path)
# If extensions (or modules to document with autodoc) are in another directory,
Expand Down Expand Up @@ -57,17 +57,18 @@

# General information about the project.
project = 'Dirty Models'
copyright = '2016, alfred82santa, tmarques82, padajuan, xejarque, oarnau'
copyright = '{}, alfred82santa, tmarques82, padajuan, xejarque, oarnau'.format(datetime.now().year)
author = 'alfred82santa, tmarques82, padajuan, xejarque, oarnau'

# 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.
#
from dirty_models import __version__
# The short X.Y version.
version = '0.9.0'
version = __version__
# The full version, including alpha/beta/rc tags.
release = '0.9.0'
release = __version__

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
5 changes: 4 additions & 1 deletion setup.py
@@ -1,8 +1,11 @@
import sys

import os
import re
from setuptools import setup

import dirty_models

install_requires = ['python-dateutil']

if sys.version_info < (3, 4):
Expand All @@ -19,7 +22,7 @@
name='dirty-models',
url='https://github.com/alfred82santa/dirty-models',
author='alfred82santa',
version='0.9.0',
version=dirty_models.__version__,
author_email='alfred82santa@gmail.com',
license='BSD',
classifiers=[
Expand Down

0 comments on commit 6fa4282

Please sign in to comment.