Skip to content
This repository has been archived by the owner on May 15, 2019. It is now read-only.

Commit

Permalink
Add poetry initial and start of pyproject
Browse files Browse the repository at this point in the history
Signed-off-by: Owen McGill <mcgillowen@gmail.com>
  • Loading branch information
mcgillowen committed Oct 28, 2018
1 parent 6a69402 commit 7ffa9a6
Show file tree
Hide file tree
Showing 13 changed files with 517 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,5 @@ venv.bak/

# mypy
.mypy_cache/

.vscode/
2 changes: 0 additions & 2 deletions README.md

This file was deleted.

1 change: 1 addition & 0 deletions devenv/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = '0.1.0'
38 changes: 38 additions & 0 deletions devenv/arguments/arguments.py
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 added devenv/docker/__init__.py
Empty file.
5 changes: 5 additions & 0 deletions devenv/dockerfile/__init__.py
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 added devenv/dockerfile/dockerfile.py
Empty file.
Empty file.
Empty file added devenv/resources/__init__.py
Empty file.

0 comments on commit 7ffa9a6

Please sign in to comment.