Skip to content

Commit

Permalink
TYPE: PEP 561 compatibity updates (pyproj4#680)
Browse files Browse the repository at this point in the history
  • Loading branch information
snowman2 authored Jul 6, 2020
1 parent 94c89b2 commit 5021f0e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ include MANIFEST.in
include pyproject.toml
include LICENSE
include Makefile
include pyproj/py.typed
include pyproj/*.pyd
include pyproj/*.pyx
include pyproj/*.pxd
Expand Down
Empty file added pyproj/py.typed
Empty file.
5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import os
import subprocess
import sys
from collections import defaultdict
from distutils.spawn import find_executable
from glob import glob

Expand Down Expand Up @@ -175,7 +174,7 @@ def get_package_data():
This function retrieves the package data
"""
# setup package data
package_data = defaultdict(list)
package_data = {"pyproj": ["*.pyi", "py.typed"]}
if os.environ.get("PROJ_WHEEL") is not None and os.path.exists(INTERNAL_PROJ_DIR):
package_data["pyproj"].append(
os.path.join(BASE_INTERNAL_PROJ_DIR, "share", "proj", "*")
Expand All @@ -184,7 +183,6 @@ def get_package_data():
os.path.join(CURRENT_FILE_PATH, "pyproj", ".lib")
):
package_data["pyproj"].append(os.path.join(".lib", "*"))

return package_data


Expand Down Expand Up @@ -240,4 +238,5 @@ def get_long_description():
python_requires=">=3.6",
ext_modules=get_extension_modules(),
package_data=get_package_data(),
zip_safe=False, # https://mypy.readthedocs.io/en/stable/installed_packages.html
)

0 comments on commit 5021f0e

Please sign in to comment.