Browse Source

package rename

pull/8/head
Daniel Gyulai 3 years ago
parent
commit
4a6bfa0d52
  1. 0
      alice-ci/README.md
  2. 0
      alice-ci/pyproject.toml
  3. 4
      alice-ci/setup.cfg
  4. 4
      alice-ci/src/alice/__init__.py
  5. 0
      alice-ci/src/alice/__main__.py
  6. 7
      alice-ci/src/alice/cli.py
  7. 0
      alice-ci/src/alice/docker.py
  8. 0
      alice-ci/src/alice/exceptions.py
  9. 0
      alice-ci/src/alice/jobparser.py
  10. 0
      alice-ci/src/alice/pythonrunner.py
  11. 0
      alice/src/alice/__init__.py

0
alice/README.md → alice-ci/README.md

0
alice/pyproject.toml → alice-ci/pyproject.toml

4
alice/setup.cfg → alice-ci/setup.cfg

@ -1,5 +1,5 @@
[metadata]
name = alice
name = alice-ci
version = 0.0.1
author = Daniel Gyulai
description = Alice CI framework
@ -18,6 +18,8 @@ package_dir =
= src
packages = find:
python_requires = >=3.6
install_requires =
PyYAML==6.0
[options.packages.find]
where = src

4
alice-ci/src/alice/__init__.py

@ -0,0 +1,4 @@
from .cli import App
from .jobparser import Job, JobParser
from .exceptions import NonZeroRetcode
from .pythonrunner import PythonRunner

0
alice/src/alice/__main__.py → alice-ci/src/alice/__main__.py

7
alice/src/alice/cli.py → alice-ci/src/alice/cli.py

@ -54,6 +54,7 @@ class App:
self.restart_under_venv()
else:
print("Running under virtual environment")
# TODO: yaml is only used in venv, yet installed as dependency in setup.cfg
self.pip_install("pyyaml", "yaml")
from jobparser import JobParser
@ -67,7 +68,8 @@ class App:
jobParser.jobs[step].run_commands(self.__gen_env(args.env))
print(f"Step {step}: SUCCESS")
else:
raise Exception(f"Step {step} not found in {args.input}")
print(f"Step {step} not found in {args.input}")
exit(1)
def main():
pathToScriptDir = os.path.dirname(os.path.realpath(__file__))
@ -79,6 +81,9 @@ def main():
parser.add_argument("-i", "--input", default="ci.yaml")
parser.add_argument("-e", "--env", nargs='*', default=[])
args = parser.parse_args()
if not os.path.isfile(args.input):
print(f"No such file: {args.input}")
exit(1)
app.run(args, repoDir)
if __name__ == "__main__":

0
alice/src/alice/docker.py → alice-ci/src/alice/docker.py

0
alice/src/alice/exceptions.py → alice-ci/src/alice/exceptions.py

0
alice/src/alice/jobparser.py → alice-ci/src/alice/jobparser.py

0
alice/src/alice/pythonrunner.py → alice-ci/src/alice/pythonrunner.py

0
alice/src/alice/__init__.py

Loading…
Cancel
Save