forked from pulp/pulp-cli-deb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
46 lines (39 loc) · 1.52 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
from setuptools import setup
try:
from setuptools import find_namespace_packages
plugin_packages = find_namespace_packages(
include=["pulpcore.cli.*"], exclude=["pulpcore.cli.*.*"]
)
except ImportError:
# Old versions of setuptools do not provide `find_namespace_packages`
# see https://github.com/pulp/pulp-cli/issues/248
from setuptools import find_packages
plugins = find_packages(where="pulpcore/cli")
plugin_packages = [f"pulpcore.cli.{plugin}" for plugin in plugins]
plugin_entry_points = [(package.rsplit(".", 1)[-1], package) for package in plugin_packages]
setup(
name="pulp-cli-deb",
description="Command line interface to talk to pulpcore's REST API. (Debian plugin commands)",
url="https://github.com/pulp/pulp-cli-deb",
version="0.0.5.dev",
packages=plugin_packages,
package_data={"": ["py.typed", "locale/*/LC_MESSAGES/*.mo"]},
python_requires=">=3.6",
install_requires=[
"pulp-cli>=0.19.0",
],
entry_points={
"pulp_cli.plugins": [f"{name}={module}" for name, module in plugin_entry_points],
},
license="GPLv2+",
classifiers=[
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Topic :: System :: Software Distribution",
"Typing :: Typed",
],
)