-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #45 from mogproject/topic-read-env-vars-#43
Topic read env vars #43
- Loading branch information
Showing
8 changed files
with
161 additions
and
35 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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
PYTHON = python | ||
PROG = artifact-cli | ||
|
||
build: | ||
$(PYTHON) setup.py build | ||
|
||
install: | ||
$(PYTHON) setup.py install | ||
|
||
uninstall: dev-uninstall | ||
pip uninstall $(PROG) | ||
|
||
dev-install: | ||
$(PYTHON) setup.py develop | ||
|
||
dev-uninstall: | ||
$(PYTHON) setup.py develop -u | ||
|
||
pep8: | ||
pep8 --max-line-length 120 --ignore E402,E731 src tests | ||
|
||
test: pep8 | ||
$(PYTHON) setup.py test | ||
|
||
coverage: | ||
coverage run --source=src setup.py test | ||
|
||
clean: | ||
$(PYTHON) setup.py clean | ||
|
||
console: | ||
cd src && $(PYTHON) | ||
|
||
register: | ||
$(PYTHON) setup.py register | ||
|
||
publish: | ||
$(PYTHON) setup.py sdist upload | ||
|
||
.PHONY: build install uninstall dev_install dev_uninstall pep8 test coverage clean console register publish |
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
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
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 |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "0.1.9" | ||
__version__ = "0.1.10" |
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 |
---|---|---|
@@ -1,10 +1,11 @@ | ||
import sys | ||
import os | ||
from settings import Settings | ||
|
||
|
||
def main(): | ||
""" | ||
Main function | ||
""" | ||
settings = Settings().parse_args(sys.argv).load_config() | ||
settings = Settings().parse_args(sys.argv).load_environ(os.environ).load_config() | ||
return settings.configure_logging().operation.run(settings.repo) |
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
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
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