* [gentoo-commits] proj/catalyst:master commit in: /, catalyst/
@ 2015-10-06 13:46 Mike Frysinger
0 siblings, 0 replies; 2+ messages in thread
From: Mike Frysinger @ 2015-10-06 13:46 UTC (permalink / raw
To: gentoo-commits
commit: 67508235581c2964907d81d67367ec6efbfa619d
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 6 04:13:54 2015 +0000
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Tue Oct 6 04:13:54 2015 +0000
URL: https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=67508235
lint: clean up global statement warnings
Delete unused calls and add disables for the ones we actively want. We
generally want to avoid calls to "global" so force people to disable the
warning whenever they try to use it.
catalyst/support.py | 2 --
catalyst/version.py | 2 ++
setup.py | 3 ++-
3 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/catalyst/support.py b/catalyst/support.py
index a879eaf..1e3eeef 100644
--- a/catalyst/support.py
+++ b/catalyst/support.py
@@ -294,8 +294,6 @@ def ismount(path):
def addl_arg_parse(myspec,addlargs,requiredspec,validspec):
"helper function to help targets parse additional arguments"
- global valid_config_file_values
-
messages = []
for x in addlargs.keys():
if x not in validspec and x not in valid_config_file_values and x not in requiredspec:
diff --git a/catalyst/version.py b/catalyst/version.py
index d5c5cde..5deb4d7 100644
--- a/catalyst/version.py
+++ b/catalyst/version.py
@@ -18,6 +18,7 @@ _ver = None
def get_git_version(version=__version__):
"""Return: a string describing our version."""
+ # pylint: disable=global-statement
global _ver
cwd = os.path.dirname(os.path.abspath(__file__))
version_info = get_ver(cwd)
@@ -39,6 +40,7 @@ def get_version(reset=False):
'''Returns a saved release version string or the
generated git release version.
'''
+ # pylint: disable=global-statement
global __version__, _ver
if _ver and not reset:
return _ver
diff --git a/setup.py b/setup.py
index 27ed2de..e4569ee 100755
--- a/setup.py
+++ b/setup.py
@@ -55,7 +55,6 @@ _data_files.extend(_files('share/catalyst/targets', 'targets'))
class set_version(_Command):
'''Saves the specified release version information
'''
- global __version__
description = "hardcode script's version using VERSION from environment"
user_options = [] # [(long_name, short_name, desc),]
@@ -66,6 +65,8 @@ class set_version(_Command):
pass
def run(self):
+ # pylint: disable=global-statement
+ global __version__
try:
version = _os.environ['VERSION']
except KeyError:
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] proj/catalyst:master commit in: /, catalyst/
@ 2016-02-17 5:24 Brian Dolbec
0 siblings, 0 replies; 2+ messages in thread
From: Brian Dolbec @ 2016-02-17 5:24 UTC (permalink / raw
To: gentoo-commits
commit: 1f2dc0319a8efc21bc2c455b0ac86c5cdc97299b
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 7 01:48:58 2016 +0000
Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
CommitDate: Wed Feb 17 05:15:51 2016 +0000
URL: https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=1f2dc031
Set version for the first 3.0 release
Add python shebang to setup.py
catalyst/version.py | 2 +-
setup.py | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/catalyst/version.py b/catalyst/version.py
index 3b82988..412854d 100644
--- a/catalyst/version.py
+++ b/catalyst/version.py
@@ -12,7 +12,7 @@ import os
from snakeoil.version import get_git_version as get_ver
-__version__= "git"
+__version__= "3.0_rc1"
_ver = None
diff --git a/setup.py b/setup.py
index a875db1..c6b52dc 100755
--- a/setup.py
+++ b/setup.py
@@ -1,3 +1,4 @@
+#!/usr/bin/env python
"""Catalyst is a release building tool used by Gentoo Linux"""
from __future__ import print_function
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-02-17 5:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-17 5:24 [gentoo-commits] proj/catalyst:master commit in: /, catalyst/ Brian Dolbec
-- strict thread matches above, loose matches on Subject: below --
2015-10-06 13:46 Mike Frysinger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox