|
102 | 102 |
|
103 | 103 | # You can just specify the packages manually here if your project is |
104 | 104 | # simple. Or you can use find_packages(). |
105 | | - packages=find_packages(exclude=['contrib', 'docs', 'tests']), |
| 105 | + packages=find_packages(exclude=['contrib', 'docs', '*tests*']), |
106 | 106 |
|
107 | 107 | # Alternatively, if you want to distribute just a my_module.py, uncomment |
108 | 108 | # this: |
|
130 | 130 | # $ pip install -e .[dev,test] |
131 | 131 | extras_require=EXTRAS_REQUIRE, |
132 | 132 |
|
133 | | - obsoletes=OBSOLETES |
| 133 | + obsoletes=OBSOLETES, |
134 | 134 |
|
135 | 135 | # If there are data files included in your packages that need to be |
136 | 136 | # installed, specify them here. If using Python 2.6 or less, then these |
137 | 137 | # have to be included in MANIFEST.in as well. |
138 | | - # package_data={ |
139 | | - # 'sample': ['package_data.dat'], |
140 | | - # }, |
| 138 | + # Note: we use the empty string so that this also works with submodules |
| 139 | + package_data={"": ['py.typed', '*.pyi']}, |
| 140 | + # IMPORTANT: DO NOT set the `include_package_data` flag !! It triggers inclusion of all git-versioned files |
| 141 | + # see https://github.com/pypa/setuptools_scm/issues/190#issuecomment-351181286 |
| 142 | + # include_package_data=True, |
141 | 143 |
|
142 | 144 | # Although 'package_data' is the preferred approach, in some case you may |
143 | 145 | # need to place data files outside of your packages. See: |
|
153 | 155 | # 'sample=sample:main', |
154 | 156 | # ], |
155 | 157 | # }, |
| 158 | + |
| 159 | + # explicitly setting the flag to avoid `ply` being downloaded |
| 160 | + # see https://github.com/smarie/python-getversion/pull/5 |
| 161 | + # and to make mypy happy |
| 162 | + # see https://mypy.readthedocs.io/en/latest/installed_packages.html |
| 163 | + zip_safe=False, |
156 | 164 | ) |
0 commit comments