什么时候应该使用 "Natural Language" PyPI 分类器?
When should the "Natural Language" PyPI classifier be used?
有一个list of classifiers that we can define in setup.py
to categorize our python package in PyPI。其中有一些语言的“Natural Language
”分类器。什么时候应该将这些分类器包含在项目的 setup.py 中?是针对自然语言处理相关的包还是当包的源代码是用相应的语言写的时候才用?
阿莱夫特里斯。
尽管 PyPI 限制其列表中分类器的使用,但没有说明如何使用列表中的每个分类器。 PyPA's sample project 给你一些提示(第 78 到 99 行),并且还说使用分类器是可选的!
concept behind classifiers is better cataloguing the packages. This is also clear here。我引用并强调:
Although the list of classifiers is often used to declare what Python versions a project supports, this information is only used for searching & browsing projects on PyPI, not for installing projects.
也就是说,它帮助 PyPI 组织包,因此可以在 PyPI 的网站上通过搜索和浏览找到它们。
如果您的包与列表中的自然语言有任何关系,我强烈建议您将其作为分类器包含在内。它可能有助于找到您的包裹并更好地分发它。
顺便说一句,如果您的包要与 2.2.3 或 2.3 之前的 Python 版本兼容,请使用分类器 should not。
有一个list of classifiers that we can define in setup.py
to categorize our python package in PyPI。其中有一些语言的“Natural Language
”分类器。什么时候应该将这些分类器包含在项目的 setup.py 中?是针对自然语言处理相关的包还是当包的源代码是用相应的语言写的时候才用?
阿莱夫特里斯。
尽管 PyPI 限制其列表中分类器的使用,但没有说明如何使用列表中的每个分类器。 PyPA's sample project 给你一些提示(第 78 到 99 行),并且还说使用分类器是可选的!
concept behind classifiers is better cataloguing the packages. This is also clear here。我引用并强调:
Although the list of classifiers is often used to declare what Python versions a project supports, this information is only used for searching & browsing projects on PyPI, not for installing projects.
也就是说,它帮助 PyPI 组织包,因此可以在 PyPI 的网站上通过搜索和浏览找到它们。
如果您的包与列表中的自然语言有任何关系,我强烈建议您将其作为分类器包含在内。它可能有助于找到您的包裹并更好地分发它。
顺便说一句,如果您的包要与 2.2.3 或 2.3 之前的 Python 版本兼容,请使用分类器 should not。