mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-15 00:03:28 +01:00
setup: set version in pywb __init__.py
This commit is contained in:
parent
ced0ed208e
commit
0faa6aac3e
@ -1,8 +1,10 @@
|
|||||||
import os
|
__version__ = '0.9.0'
|
||||||
|
|
||||||
DEFAULT_CONFIG = 'pywb/default_config.yaml'
|
DEFAULT_CONFIG = 'pywb/default_config.yaml'
|
||||||
|
|
||||||
|
|
||||||
def get_test_dir():
|
def get_test_dir():
|
||||||
|
import os
|
||||||
return os.path.join(os.path.dirname(os.path.realpath(__file__)),
|
return os.path.join(os.path.dirname(os.path.realpath(__file__)),
|
||||||
'..',
|
'..',
|
||||||
'sample_archive') + os.path.sep
|
'sample_archive') + os.path.sep
|
||||||
|
6
setup.py
6
setup.py
@ -5,6 +5,8 @@ from setuptools import setup, find_packages
|
|||||||
from setuptools.command.test import test as TestCommand
|
from setuptools.command.test import test as TestCommand
|
||||||
import glob
|
import glob
|
||||||
|
|
||||||
|
from pywb import __version__
|
||||||
|
|
||||||
|
|
||||||
# Fix for TypeError: 'NoneType' object is not callable" error
|
# Fix for TypeError: 'NoneType' object is not callable" error
|
||||||
# when running 'python setup.py test'
|
# when running 'python setup.py test'
|
||||||
@ -34,11 +36,11 @@ class PyTest(TestCommand):
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='pywb',
|
name='pywb',
|
||||||
version='0.9.0b2',
|
version=__version__,
|
||||||
url='https://github.com/ikreymer/pywb',
|
url='https://github.com/ikreymer/pywb',
|
||||||
author='Ilya Kreymer',
|
author='Ilya Kreymer',
|
||||||
author_email='ikreymer@gmail.com',
|
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,
|
long_description=long_description,
|
||||||
license='GPL',
|
license='GPL',
|
||||||
packages=find_packages(),
|
packages=find_packages(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user