From 675aa76d5ca55874367784c5c45fb14987c50a4b Mon Sep 17 00:00:00 2001 From: KmolYuan Date: Sat, 12 Oct 2019 12:26:29 +0800 Subject: [PATCH] Support PEP 561. --- cython/python_solvespace/py.typed | 0 cython/setup.py | 11 +++-------- 2 files changed, 3 insertions(+), 8 deletions(-) create mode 100644 cython/python_solvespace/py.typed diff --git a/cython/python_solvespace/py.typed b/cython/python_solvespace/py.typed new file mode 100644 index 00000000..e69de29b diff --git a/cython/setup.py b/cython/setup.py index cdec73d9..cfd99374 100644 --- a/cython/setup.py +++ b/cython/setup.py @@ -8,12 +8,7 @@ __license__ = "GPLv3+" __email__ = "pyslvs@gmail.com" from os import walk -from os.path import ( - abspath, - dirname, - isdir, - join as pth_join, -) +from os.path import dirname, isdir, join as pth_join import re import codecs from setuptools import setup, Extension, find_packages @@ -148,7 +143,7 @@ setup( long_description_content_type='text/markdown', url="https://github.com/KmolYuan/solvespace", packages=find_packages(exclude=('tests',)), - package_data={'': ["*.pyi", "*.pxd"]}, + package_data={'': ["*.pyi", "*.pxd"], 'python_solvespace': ['py.typed']}, ext_modules=[Extension( "python_solvespace.slvs", sources, @@ -159,7 +154,7 @@ setup( zip_safe=False, python_requires=">=3.6", install_requires=read('requirements.txt').splitlines(), - test_suite="tests", + test_suite='tests', classifiers=[ "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7",