|  | 
| 1 | 1 | import platform | 
| 2 | 2 | 
 | 
| 3 | 3 | from setuptools import setup | 
| 4 |  | -from setuptools_rust import Binding, RustExtension | 
|  | 4 | +from setuptools_rust import RustExtension | 
| 5 | 5 | 
 | 
| 6 | 6 | 
 | 
| 7 |  | -def call_setup(): | 
| 8 |  | -    setup( | 
| 9 |  | -        name="css_inline", | 
| 10 |  | -        version="0.8.3", | 
| 11 |  | -        description="Fast CSS inlining written in Rust", | 
| 12 |  | -        long_description=open("README.md", encoding="utf-8").read(), | 
| 13 |  | -        long_description_content_type="text/markdown", | 
| 14 |  | -        keywords="css inline html rust", | 
| 15 |  | -        author="Dmitry Dygalo", | 
| 16 |  | - | 
| 17 |  | -        maintainer="Dmitry Dygalo", | 
| 18 |  | -        maintainer_email="[email protected]", | 
| 19 |  | -        python_requires=">=3.7", | 
| 20 |  | -        url="https://github.com/Stranger6667/css-inline/tree/master/bindings/python", | 
| 21 |  | -        license="MIT", | 
| 22 |  | -        rust_extensions=[ | 
| 23 |  | -            RustExtension( | 
| 24 |  | -                "css_inline", | 
| 25 |  | -                py_limited_api=True, | 
| 26 |  | -                features=( | 
| 27 |  | -                    [] if platform.python_implementation() == "PyPy" else ["pyo3/abi3"] | 
| 28 |  | -                ), | 
| 29 |  | -                rust_version=">=1.54.0", | 
| 30 |  | -            ) | 
| 31 |  | -        ], | 
| 32 |  | -        classifiers=[ | 
| 33 |  | -            "Development Status :: 4 - Beta", | 
| 34 |  | -            "Intended Audience :: Developers", | 
| 35 |  | -            "License :: OSI Approved :: MIT License", | 
| 36 |  | -            "Operating System :: MacOS :: MacOS X", | 
| 37 |  | -            "Operating System :: Microsoft :: Windows", | 
| 38 |  | -            "Operating System :: POSIX", | 
| 39 |  | -            "Programming Language :: Python :: 3", | 
| 40 |  | -            "Programming Language :: Python :: 3.7", | 
| 41 |  | -            "Programming Language :: Python :: 3.8", | 
| 42 |  | -            "Programming Language :: Python :: 3.9", | 
| 43 |  | -            "Programming Language :: Python :: 3.10", | 
| 44 |  | -            "Programming Language :: Python :: Implementation :: CPython", | 
| 45 |  | -            "Programming Language :: Python :: Implementation :: PyPy", | 
| 46 |  | -            "Programming Language :: Rust", | 
| 47 |  | -        ], | 
| 48 |  | -        zip_safe=False, | 
| 49 |  | -    ) | 
| 50 |  | - | 
| 51 |  | - | 
| 52 |  | -if __name__ == "__main__": | 
| 53 |  | -    call_setup() | 
|  | 7 | +setup( | 
|  | 8 | +    name="css_inline", | 
|  | 9 | +    version="0.8.4", | 
|  | 10 | +    description="Fast CSS inlining written in Rust", | 
|  | 11 | +    long_description=open("README.md", encoding="utf-8").read(), | 
|  | 12 | +    long_description_content_type="text/markdown", | 
|  | 13 | +    keywords="css inline html rust", | 
|  | 14 | +    author="Dmitry Dygalo", | 
|  | 15 | + | 
|  | 16 | +    maintainer="Dmitry Dygalo", | 
|  | 17 | +    maintainer_email="[email protected]", | 
|  | 18 | +    python_requires=">=3.7", | 
|  | 19 | +    url="https://github.com/Stranger6667/css-inline/tree/master/bindings/python", | 
|  | 20 | +    license="MIT", | 
|  | 21 | +    rust_extensions=[ | 
|  | 22 | +        RustExtension( | 
|  | 23 | +            "css_inline", | 
|  | 24 | +            py_limited_api=True, | 
|  | 25 | +            features=( | 
|  | 26 | +                [] if platform.python_implementation() == "PyPy" else ["pyo3/abi3"] | 
|  | 27 | +            ), | 
|  | 28 | +            rust_version=">=1.54.0", | 
|  | 29 | +        ) | 
|  | 30 | +    ], | 
|  | 31 | +    classifiers=[ | 
|  | 32 | +        "Development Status :: 4 - Beta", | 
|  | 33 | +        "Intended Audience :: Developers", | 
|  | 34 | +        "License :: OSI Approved :: MIT License", | 
|  | 35 | +        "Operating System :: MacOS :: MacOS X", | 
|  | 36 | +        "Operating System :: Microsoft :: Windows", | 
|  | 37 | +        "Operating System :: POSIX", | 
|  | 38 | +        "Programming Language :: Python :: 3", | 
|  | 39 | +        "Programming Language :: Python :: 3.7", | 
|  | 40 | +        "Programming Language :: Python :: 3.8", | 
|  | 41 | +        "Programming Language :: Python :: 3.9", | 
|  | 42 | +        "Programming Language :: Python :: 3.10", | 
|  | 43 | +        "Programming Language :: Python :: Implementation :: CPython", | 
|  | 44 | +        "Programming Language :: Python :: Implementation :: PyPy", | 
|  | 45 | +        "Programming Language :: Rust", | 
|  | 46 | +    ], | 
|  | 47 | +    zip_safe=False, | 
|  | 48 | +) | 
0 commit comments