|
|
1
0
最好的做法是使用控制台脚本的入口点使模块pip可安装(在模块路径的1步之外添加setup.py)。 https://github.com/jtara1/misc_scripts/tree/master/misc_scripts/templates 我使用这个模板设置。py和设置。在我创建的大部分模块中。它使用setuptools\u scm,该scm将使用项目git中的版本(标记)来定义设置中的版本。py。
换句话说,你需要
我的设置。py还将推断模块的名称与父目录的名称相同(github项目名称) 目录应该是这样的 my_模块
当前在setup中的setup函数中定义的别名的名称。py,稍后可能会将其移动到变量 https://github.com/jtara1/misc_scripts/blob/master/misc_scripts/templates/setup.py#L113 |