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