Skip to content

Commit

Permalink
[gareth] Add files for poetry, tests, and release-tools
Browse files Browse the repository at this point in the history
This commit adds the support of poetry, test suite files,
and some additional files which are required for managing
releases using https://github.com/Bitergia/release-tools.

Signed-off-by: Venu Vardhan Reddy Tekula <[email protected]>
  • Loading branch information
vchrombie committed Apr 25, 2021
1 parent 4718038 commit 4c0513e
Show file tree
Hide file tree
Showing 8 changed files with 88 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,6 @@ dmypy.json

# Pyre type checker
.pyre/

# Other
.idea/
Empty file added AUTHORS
Empty file.
Empty file added NEWS
Empty file.
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,14 @@
# gareth
# 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.
1 change: 1 addition & 0 deletions gareth/_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "0.0.0"
8 changes: 8 additions & 0 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 31 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"
]
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"
31 changes: 31 additions & 0 deletions tests/run_tests.py
Original file line number Diff line number Diff line change
@@ -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 <http://www.gnu.org/licenses/>.
#
# Authors:
# Venu Vardhan Reddy Tekula <[email protected]>
#


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())

0 comments on commit 4c0513e

Please sign in to comment.