commit 043245f0adedf54b17509064e6231b5101f8efaacbde2283f10af540d028f82c Author: Tomáš Chvátal Date: Tue Feb 12 08:46:11 2019 +0000 Accepting request 673392 from home:jayvdb:coala:python3-bears - Update to v0.6.0 - Add Python 3 support - Add %license - Remove tests from installed package OBS-URL: https://build.opensuse.org/request/show/673392 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bashate?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/bashate-0.6.0.tar.gz b/bashate-0.6.0.tar.gz new file mode 100644 index 0000000..d150c7a --- /dev/null +++ b/bashate-0.6.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f01822a7295f1dfd197f67b4385c683d2eea293fa101ad15cf5e8572c0d45755 +size 30980 diff --git a/python-bashate.changes b/python-bashate.changes new file mode 100644 index 0000000..0c54d9f --- /dev/null +++ b/python-bashate.changes @@ -0,0 +1,100 @@ +------------------------------------------------------------------- +Mon Feb 11 04:45:28 UTC 2019 - John Vandenberg + +- Update to v0.6.0 + * Address new pypi requirements on README.rst + * Switch to pep8 output format + * Enable bashate use with pre-commit + * Allow bashate to be called as a module + * Add bindep.txt file + * Stop using slave\_scripts/install-distro-packages.sh + * Use openstack-tox-py36 + * Convert bashate-python36-fedora-26 to Zuul v3 + * Remove setting of version/release from releasenotes + * Zuul: add file extension to playbook path + * Initial zuulv3 job import + * Update documentation URL for readme file + * Add a [[ checker + * Don't mock sysv.args + * Fix formatting of contributor page + * Treat sphinx warnings as errors + * Reorder content to follow new structure + * Update to openstackdocstheme + * Update to tox.ini environment list + * Add py3.5 support in setup.cfg + * correcting typo in EXAMPLES section -I should be -i + * docs: fixed CLI args description + * Update .coveragerc after the removal of openstack directory + * Changed the home-page link + * Don't include openstack/common in flake8 exclude list + * Enable release notes translation + * Update docs to include all errors + * Exclude hashbangs check for .bashrc, .bash\_profile, etc +- Add Python 3 support +- Add %license +- Remove tests from installed package + +------------------------------------------------------------------- +Tue Oct 25 20:48:42 UTC 2016 - dmueller@suse.com + +- update to 0.5.1: + * Add releasenote on python3 + * Handle argument line-up in continuations + * Cleanup continuation line handling + * Ignore heredoc contents + * Replace heredoc fail-to-end detection E012 with "bash -n" + * Set up locale for bash syntax testing + * Only warn about tab-indent + * Add shallow syntax checking + +------------------------------------------------------------------- +Fri Nov 20 14:07:29 UTC 2015 - dmueller@suse.com + +- update to 0.3.2: + * Detect setting locals with subshell commands + * Change ignore-errors to ignore_errors + * Move to hacking 0.10 + * add E006: check for lines longer than 79 columns + * Cleanup variable names TODO + * Fix broken py3 tests + * Change non intuitive error message + * Don't mock argparse + * Add #! or .sh test at warning level + * Move messages into a dict + * Add --warn to turn messages down to warnings + * Remove pylint from requirements + * Change test order to avoid incompatibliity + * Clean-up return statements + * Workflow documentation is now in infra-manual + * Put all messages into separate package + * Removed \b that don't work anyway + +------------------------------------------------------------------- +Sat Nov 8 12:46:08 UTC 2014 - dmueller@suse.com + +- update to 0.3.1: + * Add man page + * Remove automagic file finder + * Strip comments before checks + * Revert "Add E040: $(COMMAND) preferred over `COMMAND`" + * Check for bash-like "for" + * Warn against sorting requirements + * Rename doc environment to docs + * Add Pylint testenv environment + * Add a check for $[ + * Add E040: $(COMMAND) preferred over `COMMAND` + * Treat if and elif equally + * Add new register_ignores unit tests + * Clean-up E011 and E020 messages + * Bump hacking to 0.9.x series + * Reduce loops and if statements in method discover_files + * Remove unneeded definitions of Python Source Code Encoding + * Add a space to the output of the method log_error + * Fix source location URL in README + * Fix .gitreview project path + +------------------------------------------------------------------- +Tue Oct 7 09:52:07 UTC 2014 - dmueller@suse.com + +- Initial package (0.2.0) + diff --git a/python-bashate.spec b/python-bashate.spec new file mode 100644 index 0000000..047dafc --- /dev/null +++ b/python-bashate.spec @@ -0,0 +1,87 @@ +# +# spec file for package python-bashate +# +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-bashate +Version: 0.6.0 +Release: 0 +Summary: A pep8 equivalent for bash scripts +License: Apache-2.0 +Group: Development/Languages/Python +URL: https://pypi.org/project/bashate/ +Source: https://files.pythonhosted.org/packages/source/b/bashate/bashate-%{version}.tar.gz +BuildRequires: %{python_module Babel >= 0.9.6} +BuildRequires: %{python_module mock} +BuildRequires: %{python_module pbr} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module testrepository} +BuildRequires: %{python_module testscenarios} +BuildRequires: %{python_module testtools} +BuildRequires: python-argparse +Requires: python-Babel >= 0.9.6 +BuildArch: noarch +%ifpython2 +# This is not python2-argparse because Leap 42.3 has python-argparse +Requires: python-argparse +%endif + +%python_subpackages + +%description +A pep8 equivalent for bash scripts + +This program attempts to be an automated style checker for bash scripts +to fill the same part of code review that pep8 does in most OpenStack +projects. It started from humble beginnings in the DevStack project, +and will continue to evolve over time. + +- Free software: Apache license +- Documentation: http://docs.openstack.org/developer/bashate +- Source: http://git.openstack.org/cgit/openstack-dev/bash8 +- Bugs: http://bugs.launchpad.net/bash8 + +%prep +%setup -q -n bashate-%{version} + +%build +%python_build + +%install +%python_install +%{python_expand # +rm -rf %{buildroot}%{$python_sitelib}/bashate/tests +sed -i -e '/^#!\//, 1d' %{buildroot}%{$python_sitelib}/bashate/bashate.py +} + +%check +# The tests are failing when building both Python 2 & 3 +# See test failures in test runner python-testrepository +# and https://build.opensuse.org/request/show/673188 +%{python_expand # +rm -rf .testrepository +PYTHON=$python $python %{_bindir}/testr init +PYTHON=$python $python %{_bindir}/testr run +} + +%files %{python_files} +%license LICENSE +%doc AUTHORS README.rst ChangeLog +%python3_only %{_bindir}/bashate +%{python_sitelib}/* + +%changelog