In my classic setup.py
script, I have a post_install method that registers my python widget with a jupyter notebook. How do I do this using the pyproject.toml file? I can't seem to find any documentation on this.
doc: https://setuptools.pypa.io/en/latest/userguide/extension.html
I have these classes defined in my setup.py
file that need to be run. Is there a way to replicate this in the new pyproject.toml system?
# Each of these classes represent the different modes that pip install
# can go into, and what logic can be run after pip install finishes
class develop(_develop):
"""Post-installation logic to run for development mode"""
def run(self):
self.execute(_post_install, (), msg="Running post-install...")
super().run()
class install(_install):
"""Post-installation logic to run for installation mode"""
def run(self):
self.execute(_post_install, (), msg="Running post-install...")
super().run()
class egg_info(_egg_info):
"""Post-installation logic to run for 'egg_info' mode"""
def run(self):
self.execute(_post_install, (), msg="Running post-install...")
super().run()
In the setup.py here is the part that I need to call:
"cmdclass": {
"develop": develop,
"install": install,
"egg_info": egg_info,
},