-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
package_data are not installed when installing pytzwhere with pip in a venv #45
Comments
I'm having the same problem and would love to see it fixed! |
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:
So including those files to the MANIFEST.in seems to be the better solution (the file #46 should fix the installation of those files. |
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 |
* 'master' of https://github.com/pegler/pytzwhere: Update README to include example for forceTZ add worldtest.json.gz to manifest. bump version bump to 3.0.2 Reduces size of module bt 1/3. Achieves 94% code coverage, relating to pegler#8. Closes pegler#45. This is also an update to pegler#46 and @seahawks code to include the files on the MANIFEST file.. add json files to MANIFEST.in, remove obsolete .csv file
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?
The text was updated successfully, but these errors were encountered: