MANIFEST.in: include all the files that should be included in source dist
One notable absence was README.md... :) For the testdata/*, I now use `include_package_data=True` in setup.py, to automatically install any data files found inside package directories that are also specified in MANIFEST.in file. I also include the Snippets, which I think should belong to the source distribution, despite not being installed as console scripts like ttx, etc. The MANIFEST.in does not need to include itself (done by default).
This commit is contained in:
parent
3796a8ba05
commit
5f94d8b2df
12
MANIFEST.in
12
MANIFEST.in
@ -1,4 +1,14 @@
|
|||||||
|
include README.md
|
||||||
include LICENSE
|
include LICENSE
|
||||||
include MANIFEST.in
|
include NEWS
|
||||||
|
include Snippets/*.py
|
||||||
|
include Snippets/README.md
|
||||||
include MetaTools/*.py
|
include MetaTools/*.py
|
||||||
include Lib/fontTools/ttLib/tables/table_API_readme.txt
|
include Lib/fontTools/ttLib/tables/table_API_readme.txt
|
||||||
|
|
||||||
|
include *requirements.txt
|
||||||
|
include tox.ini
|
||||||
|
|
||||||
|
recursive-include Lib/fontTools *testdata/*.ttx *testdata/*.otx *testdata/*.fea
|
||||||
|
recursive-include Lib/fontTools *testdata/*.lwfn *testdata/*.pfa *testdata/*.pfb
|
||||||
|
recursive-include Lib/fontTools *testdata/*.xml *testdata/*.designspace
|
||||||
|
14
setup.py
14
setup.py
@ -53,19 +53,7 @@ setup(
|
|||||||
packages=find_packages("Lib"),
|
packages=find_packages("Lib"),
|
||||||
py_modules=['sstruct', 'xmlWriter'],
|
py_modules=['sstruct', 'xmlWriter'],
|
||||||
extra_path='FontTools',
|
extra_path='FontTools',
|
||||||
package_data={
|
include_package_data=True,
|
||||||
'': [
|
|
||||||
# include files used by the test suite
|
|
||||||
'testdata/*.ttx',
|
|
||||||
'testdata/*.otx',
|
|
||||||
'testdata/*.fea',
|
|
||||||
'testdata/*.lwfn',
|
|
||||||
'testdata/*.pfa',
|
|
||||||
'testdata/*.pfb',
|
|
||||||
'testdata/*.xml',
|
|
||||||
'testdata/*.designspace',
|
|
||||||
]
|
|
||||||
},
|
|
||||||
entry_points={
|
entry_points={
|
||||||
'console_scripts': [
|
'console_scripts': [
|
||||||
"ttx = fontTools.ttx:main",
|
"ttx = fontTools.ttx:main",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user