Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only define version number in one place #49

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import os

from setuptools import setup, find_packages
from twingly_search.version import version

if 'GENERATE_RST' in os.environ:
import pypandoc
Expand All @@ -19,7 +20,7 @@

setup(
name='twingly-search',
version='2.1.3',
version=version,
author='Twingly AB',
author_email='support@twingly.com',
license='MIT',
Expand Down
4 changes: 3 additions & 1 deletion twingly_search/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
"""A library provides Python interface to the Twingly Search API"""
from __future__ import absolute_import

from .version import version

__author__ = 'Twingly AB'
__version__ = '2.1.3'
__version__ = version

from .client import Client
from .errors import TwinglySearchException
Expand Down
3 changes: 3 additions & 0 deletions twingly_search/version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env python

version = '2.1.3'