Browse Source

Use setuptools-git to include files from the repo

Fixes bug 1029511.

Change-Id: I5aef29ad10ac73a9645111f993621d596321ffcf
Roman Podolyaka 6 years ago
parent
commit
f78617803c
3 changed files with 6 additions and 7 deletions
  1. 3
    7
      MANIFEST.in
  2. 2
    0
      setup.py
  3. 1
    0
      tox.ini

+ 3
- 7
MANIFEST.in View File

@@ -1,10 +1,6 @@
1 1
 include AUTHORS
2
-include HACKING
3
-include LICENSE
4
-include README.rst
5 2
 include ChangeLog
6
-include run_tests.sh tox.ini
7 3
 include novaclient/versioninfo
8
-recursive-include doc *
9
-recursive-include tests *
10
-recursive-include tools *
4
+
5
+exclude .gitignore
6
+exclude .gitreview

+ 2
- 0
setup.py View File

@@ -35,6 +35,8 @@ setuptools.setup(
35 35
     packages=setuptools.find_packages(exclude=['tests', 'tests.*']),
36 36
     install_requires=setup.parse_requirements(),
37 37
     cmdclass=setup.get_cmdclass(),
38
+    setup_requires=['setuptools_git>=0.4'],
39
+    include_package_data=True,
38 40
     classifiers=[
39 41
         "Development Status :: 5 - Production/Stable",
40 42
         "Environment :: Console",

+ 1
- 0
tox.ini View File

@@ -9,6 +9,7 @@ setenv = VIRTUAL_ENV={envdir}
9 9
 
10 10
 deps = -r{toxinidir}/tools/pip-requires
11 11
        -r{toxinidir}/tools/test-requires
12
+       setuptools_git>=0.4
12 13
 commands = python setup.py testr --testr-args='{posargs}'
13 14
 
14 15
 [testenv:pep8]

Loading…
Cancel
Save