1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
import os
import re
from setuptools import setup
# parse version from package/module without importing or evaluating the code
with open('vagrant/__init__.py') as fh:
for line in fh:
m = re.search(r"^__version__ = '(?P<version>[^']+)'$", line)
if m:
version = m.group('version')
break
setup(
name = 'python-vagrant',
version = version,
license = 'MIT',
description = 'Python bindings for interacting with Vagrant virtual machines.',
long_description = open(os.path.join(os.path.dirname(__file__),
'README.md')).read(),
keywords = 'python virtual machine box vagrant virtualbox vagrantfile',
url = 'https://github.com/todddeluca/python-vagrant',
author = 'Todd Francis DeLuca',
author_email = 'todddeluca@yahoo.com',
classifiers = ['License :: OSI Approved :: MIT License',
'Development Status :: 4 - Beta',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
packages = ['vagrant'],
)
|