mirror of https://github.com/borgbackup/borg.git
Merge pull request #3355 from ThomasWaldmann/package-data
clean up and simplify packaging
This commit is contained in:
commit
b9b5c1d25e
10
MANIFEST.in
10
MANIFEST.in
|
@ -1,8 +1,6 @@
|
||||||
include README.rst AUTHORS LICENSE CHANGES.rst MANIFEST.in
|
# stuff we need to include into the sdist is handled automatically by
|
||||||
exclude .coafile .coveragerc .gitattributes .gitignore .travis.yml Vagrantfile
|
# setuptools_scm - it includes all git-committed files.
|
||||||
|
# but we want to exclude some committed files/dirs not needed in the sdist:
|
||||||
|
exclude .coafile .coveragerc .editorconfig .gitattributes .gitignore .mailmap .travis.yml Vagrantfile
|
||||||
prune .travis
|
prune .travis
|
||||||
prune .github
|
prune .github
|
||||||
graft src
|
|
||||||
graft docs
|
|
||||||
prune docs/_build
|
|
||||||
global-exclude *.pyc *.orig *.so *.dll
|
|
||||||
|
|
8
setup.py
8
setup.py
|
@ -810,10 +810,12 @@ setup(
|
||||||
'borgfs = borg.archiver:main',
|
'borgfs = borg.archiver:main',
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
# See also the MANIFEST.in file.
|
||||||
|
# We want to install all the files in the package directories...
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
package_data={
|
# ...except the source files which have been compiled (C extensions):
|
||||||
'borg': ['paperkey.html'],
|
exclude_package_data={
|
||||||
'borg.testsuite': ['attic.tar.gz'],
|
'': ['*.c', '*.h', '*.pyx', ],
|
||||||
},
|
},
|
||||||
cmdclass=cmdclass,
|
cmdclass=cmdclass,
|
||||||
ext_modules=ext_modules,
|
ext_modules=ext_modules,
|
||||||
|
|
Loading…
Reference in New Issue