2 # -*- coding: utf-8 -*-
5 from setuptools import setup, find_packages
9 # Fabric needs Python 2.
10 if sys.version_info[0] > 2:
11 from subprocess import check_call
13 ve = os.environ.get('VIRTUAL_ENV')
15 print('Not in virtualenv!')
17 subve = os.path.join(ve, 'fnpdeploy_ve')
18 check_call(['virtualenv', '--python', '/usr/bin/python2.7', subve])
19 check_call([os.path.join(subve, 'bin/python')] + sys.argv)
26 packages = ['fnpdeploy']
28 'fnpdeploy': ['templates/*.template'],
30 scripts = ['bin/git-archive-all.sh']
31 install_requires = ['Fabric']
37 author='Radek Czajka',
38 author_email='radekczajka@nowoczesnapolska.org.pl',
41 package_data=package_data,
43 install_requires=install_requires,
44 test_suite='nose.collector',
45 tests_require=['nose'],