11import platform
22
33from setuptools import setup
4-
5- try :
6- from setuptools_rust import Binding , RustExtension
7- except ImportError :
8- from textwrap import dedent
9-
10- raise ImportError (
11- dedent (
12- """
13- `setuptools-rust` is a required dependency to run `setup.py`.
14- This should not happen if you're using `pip>=10` as it honors `pyproject.toml`.
15- This usually (at least on our workflows) might happen while
16- building source-distribution.
17- """
18- )
19- )
4+ from setuptools_rust import Binding , RustExtension
205
216
227def call_setup ():
@@ -31,17 +16,15 @@ def call_setup():
3116 author_email = "dadygalo@gmail.com" ,
3217 maintainer = "Dmitry Dygalo" ,
3318 maintainer_email = "dadygalo@gmail.com" ,
34- python_requires = ">=3.6 " ,
19+ python_requires = ">=3.7 " ,
3520 url = "https://github.com/Stranger6667/css-inline/tree/master/bindings/python" ,
3621 license = "MIT" ,
3722 rust_extensions = [
3823 RustExtension (
3924 "css_inline" ,
4025 py_limited_api = True ,
4126 features = (
42- []
43- if platform .python_implementation () == "PyPy"
44- else ["pyo3/abi3-py36" ]
27+ [] if platform .python_implementation () == "PyPy" else ["pyo3/abi3" ]
4528 ),
4629 rust_version = ">=1.54.0" ,
4730 )
@@ -54,7 +37,6 @@ def call_setup():
5437 "Operating System :: Microsoft :: Windows" ,
5538 "Operating System :: POSIX" ,
5639 "Programming Language :: Python :: 3" ,
57- "Programming Language :: Python :: 3.6" ,
5840 "Programming Language :: Python :: 3.7" ,
5941 "Programming Language :: Python :: 3.8" ,
6042 "Programming Language :: Python :: 3.9" ,
0 commit comments