Skip to content

Commit

Permalink
Centralize __version__ variable to __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jchristgit committed Jul 25, 2017
1 parent 034d7d0 commit 13342b8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 4 additions & 2 deletions docs/conf.py
Expand Up @@ -22,6 +22,8 @@
import os
import sys

from pyflight import __version__ as pf_version

sys.path.insert(0, os.path.abspath('..'))

# -- General configuration ------------------------------------------------
Expand Down Expand Up @@ -70,9 +72,9 @@
# built documents.
#
# The short X.Y version.
version = '0.1.2'
version = pf_version
# The full version, including alpha/beta/rc tags.
release = '0.1.2'
release = pf_version

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
2 changes: 2 additions & 0 deletions pyflight/__init__.py
Expand Up @@ -4,3 +4,5 @@
from pyflight.rate_limiter import set_queries_per_day
from pyflight.requester import set_api_key, send_async, send_sync, Request, Slice
from pyflight.api import APIException

__version__ = '0.1.2'
4 changes: 3 additions & 1 deletion setup.py
Expand Up @@ -7,9 +7,11 @@
except ImportError:
long_description = open("README.md").read()

from pyflight import __version__ as version

setup(
name="pyflight",
version='0.1.2',
version=version,
description="An asynchronous Wrapper around Google's QPX Express API",
license="MIT",
author="Volcyy",
Expand Down

0 comments on commit 13342b8

Please sign in to comment.