This repository has been archived by the owner on May 15, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add poetry initial and start of pyproject
Signed-off-by: Owen McGill <mcgillowen@gmail.com>
- Loading branch information
1 parent
6a69402
commit 7ffa9a6
Showing
13 changed files
with
517 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -102,3 +102,5 @@ venv.bak/ | |
|
||
# mypy | ||
.mypy_cache/ | ||
|
||
.vscode/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__version__ = '0.1.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
""" | ||
Main file for the command line configuration. | ||
Sets up the ArgumentParser | ||
""" | ||
import argparse | ||
import sys | ||
|
||
config = {"tool": {"poetry": {"name": sys.argv[0], "description": "DevEnv"}}} | ||
|
||
|
||
def main_cmd(parser: argparse.ArgumentParser): | ||
""" | ||
Set up main command for DevEnv. | ||
:param parser: the initialised ArgumentParser | ||
""" | ||
pass | ||
|
||
|
||
def setup_arguments(config: dict = config): | ||
""" | ||
Set up all the program commands. | ||
:param config: the dict from the pyproject.toml | ||
:returns: the configured ArgumentParser | ||
""" | ||
parser = argparse.ArgumentParser( | ||
prog=config["tool"]["poetry"]["name"], | ||
description=config["tool"]["poetry"]["description"], | ||
formatter_class=argparse.ArgumentDefaultsHelpFormatter, | ||
) | ||
|
||
return parser | ||
|
||
|
||
if __name__ == "__main__": | ||
setup_arguments() |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
""" | ||
Dockerfile package for building the required Dockerfile. | ||
This contains all the logic to create, edit Dockerfile files. | ||
""" |
Empty file.
Empty file.
Empty file.
Oops, something went wrong.