Skip to content

Commit

Permalink
version variable in __init__ added, setup.py file improved to use it
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuba Janoszek committed Nov 9, 2011
1 parent e3548b6 commit 6cc7d2b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion nbp/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# -*- coding: utf-8 -*-
VERSION = '1.0.1'

from datetime import datetime, date # "date" for user usage only
import table



def download_and_parse_table(date, table_type):
"""
Downloads latest NBP table for given 'date' and 'table_type'
Expand Down
6 changes: 4 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@
import os
from setuptools import setup, find_packages

import nbp


setup(
name='nbp',
version='1.0',
version=nbp.VERSION,
description='Polish National Bank currency rate downloader.',
author='Kuba Janoszek',
author_email='[email protected]',
url='https://github.com/jqb/python-nbp/tree/ver-1.0',
url='https://github.com/jqb/python-nbp/tree/ver-%s' % nbp.VERSION,
packages=find_packages(),
classifiers=[
'Development Status :: 4 - Beta',
Expand Down

0 comments on commit 6cc7d2b

Please sign in to comment.