1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-23 00:07:38 +00:00

clean up and simplify packaging

1.1.2 was released with a sdist that included quite some files that
did not belong into the package (I tried nuitka at some time).

This was because the old MANIFEST.in / setup.py included all the stuff
in the package dir.

Now, setuptools_scm is to automatically deal with the INCLUDES and
MANIFEST.in only handles the EXCLUDES, so only committed files get
into the sdist (minus some we do not want).

Also, no .c .h .pyx files will be installed - they are not needed as
they have been compiled into binary files.
This commit is contained in:
Thomas Waldmann 2017-11-24 05:00:23 +01:00
parent afc84cafd4
commit feb428b4e0
2 changed files with 9 additions and 9 deletions

View file

@ -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

View file

@ -810,10 +810,12 @@ def run(self):
'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,