Python3 moved to devel:languages:python3

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8?expand=0&rev=6
This commit is contained in:
Sascha Peilicke 2013-06-17 12:51:08 +00:00 committed by Git OBS Bridge
parent 9148ef559d
commit 5c5a1aefd2
3 changed files with 3 additions and 82 deletions

View File

@ -13,15 +13,16 @@
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: python-flake8
Version: 2.0
Release: 0
License: MIT
Summary: Modular source code checker: pep8, pyflakes and co
Url: http://bitbucket.org/tarek/flake8
License: MIT
Group: Development/Languages/Python
Url: http://bitbucket.org/tarek/flake8
Source: http://pypi.python.org/packages/source/f/flake8/flake8-%{version}.tar.gz
BuildRequires: python-devel
BuildRequires: python-distribute

View File

@ -1,12 +0,0 @@
-------------------------------------------------------------------
Wed Apr 24 09:07:31 UTC 2013 - speilicke@suse.com
- Spec file cleanup
- Run testsuite
- Add LICENSE (for legal)
-------------------------------------------------------------------
Sun Apr 21 23:40:09 UTC 2013 - dmueller@suse.com
- Initial package (2.0)

View File

@ -1,68 +0,0 @@
#
# spec file for package python-flake8
#
# Copyright (c) 2013 SUSE LINUX Products 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 http://bugs.opensuse.org/
Name: python3-flake8
Version: 2.0
Release: 0
License: MIT
Summary: Modular source code checker: pep8, pyflakes and co
Url: http://bitbucket.org/tarek/flake8
Group: Development/Languages/Python
Source: http://pypi.python.org/packages/source/f/flake8/flake8-%{version}.tar.gz
BuildRequires: python3-devel
BuildRequires: python3-distribute
# Test requirements:
BuildRequires: python3-mccabe >= 0.2
BuildRequires: python3-nose
BuildRequires: python3-pep8 >= 1.4.3
BuildRequires: python3-pyflakes >= 0.6.1
Requires: python3-mccabe >= 0.2
Requires: python3-pep8 >= 1.4.3
Requires: python3-pyflakes >= 0.6.1
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
Flake8 is a wrapper around these tools:
- PyFlakes
- pep8
- Ned Batchelder's McCabe script
Flake8 runs all the tools by launching the single ``flake8`` script.
%prep
%setup -q -n flake8-%{version}
%build
python3 setup.py build
%install
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
# Avoid file conflict with Python-2.x version:
mv %{buildroot}%{_bindir}/flake8{,-%{py3_ver}}
%check
python3 setup.py test
%files
%defattr(-,root,root,-)
%doc LICENSE README.rst
%{_bindir}/flake8-%{py3_ver}
%{python3_sitelib}/*
%changelog