forked from pulp/pulp-cli-ostree
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
43 lines (36 loc) · 1.53 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
from setuptools import setup
try:
from setuptools import find_namespace_packages
plugin_packages = find_namespace_packages(include=["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-ostree",
description="Command line interface to talk to pulpcore's REST API. (OSTree plugin commands)",
author="Pulp Team",
url="https://github.com/pulp/pulp-cli-ostree",
version="0.3.0.dev",
packages=plugin_packages,
package_data={package: ["py.typed"] for package in plugin_packages},
python_requires=">=3.6",
install_requires=["pulp-cli>=0.18.2,<0.22", "pulp-glue-ostree==0.3.0.dev"],
entry_points={
"pulp_cli.plugins": [f"{name}={module}" for name, module in plugin_entry_points],
},
license="GPLv2+",
classifiers=[
"Development Status :: 4 - Beta",
"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",
],
)