diff --git a/.gitignore b/.gitignore index b6e4761..2fc104f 100644 --- a/.gitignore +++ b/.gitignore @@ -127,3 +127,6 @@ dmypy.json # Pyre type checker .pyre/ + +# Other +.idea/ diff --git a/AUTHORS b/AUTHORS new file mode 100644 index 0000000..e69de29 diff --git a/NEWS b/NEWS new file mode 100644 index 0000000..e69de29 diff --git a/README.md b/README.md index 487fe3c..010b1de 100644 --- a/README.md +++ b/README.md @@ -1 +1,14 @@ -# gareth \ No newline at end of file +# gareth + +Tool to automate the developer setup of GrimoireLab. + +This software is licensed under GPL3 or later. + +## Requirements + + * Python >= 3.6 + * Poetry >= 1.0 + +## License + +Licensed under GNU General Public License (GPL), version 3 or later. diff --git a/gareth/_version.py b/gareth/_version.py new file mode 100644 index 0000000..6c8e6b9 --- /dev/null +++ b/gareth/_version.py @@ -0,0 +1 @@ +__version__ = "0.0.0" diff --git a/poetry.lock b/poetry.lock new file mode 100644 index 0000000..f6de599 --- /dev/null +++ b/poetry.lock @@ -0,0 +1,8 @@ +package = [] + +[metadata] +lock-version = "1.1" +python-versions = "^3.6" +content-hash = "ae1f216c71b9b712a5c479d19bf075b718c35d9248fd89cb1eb7624528ec5ad1" + +[metadata.files] diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..3a6a6b5 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,31 @@ +[tool.poetry] +name = "gareth" +version = "0.0.0" +description = "Tool to automate the developer setup of GrimoireLab" +authors = [ + "Venu Vardhan Reddy Tekula " +] +license = "GPL-3.0-or-later" + +readme = "README.md" + +packages = [ + { include = "gareth"}, + { include = "tests", format = "sdist" }, +] + +include = [ + "AUTHORS", + "README.md", + "LICENSE", + "NEWS" +] + +[tool.poetry.dependencies] +python = "^3.6" + +[tool.poetry.dev-dependencies] + +[build-system] +requires = ["poetry-core>=1.0.0"] +build-backend = "poetry.core.masonry.api" diff --git a/tests/run_tests.py b/tests/run_tests.py new file mode 100644 index 0000000..6f39d88 --- /dev/null +++ b/tests/run_tests.py @@ -0,0 +1,31 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# +# Copyright (C) 2020 Bitergia +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# +# Authors: +# Venu Vardhan Reddy Tekula +# + + +import sys +import unittest + + +if __name__ == '__main__': + test_suite = unittest.TestLoader().discover('.', pattern='test*.py') + result = unittest.TextTestRunner(buffer=True).run(test_suite) + sys.exit(not result.wasSuccessful())