improve manifest / package data management, fixes #373
setuptools-scm manages the MANIFEST automatically considering all committed files, we only need to define exceptions from that rule. setup.py: remove package_data, not needed if we use: - include_package_data=True - exclude_package_data (if needed)
This commit is contained in:
parent
974af1e72d
commit
a827f338d5
24
MANIFEST.in
24
MANIFEST.in
@ -1,15 +1,9 @@
|
|||||||
include README.rst CHANGES.rst LICENSE AUTHORS
|
# stuff we need to include into the sdist is handled automatically by
|
||||||
include setup.cfg setup.py
|
# setuptools_scm - it includes all git-committed files.
|
||||||
include conftest.py
|
# but we want to include some non-committed files/dirs needed in
|
||||||
recursive-include docs *
|
# the sdist and exclude some committed files/dirs not needed in the sdist:
|
||||||
recursive-exclude docs *.pyc
|
exclude .gitattributes .gitignore .travis.yml
|
||||||
recursive-exclude docs *.pyo
|
exclude manage.py requirements.txt
|
||||||
recursive-include nsupdate/locale *.po
|
prune .tx
|
||||||
recursive-include nsupdate/locale *.mo
|
prune logo
|
||||||
recursive-include nsupdate/static *
|
prune scripts/travis
|
||||||
recursive-include nsupdate/templates *
|
|
||||||
recursive-include nsupdate/login/templates *
|
|
||||||
recursive-include nsupdate/main/templates *
|
|
||||||
recursive-include nsupdate/accounts/templates *
|
|
||||||
prune docs/_build
|
|
||||||
|
|
||||||
|
24
setup.py
24
setup.py
@ -20,28 +20,8 @@ setup(
|
|||||||
keywords="dyndns ddns dynamic dns django",
|
keywords="dyndns ddns dynamic dns django",
|
||||||
packages=find_packages('src', exclude=['_tests', ]),
|
packages=find_packages('src', exclude=['_tests', ]),
|
||||||
package_dir={'': 'src'},
|
package_dir={'': 'src'},
|
||||||
package_data={
|
# See also the MANIFEST.in file.
|
||||||
'nsupdate': [
|
# We want to install all the files in the package directories:
|
||||||
'templates/*.html',
|
|
||||||
'templates/includes/*.html',
|
|
||||||
'static/*.html',
|
|
||||||
'static/*.png',
|
|
||||||
'static/css/*.css',
|
|
||||||
'locale/*/LC_MESSAGES/*',
|
|
||||||
],
|
|
||||||
'nsupdate.accounts': [
|
|
||||||
'templates/accounts/*.html',
|
|
||||||
'templates/registration/*.html',
|
|
||||||
'templates/registration/*.txt',
|
|
||||||
],
|
|
||||||
'nsupdate.login': [
|
|
||||||
'templates/*.html',
|
|
||||||
],
|
|
||||||
'nsupdate.main': [
|
|
||||||
'templates/main/*.html',
|
|
||||||
'templates/main/includes/*.html',
|
|
||||||
],
|
|
||||||
},
|
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
zip_safe=False,
|
zip_safe=False,
|
||||||
platforms='any',
|
platforms='any',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user