Version bump (0.2.0-pre1)
This commit is contained in:
@@ -18,7 +18,7 @@ import os.path
|
||||
import subprocess
|
||||
|
||||
|
||||
__version__ = '0.2.0-dev'
|
||||
__version__ = '0.2.0-pre1'
|
||||
|
||||
if '__file__' in globals():
|
||||
# Check if this is a git repo; maybe we can get more precise version info
|
||||
@@ -30,7 +30,7 @@ if '__file__' in globals():
|
||||
git.wait()
|
||||
git.stderr.read()
|
||||
if git.returncode == 0:
|
||||
__version__ = git.stdout.read().strip()
|
||||
__version__ = git.stdout.read().strip().lstrip('v')
|
||||
if type(__version__).__name__ == 'bytes':
|
||||
__version__ = __version__.decode()
|
||||
except:
|
||||
|
||||
2
requirements.txt
Normal file
2
requirements.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
requests>=1
|
||||
six
|
||||
3
requirements26.txt
Normal file
3
requirements26.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
argparse
|
||||
requests>=1
|
||||
six
|
||||
15
setup.py
15
setup.py
@@ -1,4 +1,4 @@
|
||||
# Copyright (c) 2012, Eucalyptus Systems, Inc.
|
||||
# Copyright (c) 2012-2014, Eucalyptus Systems, Inc.
|
||||
#
|
||||
# Permission to use, copy, modify, and/or distribute this software for
|
||||
# any purpose with or without fee is hereby granted, provided that the
|
||||
@@ -15,11 +15,19 @@
|
||||
from distutils.command.build_py import build_py
|
||||
from distutils.command.sdist import sdist
|
||||
import os.path
|
||||
import sys
|
||||
|
||||
from setuptools import find_packages, setup
|
||||
|
||||
from requestbuilder import __version__
|
||||
|
||||
|
||||
requirements = ['requests>=1',
|
||||
'six']
|
||||
if sys.version_info < (2, 7):
|
||||
requirements.append('argparse')
|
||||
|
||||
|
||||
class build_py_with_git_version(build_py):
|
||||
'''Like build_py, but also hardcoding the version in __init__.__version__
|
||||
so it's consistent even outside of the source tree'''
|
||||
@@ -67,10 +75,9 @@ setup(name='requestbuilder',
|
||||
description='Command line-driven HTTP request builder',
|
||||
author='Garrett Holmstrom (gholms)',
|
||||
author_email='gholms@devzero.com',
|
||||
url='https://github.com/boto/requestbuilder',
|
||||
packages=find_packages(),
|
||||
install_requires=['argparse',
|
||||
'requests>=1',
|
||||
'six'],
|
||||
install_requires=requirements,
|
||||
license='ISC',
|
||||
platforms='Posix; MacOS X',
|
||||
classifiers=['Development Status :: 3 - Alpha',
|
||||
|
||||
Reference in New Issue
Block a user