From 0faa6aac3e5b5059049aee06a37878ccabe76b0c Mon Sep 17 00:00:00 2001 From: Ilya Kreymer Date: Mon, 23 Mar 2015 11:04:41 -0700 Subject: [PATCH] setup: set version in pywb __init__.py --- pywb/__init__.py | 4 +++- setup.py | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/pywb/__init__.py b/pywb/__init__.py index e96a5b1d..aa781550 100644 --- a/pywb/__init__.py +++ b/pywb/__init__.py @@ -1,8 +1,10 @@ -import os +__version__ = '0.9.0' DEFAULT_CONFIG = 'pywb/default_config.yaml' + def get_test_dir(): + import os return os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', 'sample_archive') + os.path.sep diff --git a/setup.py b/setup.py index e1647a72..d820b922 100755 --- a/setup.py +++ b/setup.py @@ -5,6 +5,8 @@ from setuptools import setup, find_packages from setuptools.command.test import test as TestCommand import glob +from pywb import __version__ + # Fix for TypeError: 'NoneType' object is not callable" error # when running 'python setup.py test' @@ -34,11 +36,11 @@ class PyTest(TestCommand): setup( name='pywb', - version='0.9.0b2', + version=__version__, url='https://github.com/ikreymer/pywb', author='Ilya Kreymer', author_email='ikreymer@gmail.com', - description='Python WayBack Machine for web archive replay', + description='Python WayBack for web archive replay and live web proxy', long_description=long_description, license='GPL', packages=find_packages(),