Ver código fonte

Added setup.py

nuwan_ag 10 anos atrás
pai
commit
4b12ccfb9b
3 arquivos alterados com 37 adições e 2 exclusões
  1. 1 1
      requirements.txt
  2. 34 0
      setup.py
  3. 2 1
      test/__init__.py

+ 1 - 1
requirements.txt

@@ -1 +1 @@
-bunch==1.01
+-e .

+ 34 - 0
setup.py

@@ -0,0 +1,34 @@
+from setuptools import setup, find_packages
+
+
+setup(name='cloudbridge',
+      version=0.1,
+      description='A simple layer of abstraction over multiple cloud providers.',
+      author='Galaxy and GVL Projects',
+      author_email='support@genome.edu.au',
+      url='http://cloudbridge.readthedocs.org/',
+      install_requires=['bunch>=1.00', 'python-keystoneclient', 'python-novaclient', 'boto'],
+      packages=find_packages(),
+      license='MIT',
+      classifiers=[
+          'Development Status :: 2 - Pre-Alpha',
+          'Environment :: Console',
+          'Intended Audience :: Developers',
+          'Intended Audience :: System Administrators',
+          'License :: OSI Approved :: MIT License',
+          'Operating System :: OS Independent',
+          'Programming Language :: Python',
+          'Topic :: Software Development :: Libraries :: Python Modules',
+          'Programming Language :: Python :: 2.5',
+          'Programming Language :: Python :: 2.6',
+          'Programming Language :: Python :: 2.7',
+          'Programming Language :: Python :: 3',
+          'Programming Language :: Python :: 3.0',
+          'Programming Language :: Python :: 3.1',
+          'Programming Language :: Python :: 3.2',
+          'Programming Language :: Python :: 3.3',
+          'Programming Language :: Python :: 3.4',
+          'Programming Language :: Python :: Implementation :: CPython'
+          'Programming Language :: Python :: Implementation :: PyPy'],
+      test_suite="test"
+      )

+ 2 - 1
test/__init__.py

@@ -13,7 +13,8 @@ automatically generate a new Python class for each combination of test and provi
 load_tests protocol (https://docs.python.org/2/library/unittest.html#load-tests-protocol)
 load_tests protocol (https://docs.python.org/2/library/unittest.html#load-tests-protocol)
 is used to aid test discovery.
 is used to aid test discovery.
 
 
-Use ``python -m unittest tests`` to run these unit tests. (alternatively, use ``nose2 tests``)
+Use ``python setup.py test`` to run these unit tests. (alternatively,use
+``python -m unittest test``)
 
 
 All test cases need to be registered below, and available providers will be discovered through
 All test cases need to be registered below, and available providers will be discovered through
 the ProviderFactory. Test Cases must not inherit from unittest.TestCase, to avoid confusing
 the ProviderFactory. Test Cases must not inherit from unittest.TestCase, to avoid confusing