11from pathlib import Path
2+ from subprocess import PIPE , Popen
3+
24from setuptools import setup
35from setuptools_rust import Binding , RustExtension
4- from subprocess import Popen , PIPE
56
67PKG_ROOT = Path (__file__ ).parent
78SETUP_REQUIRES = ["setuptools-rust" , "wheel" , "setuptools" ]
@@ -21,6 +22,7 @@ def generate_lockfile():
2122 raise RuntimeError (f"Could not generate Cargo lockfile: { err } " )
2223 return
2324
25+
2426def get_version ():
2527 generate_lockfile ()
2628 proc = Popen (("cargo" , "pkgid" ), stdout = PIPE , stderr = PIPE )
@@ -51,7 +53,7 @@ def get_version():
5153 classifiers = [
5254 # See https://pypi.python.org/pypi?%3Aaction=list_classifiers for all
5355 # available setup classifiers
54- ' Development Status :: 5 - Production/Stable' ,
56+ " Development Status :: 5 - Production/Stable" ,
5557 "Intended Audience :: Developers" ,
5658 "License :: OSI Approved :: MIT License" ,
5759 "Natural Language :: English" ,
@@ -65,6 +67,7 @@ def get_version():
6567 "Programming Language :: Python :: 3.9" ,
6668 "Programming Language :: Python :: 3.10" ,
6769 "Programming Language :: Python :: 3.11" ,
70+ "Programming Language :: Python :: 3.12" ,
6871 "Programming Language :: Rust" ,
6972 # 'Programming Language :: Python :: Implementation :: PyPy',
7073 ],
0 commit comments