-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
42 lines (35 loc) · 1.65 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
#!/usr/bin/env python3
from setuptools import setup, find_packages
# ------------------------------------------------------------------------
# This is the setup.py file for the dev-cli package.
# It is used for packaging and distributing the dev-cli command-line tool.
# It defines the metadata and configuration for the package, including:
# - The package name, version, and dependencies.
# - The entry point for the command-line tool.
# - It also specifies the modules or packages that should be included
# in the distribution (using find_packages).
# ------------------------------------------------------------------------
setup(
# Name of the package (this is what will be used for installation)
name="dev-cli",
# Version of the package (helps in managing versions and dependencies)
version="0.1",
# Automatically discover and include all Python packages in the dev_cli directory
# Finds and includes all packages in the dev_cli module
packages=find_packages(),
# List of dependencies that should be installed when the package is installed
install_requires=[
# Required for building the command-line interface with Click
'click',
# Add any other external dependencies here (e.g., 'requests', 'flask', etc.)
],
# Entry points for creating executable commands via the command line
entry_points={
'console_scripts': [
# This defines a command called 'dev-cli' that runs the cli() function
# from the dev_cli.dev_cli module (your main CLI script)
# Points to the `cli` function in `dev_cli/dev_cli.py`
'dev-cli = dev_cli.dev_cli:cli',
],
},
)