Support PEP 561.

pull/493/head
KmolYuan 2019-10-12 12:26:29 +08:00
parent 2da3e6bf80
commit 675aa76d5c
2 changed files with 3 additions and 8 deletions

View File

View File

@ -8,12 +8,7 @@ __license__ = "GPLv3+"
__email__ = "pyslvs@gmail.com" __email__ = "pyslvs@gmail.com"
from os import walk from os import walk
from os.path import ( from os.path import dirname, isdir, join as pth_join
abspath,
dirname,
isdir,
join as pth_join,
)
import re import re
import codecs import codecs
from setuptools import setup, Extension, find_packages from setuptools import setup, Extension, find_packages
@ -148,7 +143,7 @@ setup(
long_description_content_type='text/markdown', long_description_content_type='text/markdown',
url="https://github.com/KmolYuan/solvespace", url="https://github.com/KmolYuan/solvespace",
packages=find_packages(exclude=('tests',)), packages=find_packages(exclude=('tests',)),
package_data={'': ["*.pyi", "*.pxd"]}, package_data={'': ["*.pyi", "*.pxd"], 'python_solvespace': ['py.typed']},
ext_modules=[Extension( ext_modules=[Extension(
"python_solvespace.slvs", "python_solvespace.slvs",
sources, sources,
@ -159,7 +154,7 @@ setup(
zip_safe=False, zip_safe=False,
python_requires=">=3.6", python_requires=">=3.6",
install_requires=read('requirements.txt').splitlines(), install_requires=read('requirements.txt').splitlines(),
test_suite="tests", test_suite='tests',
classifiers=[ classifiers=[
"Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.7",