Here is how you do it.
import setuptools; setuptools.setup()
It should be in the same dir as your importable lib. Not inside, not in a parent dir. Next to it.
Let's say your importable lib is called "cool_package". Now...
[metadata]
name = cool_package
version = 0.0.1
description = "Cool"
long_description = "Super cool"
[options]
zip_safe = False
include_package_data = True
packages = find:
install_requires =
requests
flask
#etc
You can now "pip install" it directly from the local dir or a remote git repository, build a wheel, upload it to pypi... Enjoy!
Yes, it was that easy.
Here is the doc for all the options available:
setuptools.readthedocs.io/en/latest/setu…