Merge pull request #19104 from mbld/python-flake8-update
flake8: 2.5.4 -> 3.0.4
This commit is contained in:
commit
4b55584dba
@ -0,0 +1,22 @@
|
|||||||
|
diff -r ad8325924f04 pytest.ini
|
||||||
|
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
|
||||||
|
+++ b/pytest.ini Fri Sep 30 12:28:39 2016 +0200
|
||||||
|
@@ -0,0 +1,4 @@
|
||||||
|
+[pytest]
|
||||||
|
+-norecursedirs = .git .* *.egg* old docs dist build
|
||||||
|
+-addopts = -rwv
|
||||||
|
+
|
||||||
|
diff -r ad8325924f04 setup.cfg
|
||||||
|
--- a/setup.cfg Fri Sep 30 09:22:39 2016 +0200
|
||||||
|
+++ b/setup.cfg Fri Sep 30 12:28:39 2016 +0200
|
||||||
|
@@ -12,10 +12,6 @@
|
||||||
|
pycodestyle >= 2.0.0, < 2.1.0
|
||||||
|
mccabe >= 0.5.0, < 0.6.0
|
||||||
|
|
||||||
|
-[pytest]
|
||||||
|
-norecursedirs = .git .* *.egg* old docs dist build
|
||||||
|
-addopts = -rw
|
||||||
|
-
|
||||||
|
[egg_info]
|
||||||
|
tag_build =
|
||||||
|
tag_date = 0
|
@ -10489,17 +10489,45 @@ in modules // {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pycodestyle = buildPythonPackage rec {
|
||||||
|
name = "pycodestyle-${version}";
|
||||||
|
version = "2.0.0";
|
||||||
|
|
||||||
|
src = pkgs.fetchurl {
|
||||||
|
url = "mirror://pypi/p/pycodestyle/${name}.tar.gz";
|
||||||
|
sha256 = "1rz2v8506mdjdyxcnv9ygiw6v0d4dqx8z5sjyjm0w2v32h5l5w1p";
|
||||||
|
};
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Python style guide checker (formerly called pep8)";
|
||||||
|
homepage = https://pycodestyle.readthedocs.io;
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ garbas ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
pep8 = self.pycodestyle;
|
||||||
|
|
||||||
flake8 = buildPythonPackage rec {
|
flake8 = buildPythonPackage rec {
|
||||||
name = "flake8-${version}";
|
name = "flake8-${version}";
|
||||||
version = "2.5.4";
|
version = "3.0.4";
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
src = pkgs.fetchurl {
|
||||||
url = "mirror://pypi/f/flake8/${name}.tar.gz";
|
url = "mirror://pypi/f/flake8/${name}.tar.gz";
|
||||||
sha256 = "0bs9cz4fr99r2rwig1b8jwaadl1nan7kgpdzqwj0bwbckwbmh7nc";
|
sha256 = "03cpdrjxh0fyi2qpdxbbrmxw7whiq3xr3p958gr6yzghk34i1hml";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = with self; [ nose mock ];
|
buildInputs = with self; [ nose mock pytestrunner pytest ];
|
||||||
propagatedBuildInputs = with self; [ pyflakes pep8 mccabe ];
|
propagatedBuildInputs = with self; [ pyflakes pep8 mccabe enum34 configparser pycodestyle ];
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
../development/python-modules/flake8/move-pytest-config-to-pytest-ini.patch
|
||||||
|
];
|
||||||
|
|
||||||
|
# Tests fail due to missing ini file.
|
||||||
|
preCheck = ''
|
||||||
|
touch tox.ini
|
||||||
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Code checking using pep8 and pyflakes";
|
description = "Code checking using pep8 and pyflakes";
|
||||||
@ -13395,22 +13423,13 @@ in modules // {
|
|||||||
|
|
||||||
|
|
||||||
mccabe = buildPythonPackage (rec {
|
mccabe = buildPythonPackage (rec {
|
||||||
name = "mccabe-0.4.0";
|
name = "mccabe-0.5.2";
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
src = pkgs.fetchurl {
|
||||||
url = "mirror://pypi/m/mccabe/${name}.tar.gz";
|
url = "mirror://pypi/m/mccabe/${name}.tar.gz";
|
||||||
sha256 = "0yr08a36h8lqlif10l4xcikbbig7q8f41gqywir7rrvnv3mi4aws";
|
sha256 = "1zss8c5cn8wvxsbjzv70dxymybh3cjzrjl19vxfbnyvmidng0wrl";
|
||||||
};
|
};
|
||||||
|
|
||||||
# See https://github.com/flintwork/mccabe/issues/31
|
|
||||||
postPatch = ''
|
|
||||||
cp "${pkgs.fetchurl {
|
|
||||||
url = "https://raw.githubusercontent.com/flintwork/mccabe/"
|
|
||||||
+ "e8aea16d28e92bd3c62601275762fc9c16808f6c/test_mccabe.py";
|
|
||||||
sha256 = "0xhjxpnaxvbpi4myj9byrban7a5nrw931br9sgvfk42ayg4sn6lm";
|
|
||||||
}}" test_mccabe.py
|
|
||||||
'';
|
|
||||||
|
|
||||||
buildInputs = with self; [ pytestrunner pytest ];
|
buildInputs = with self; [ pytestrunner pytest ];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
@ -17551,23 +17570,6 @@ in modules // {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
pep8 = buildPythonPackage rec {
|
|
||||||
name = "pep8-${version}";
|
|
||||||
version = "1.7.0";
|
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
|
||||||
url = "mirror://pypi/p/pep8/${name}.tar.gz";
|
|
||||||
sha256 = "a113d5f5ad7a7abacef9df5ec3f2af23a20a28005921577b15dd584d099d5900";
|
|
||||||
};
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
homepage = "http://pep8.readthedocs.org/";
|
|
||||||
description = "Python style guide checker";
|
|
||||||
license = licenses.mit;
|
|
||||||
maintainers = with maintainers; [ garbas ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
pep257 = buildPythonPackage rec {
|
pep257 = buildPythonPackage rec {
|
||||||
name = "pep257-${version}";
|
name = "pep257-${version}";
|
||||||
version = "0.3.2";
|
version = "0.3.2";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user