1+ from skbuild import setup
2+ from setuptools import find_packages # This line replaces 'from setuptools import setup'
3+ import os
4+ import sys
5+
6+
7+ # move to the directory of the setup.py file
8+
9+ # Read metadata from setup.cfg
10+ def read_setup_cfg ():
11+ from configparser import ConfigParser
12+
13+ config = ConfigParser ()
14+ config .read ("setup.cfg" )
15+ return config ["metadata" ]
16+
17+ metadata = read_setup_cfg ()
18+ print ("hi" )
19+ setup (
20+ name = metadata .get ("name" ),
21+ version = metadata .get ("version" ),
22+ author = metadata .get ("author" ),
23+ author_email = metadata .get ("author_email" ),
24+ description = metadata .get ("description" ),
25+ long_description = metadata .get ("long_description" ),
26+ long_description_content_type = metadata .get ("long_description_content_type" ),
27+ url = metadata .get ("url" ),
28+ python_requires = metadata .get ("python_requires" ),
29+ install_requires = metadata .get ("install_requires" ),
30+ classifiers = metadata .get ("classifiers" , "" ).split ("\n " ),
31+ license = metadata .get ("license" ),
32+ license_file = metadata .get ("license_file" ),
33+ packages = find_packages (),
34+ include_package_data = True ,
35+ cmake_install_dir =
36+ "lyceanem/" ,
37+
38+ )
0 commit comments