Closed seahawk1986 closed 7 years ago
I'm having the same problem and would love to see it fixed! Would it be possible to submit a pull request with your changes? Thanks in advance!
I dug a little deeper into the setuptools documentation (https://setuptools.readthedocs.io/en/latest/setuptools.html?highlight=include_package_data#including-data-files) - the missing entries in the MANIFEST.in for those files seem to be the real cause for the missing files:
if using the setuptools-specific include_package_data argument, files specified by package_data will not be automatically added to the manifest unless they are listed in the MANIFEST.in file.
So including those files to the MANIFEST.in seems to be the better solution (the file tzwhere/tz_world.csv
mentioned in MANIFEST.in has been removed in https://github.com/pegler/pytzwhere/commit/df871d2dfaed96a8d537b0f57f2a6d00fd2bb024 )
Thanks @linwoodc3 and @seahawk1986 for the pull requests. I ended up using @linwoodc3's since it added compression. I just pushed version 3.0.2 to PyPI
I'm an idiot. Careless mistake. I left the test name in the Manifest file.
This...
tzwhere/worldtest.json.gz
Needs to change to this...
include tzwhere/tz_world.json.gz
That's why the file is missing....
@linwoodc3 I just pushed v 3.0.3 with the fix
Hello, when installing tzwhere in a venv with pip using Python 3.6 (or 3.5) both json files 'tz_world.json' and 'tz_world_shortcuts.json' are missing:
Removing the Line "include_package_data=True," from the setup.py (https://github.com/pegler/pytzwhere/blob/master/setup.py#L19) seems to fix the problem - is this needed by anything else?