From 6d9ddf1c3737762fa12ce3b910075ed05da48cd9 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Thu, 28 Jun 2012 07:45:35 -0700 Subject: [PATCH] Use setuptools git plugin for file inclusion. Fixes bug 1018833. We're looking at this as a possible pan-project option instead of manual MANIFEST.in inclusion and then looking for where the tarballs differ. Change-Id: I25287d5aca2046c6b613b05d54281533bdd6f79f --- MANIFEST.in | 36 +++++++----------------------------- setup.py | 1 + tools/install_venv.py | 2 ++ tox.ini | 4 +++- 4 files changed, 13 insertions(+), 30 deletions(-) diff --git a/MANIFEST.in b/MANIFEST.in index 409334c50e4..74fc5578616 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,29 +1,7 @@ -include HACKING.rst -include README LICENSE TESTING AUTHORS -include run_tests.py run_tests.sh -include .pylintrc -include openstack-common.conf -include bin/* -graft doc/* -include doc/Makefile doc/pom.xml -include etc/* -include etc/init.d/* -include etc/quantum/plugins/openvswitch/*.ini -include etc/quantum/plugins/cisco/*.ini -include etc/quantum/plugins/cisco/quantum.conf.ciscoext -include etc/quantum/plugins/linuxbridge/*.ini -include etc/quantum/plugins/nicira/* -include etc/quantum/plugins/ryu/*.ini -include quantum/plugins/*/README -include quantum/plugins/cisco/services/README -include quantum/plugins/nicira/nicira_nvp_plugin/* -include quantum/plugins/nicira/nicira_nvp_plugin/tests/* -include quantum/plugins/openvswitch/Makefile -include quantum/plugins/openvswitch/tests/unit/*.txt -include quantum/plugins/openvswitch/agent/xenserver_install.sh -include tools/build_debs.sh -include tools/clean.sh -include tools/pip-requires tools/test-requires -include tools/rfc.sh -include tools/with_venv.sh -include tox.ini +include AUTHORS +include ChangeLog + +exclude .gitignore +exclude .gitreview + +global-exclude *.pyc diff --git a/setup.py b/setup.py index e046a1ae817..5cd63da3930 100644 --- a/setup.py +++ b/setup.py @@ -82,6 +82,7 @@ setuptools.setup( install_requires=requires, dependency_links=depend_links, include_package_data=False, + setup_requires=['setuptools_git>=0.4'], packages=setuptools.find_packages('.'), cmdclass=setup.get_cmdclass(), data_files=DataFiles, diff --git a/tools/install_venv.py b/tools/install_venv.py index a8314f5df5c..30ced96a3c9 100644 --- a/tools/install_venv.py +++ b/tools/install_venv.py @@ -97,6 +97,8 @@ def install_dependencies(venv=VENV): PIP_REQUIRES], redirect_output=False) run_command(['tools/with_venv.sh', 'pip', 'install', '-r', TEST_REQUIRES], redirect_output=False) + run_command(['tools/with_venv.sh', 'pip', 'install', + 'setuptools_git>=0.4'], redirect_output=False) # Tell the virtual env how to "import quantum" pthfile = os.path.join(venv, "lib", PY_VERSION, "site-packages", diff --git a/tox.ini b/tox.ini index 0d3d4d139a6..3a5cf4573eb 100644 --- a/tox.ini +++ b/tox.ini @@ -11,6 +11,7 @@ setenv = VIRTUAL_ENV={envdir} NOSE_OPENSTACK_STDOUT=1 deps = -r{toxinidir}/tools/pip-requires -r{toxinidir}/tools/test-requires + setuptools_git>=0.4 commands = nosetests {posargs} [tox:jenkins] @@ -19,7 +20,8 @@ downloadcache = ~/cache/pip [testenv:pep8] deps = pep8 -commands = pep8 --repeat --show-source --exclude=.venv,.tox,dist,doc . + setuptools_git>=0.4 +commands = pep8 --repeat --show-source --exclude=.venv,.tox,dist,doc,*egg . [testenv:cover] setenv = NOSE_WITH_COVERAGE=1