Spaces:
Runtime error
Runtime error
Commit
·
01df4b3
1
Parent(s):
0be1b81
setup files
Browse files- pyproject.toml +13 -0
- setup.cfg +13 -0
- setup.py +14 -0
- techdocs/{execute.py → cli.py} +13 -5
pyproject.toml
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[build-system]
|
2 |
+
requires = ["setuptools>=64.0.0", "wheel"]
|
3 |
+
build-backend = "setuptools.build_meta"
|
4 |
+
|
5 |
+
[project]
|
6 |
+
name = "techdocs"
|
7 |
+
version = "0.0.1"
|
8 |
+
description = "Code documentation generation CLI App"
|
9 |
+
readme = "README.md"
|
10 |
+
authors = [{ name = "Techdocs", email = "[email protected]" }]
|
11 |
+
|
12 |
+
[project.scripts]
|
13 |
+
techdocs = "techdocs.cli:main"
|
setup.cfg
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[metadata]
|
2 |
+
name = techdocs
|
3 |
+
version = 0.0.1
|
4 |
+
|
5 |
+
[options]
|
6 |
+
packages = techdocs
|
7 |
+
install_requires =
|
8 |
+
requests
|
9 |
+
python_version >= "3.8.*"
|
10 |
+
|
11 |
+
[options.entry_points]
|
12 |
+
console_scripts =
|
13 |
+
techdocs = techdocs.cli:main
|
setup.py
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from setuptools import setup
|
2 |
+
|
3 |
+
setup(
|
4 |
+
name='techdocs',
|
5 |
+
version='0.0.1',
|
6 |
+
# To provide executable scripts, use entry points in preference to the
|
7 |
+
# "scripts" keyword. Entry points provide cross-platform support and allow
|
8 |
+
# pip to create the appropriate form of executable for the target platform.
|
9 |
+
entry_points={
|
10 |
+
'console_scripts': [
|
11 |
+
'techdocs=techdocs.cli:main'
|
12 |
+
]
|
13 |
+
},
|
14 |
+
)
|
techdocs/{execute.py → cli.py}
RENAMED
@@ -3,11 +3,19 @@ from utils import parse,functools
|
|
3 |
import argparse
|
4 |
|
5 |
def main():
|
6 |
-
parser = argparse.ArgumentParser(
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
parser.add_argument('--
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
|
12 |
args=parser.parse_args()
|
13 |
|
|
|
3 |
import argparse
|
4 |
|
5 |
def main():
|
6 |
+
parser = argparse.ArgumentParser(
|
7 |
+
description='Code documentation generation',
|
8 |
+
epilog="Thanks for using Techdocs")
|
9 |
+
|
10 |
+
parser.add_argument('--api_key','-k',type=str,required=True,help='API key for Techdocs')
|
11 |
+
|
12 |
+
parser.add_argument('--username','-u',type=str,required=True,help='Username for Techdocs')
|
13 |
+
|
14 |
+
parser.add_argument('--password','-p',type=str,required=True,help='Password for Techdocs')
|
15 |
+
|
16 |
+
parser.add_argument('--dir','-d',type=str,required=True,help='Root directory to be documented')
|
17 |
+
|
18 |
+
parser.add_argument('--version','-v',action='version',version="%(prog)s 0.0.1")
|
19 |
|
20 |
args=parser.parse_args()
|
21 |
|