-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New Features: Ability to pass commands into Gentodo to unlock the token values for those that don't want to have secrets in plain-text. (Note that a hardcoded token will override this) commands.py: - Fix PEP8 issues - Remove unnecessary .join() - Rename id arguments to id_ config.py: - Add functionality for command parsing to get a token's value main.py: - Module doc-string Signed-off-by: Christopher Fore <[email protected]>
- Loading branch information
Showing
6 changed files
with
83 additions
and
13 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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
[gentodo] | ||
token = "abcdefghijklmnopqrstuvqxyz" | ||
token-cmd = "pass bugzilla 2>/dev/null | tr -d '\n'" | ||
urls = ["https://bugs.gentoo.org/xmlrpc.cgi"] | ||
emails = ["[email protected]"] |
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,44 @@ | ||
# Copyright 1999-2023 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=8 | ||
|
||
PYTHON_COMPAT=( python3_{10..12} ) | ||
|
||
DISTUTILS_USE_PEP517=setuptools | ||
inherit python-r1 distutils-r1 bash-completion-r1 | ||
|
||
if [[ ${PV} == 9999* ]] ; then | ||
inherit git-r3 | ||
EGIT_REPO_URI="https://github.com/csfore/gentodo.git" | ||
else | ||
SRC_URI="https://github.com/csfore/gentodo/releases/download/${PV}/gentodo-${PV}.tar.gz" | ||
KEYWORDS="~amd64" | ||
fi | ||
|
||
HOMEPAGE="https://github.com/csfore/gentodo" | ||
DESCRIPTION="Todo program to help enhance your Gentoo workflow" | ||
|
||
LICENSE="GPL-3" | ||
SLOT="0" | ||
|
||
IUSE="bash-completion" | ||
|
||
REQUIRED_USE="${PYTHON_REQUIRED_USE}" | ||
|
||
BDEPENDS=" | ||
${PYTHON_DEPS} | ||
" | ||
DEPEND=" | ||
${PYTHON_DEPS} | ||
" | ||
RDEPEND=" | ||
${PYTHON_DEPS} | ||
dev-python/python-bugzilla | ||
dev-python/click | ||
" | ||
|
||
python_install_all() { | ||
newbashcomp src/gentodo/gentodo-completions.bash gentodo | ||
distutils-r1_python_install_all | ||
} |
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,2 +1,2 @@ | ||
'''__init__.py''' | ||
__version__ = "1.0.0" | ||
__version__ = "1.1.0" |
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,3 +1,7 @@ | ||
'''main.py | ||
The main entrypoint for Gentodo | ||
''' | ||
|
||
import click | ||
|
||
from gentodo import commands, __version__ | ||
|