[Python-modules-commits] [pylama] 01/05: Import pylama_7.4.1.orig.tar.gz
ChangZhuo Chen
czchen at moszumanska.debian.org
Mon Jul 3 08:23:01 UTC 2017
This is an automated email from the git hooks/post-receive script.
czchen pushed a commit to branch master
in repository pylama.
commit bcdf0292bf54703dd59d56c66e37f140d829b52a
Author: ChangZhuo Chen (陳昌倬) <czchen at debian.org>
Date: Mon Jul 3 16:06:37 2017 +0800
Import pylama_7.4.1.orig.tar.gz
---
AUTHORS | 2 +
PKG-INFO | 40 ++++++++++----------
README.rst | 38 +++++++++----------
pylama.egg-info/PKG-INFO | 40 ++++++++++----------
pylama.egg-info/requires.txt | 6 +--
pylama/__init__.py | 2 +-
pylama/async.py | 2 +-
pylama/config.py | 81 +++++++++++++++++++++++++---------------
pylama/core.py | 10 ++++-
pylama/libs/inirama.py | 6 +--
pylama/lint/pylama_pydocstyle.py | 12 +++++-
requirements.txt | 6 +--
setup.cfg | 27 ++++++++++++++
setup.py | 3 --
14 files changed, 165 insertions(+), 110 deletions(-)
diff --git a/AUTHORS b/AUTHORS
index 2d853c0..e82a627 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -8,11 +8,13 @@ Contributors:
* Ankur Dedania (https://github.com/AbsoluteMSTR)
* Daniel Hahler (https://github.com/blueyed)
* Daniel O'onnell' (https://github.com/mruwnik)
+* Diego Rabatone Oliveira (https://github.com/diraol)
* Fábio C. Barrionuevo da Luz (https://github.com/luzfcb)
* Grzegorz Śliwiński (https://github.com/fizyk)
* Jarek Śmiejczak (https://github.com/jotes)
* Jens Persson (https://github.com/MrShark)
* Johan Bloemberg (https://github.com/aequitas)
+* Michael (https://github.com/michael-k)
* Serg Baburin (https://github.com/gmist)
* Tomasz Karbownicki (https://github.com/trojkat)
* lukaszpiotr (https://github.com/lukaszpiotr)
diff --git a/PKG-INFO b/PKG-INFO
index a0e1ebc..e87598e 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: pylama
-Version: 7.3.3
+Version: 7.4.1
Summary: pylama -- Code audit tool for python
Home-page: https://github.com/klen/pylama
@@ -55,7 +55,7 @@ Description: |logo| Pylama
Requirements:
=============
- - Python (2.6, 2.7, 3.2, 3.3)
+ - Python (2.7, 3.2, 3.3)
- To use JavaScript checker (``gjslint``) you need to install ``python-gflags`` with ``pip install python-gflags``.
- If your tests are failing on Win platform you are missing: ``curses`` - http://www.lfd.uci.edu/~gohlke/pythonlibs/
(The curses library supplies a terminal-independent screen-painting and keyboard-handling facility for text-based terminals)
@@ -143,11 +143,12 @@ Description: |logo| Pylama
--report REPORT, -r REPORT
Send report to file [REPORT]
--hook Install Git (Mercurial) hook.
- --async Enable async mode. Usefull for checking a lot of
- files. Dont supported with pylint.
- --options OPTIONS, -o OPTIONS
- Select configuration file. By default is
- '<CURDIR>/pylama.ini'
+ --async Enable async mode. Useful for checking a lot of
+ files. Unsupported with pylint.
+ --options FILE, -o FILE
+ Specify configuration file. Looks for pylama.ini,
+ setup.cfg, tox.ini, or pytest.ini in the current
+ directory.
--force, -F Force code checking (if linter doesnt allow)
--abspath, -a Use absolute paths in output.
@@ -193,25 +194,22 @@ Description: |logo| Pylama
.. _config:
- Configuration files
- -------------------
+ Configuration file
+ ------------------
- When starting **Pylama** try loading configuration file.
-
- The programm searches for the first matching ini-style configuration file in
- the directories of command line argument. Pylama looks for the configuration
- in this order: ::
+ Pylama looks for a configuration file in the current directory, using the
+ following names by default: ::
pylama.ini
setup.cfg
tox.ini
pytest.ini
- You could set configuration file manually by "-o" option.
+ The "--option" / "-o" argument can be used to specify a configuration file.
- Pylama search sections with name starts `pylama`.
+ From the configuration file sections starting with `pylama` are read.
- Section `pylama` contains a global options, like `linters` and `skip`.
+ The "pylama" section configures global options like `linters` and `skip`.
::
@@ -266,13 +264,13 @@ Description: |logo| Pylama
==================
Pylama have Pytest_ support. The package automatically register self as pytest
- plugin when during installation. Also pylama suports `pytest_cache` plugin.
+ plugin during installation. Pylama also supports `pytest_cache` plugin.
Check files with pylama ::
pytest --pylama ...
- Recomended way to settings pylama options when using pytest — configuration
+ Recommended way to set pylama options when using pytest — configuration
files (see below).
@@ -301,7 +299,7 @@ Description: |logo| Pylama
Example:
--------
- Just virtual 'WOW' checker.
+ Just a virtual 'WOW' checker.
setup.py: ::
@@ -359,7 +357,7 @@ Description: |logo| Pylama
Contributing
------------
- Development of adrest happens at GitHub: https://github.com/klen/pylama
+ Development of `pylama` happens at GitHub: https://github.com/klen/pylama
.. _contributors:
diff --git a/README.rst b/README.rst
index 15de719..ed41c28 100644
--- a/README.rst
+++ b/README.rst
@@ -46,7 +46,7 @@ Docs are available at https://pylama.readthedocs.org/. Pull requests with docume
Requirements:
=============
-- Python (2.6, 2.7, 3.2, 3.3)
+- Python (2.7, 3.2, 3.3)
- To use JavaScript checker (``gjslint``) you need to install ``python-gflags`` with ``pip install python-gflags``.
- If your tests are failing on Win platform you are missing: ``curses`` - http://www.lfd.uci.edu/~gohlke/pythonlibs/
(The curses library supplies a terminal-independent screen-painting and keyboard-handling facility for text-based terminals)
@@ -134,11 +134,12 @@ Command line options
--report REPORT, -r REPORT
Send report to file [REPORT]
--hook Install Git (Mercurial) hook.
- --async Enable async mode. Usefull for checking a lot of
- files. Dont supported with pylint.
- --options OPTIONS, -o OPTIONS
- Select configuration file. By default is
- '<CURDIR>/pylama.ini'
+ --async Enable async mode. Useful for checking a lot of
+ files. Unsupported with pylint.
+ --options FILE, -o FILE
+ Specify configuration file. Looks for pylama.ini,
+ setup.cfg, tox.ini, or pytest.ini in the current
+ directory.
--force, -F Force code checking (if linter doesnt allow)
--abspath, -a Use absolute paths in output.
@@ -184,25 +185,22 @@ Just add `# noqa` in end of line for ignore.
.. _config:
-Configuration files
--------------------
+Configuration file
+------------------
-When starting **Pylama** try loading configuration file.
-
-The programm searches for the first matching ini-style configuration file in
-the directories of command line argument. Pylama looks for the configuration
-in this order: ::
+Pylama looks for a configuration file in the current directory, using the
+following names by default: ::
pylama.ini
setup.cfg
tox.ini
pytest.ini
-You could set configuration file manually by "-o" option.
+The "--option" / "-o" argument can be used to specify a configuration file.
-Pylama search sections with name starts `pylama`.
+From the configuration file sections starting with `pylama` are read.
-Section `pylama` contains a global options, like `linters` and `skip`.
+The "pylama" section configures global options like `linters` and `skip`.
::
@@ -257,13 +255,13 @@ Pytest integration
==================
Pylama have Pytest_ support. The package automatically register self as pytest
-plugin when during installation. Also pylama suports `pytest_cache` plugin.
+plugin during installation. Pylama also supports `pytest_cache` plugin.
Check files with pylama ::
pytest --pylama ...
-Recomended way to settings pylama options when using pytest — configuration
+Recommended way to set pylama options when using pytest — configuration
files (see below).
@@ -292,7 +290,7 @@ Must implemented two methods:
Example:
--------
-Just virtual 'WOW' checker.
+Just a virtual 'WOW' checker.
setup.py: ::
@@ -350,7 +348,7 @@ If you have any suggestions, bug reports or annoyances please report them to the
Contributing
------------
-Development of adrest happens at GitHub: https://github.com/klen/pylama
+Development of `pylama` happens at GitHub: https://github.com/klen/pylama
.. _contributors:
diff --git a/pylama.egg-info/PKG-INFO b/pylama.egg-info/PKG-INFO
index a0e1ebc..e87598e 100644
--- a/pylama.egg-info/PKG-INFO
+++ b/pylama.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: pylama
-Version: 7.3.3
+Version: 7.4.1
Summary: pylama -- Code audit tool for python
Home-page: https://github.com/klen/pylama
@@ -55,7 +55,7 @@ Description: |logo| Pylama
Requirements:
=============
- - Python (2.6, 2.7, 3.2, 3.3)
+ - Python (2.7, 3.2, 3.3)
- To use JavaScript checker (``gjslint``) you need to install ``python-gflags`` with ``pip install python-gflags``.
- If your tests are failing on Win platform you are missing: ``curses`` - http://www.lfd.uci.edu/~gohlke/pythonlibs/
(The curses library supplies a terminal-independent screen-painting and keyboard-handling facility for text-based terminals)
@@ -143,11 +143,12 @@ Description: |logo| Pylama
--report REPORT, -r REPORT
Send report to file [REPORT]
--hook Install Git (Mercurial) hook.
- --async Enable async mode. Usefull for checking a lot of
- files. Dont supported with pylint.
- --options OPTIONS, -o OPTIONS
- Select configuration file. By default is
- '<CURDIR>/pylama.ini'
+ --async Enable async mode. Useful for checking a lot of
+ files. Unsupported with pylint.
+ --options FILE, -o FILE
+ Specify configuration file. Looks for pylama.ini,
+ setup.cfg, tox.ini, or pytest.ini in the current
+ directory.
--force, -F Force code checking (if linter doesnt allow)
--abspath, -a Use absolute paths in output.
@@ -193,25 +194,22 @@ Description: |logo| Pylama
.. _config:
- Configuration files
- -------------------
+ Configuration file
+ ------------------
- When starting **Pylama** try loading configuration file.
-
- The programm searches for the first matching ini-style configuration file in
- the directories of command line argument. Pylama looks for the configuration
- in this order: ::
+ Pylama looks for a configuration file in the current directory, using the
+ following names by default: ::
pylama.ini
setup.cfg
tox.ini
pytest.ini
- You could set configuration file manually by "-o" option.
+ The "--option" / "-o" argument can be used to specify a configuration file.
- Pylama search sections with name starts `pylama`.
+ From the configuration file sections starting with `pylama` are read.
- Section `pylama` contains a global options, like `linters` and `skip`.
+ The "pylama" section configures global options like `linters` and `skip`.
::
@@ -266,13 +264,13 @@ Description: |logo| Pylama
==================
Pylama have Pytest_ support. The package automatically register self as pytest
- plugin when during installation. Also pylama suports `pytest_cache` plugin.
+ plugin during installation. Pylama also supports `pytest_cache` plugin.
Check files with pylama ::
pytest --pylama ...
- Recomended way to settings pylama options when using pytest — configuration
+ Recommended way to set pylama options when using pytest — configuration
files (see below).
@@ -301,7 +299,7 @@ Description: |logo| Pylama
Example:
--------
- Just virtual 'WOW' checker.
+ Just a virtual 'WOW' checker.
setup.py: ::
@@ -359,7 +357,7 @@ Description: |logo| Pylama
Contributing
------------
- Development of adrest happens at GitHub: https://github.com/klen/pylama
+ Development of `pylama` happens at GitHub: https://github.com/klen/pylama
.. _contributors:
diff --git a/pylama.egg-info/requires.txt b/pylama.egg-info/requires.txt
index bfc8f4d..5b5aefe 100644
--- a/pylama.egg-info/requires.txt
+++ b/pylama.egg-info/requires.txt
@@ -1,4 +1,4 @@
mccabe >= 0.5.2
-pycodestyle >= 2.0.0
-pydocstyle >= 1.1.1
-pyflakes >= 1.3.0
+pycodestyle >= 2.3.1
+pydocstyle >= 2.0.0
+pyflakes >= 1.5.0
diff --git a/pylama/__init__.py b/pylama/__init__.py
index 02bc610..aa1cb3c 100644
--- a/pylama/__init__.py
+++ b/pylama/__init__.py
@@ -4,7 +4,7 @@
:license: BSD, see LICENSE for more details.
"""
-__version__ = "7.3.3"
+__version__ = "7.4.1"
__project__ = "pylama"
__author__ = "Kirill Klenov <horneds at gmail.com>"
__license__ = "GNU LGPL"
diff --git a/pylama/async.py b/pylama/async.py
index 97a4870..7024b86 100644
--- a/pylama/async.py
+++ b/pylama/async.py
@@ -1,4 +1,4 @@
-"""Support for asyncronious checking."""
+"""Support for checking code asynchronously."""
import logging
import threading
diff --git a/pylama/config.py b/pylama/config.py
index ecee634..8582ac4 100644
--- a/pylama/config.py
+++ b/pylama/config.py
@@ -30,7 +30,7 @@ STREAM = logging.StreamHandler(sys.stdout)
LOGGER.addHandler(STREAM)
-class _Default(object):
+class _Default(object): # pylint: disable=too-few-public-methods
def __init__(self, value=None):
self.value = value
@@ -42,14 +42,14 @@ class _Default(object):
return "<_Default [%s]>" % self.value
-def split_csp_str(s):
+def split_csp_str(val):
""" Split comma separated string into unique values, keeping their order.
:returns: list of splitted values
"""
seen = set()
- values = s if isinstance(s, (list, tuple)) else s.strip().split(',')
+ values = val if isinstance(val, (list, tuple)) else val.strip().split(',')
return [x for x in values if x and not (x in seen or seen.add(x))]
@@ -65,10 +65,24 @@ def parse_linters(linters):
if linter:
result.append((name, linter))
else:
- logging.warn("Linter `%s` not found.", name)
+ logging.warning("Linter `%s` not found.", name)
return result
+def get_default_config_file(rootdir=None):
+ """Search for configuration file."""
+ if rootdir is None:
+ return DEFAULT_CONFIG_FILE
+
+ for path in CONFIG_FILES:
+ path = os.path.join(rootdir, path)
+ if os.path.isfile(path) and os.access(path, os.R_OK):
+ return path
+
+
+DEFAULT_CONFIG_FILE = get_default_config_file(CURDIR)
+
+
PARSER = ArgumentParser(description="Code audit tool for python.")
PARSER.add_argument(
"paths", nargs='*', default=_Default([CURDIR]),
@@ -115,23 +129,26 @@ PARSER.add_argument(
PARSER.add_argument(
"--async", action="store_true",
- help="Enable async mode. Usefull for checking a lot of files. "
- "Dont supported with pylint.")
+ help="Enable async mode. Useful for checking a lot of files. "
+ "Unsupported with pylint.")
PARSER.add_argument(
- "--options", "-o", default="",
- help="Select configuration file. By default is '<CURDIR>/pylama.ini'")
+ "--options", "-o", default=DEFAULT_CONFIG_FILE, metavar='FILE',
+ help="Specify configuration file. "
+ "Looks for {}, or {} in the current directory (default: {}).".format(
+ ", ".join(CONFIG_FILES[:-1]), CONFIG_FILES[-1],
+ DEFAULT_CONFIG_FILE))
PARSER.add_argument(
"--force", "-F", action='store_true', default=_Default(False),
- help="Force code checking (if linter doesnt allow)")
+ help="Force code checking (if linter doesn't allow)")
PARSER.add_argument(
"--abspath", "-a", action='store_true', default=_Default(False),
help="Use absolute paths in output.")
-ACTIONS = dict((a.dest, a) for a in PARSER._actions)
+ACTIONS = dict((a.dest, a) for a in PARSER._actions) # pylint: disable=protected-access
def parse_options(args=None, config=True, rootdir=CURDIR, **overrides): # noqa
@@ -140,8 +157,7 @@ def parse_options(args=None, config=True, rootdir=CURDIR, **overrides): # noqa
:return argparse.Namespace:
"""
- if args is None:
- args = []
+ args = args or []
# Parse args from command string
options = PARSER.parse_args(args)
@@ -162,10 +178,7 @@ def parse_options(args=None, config=True, rootdir=CURDIR, **overrides): # noqa
# Parse file related options
for name, opts in cfg.sections.items():
- if not name.startswith('pylama'):
- continue
-
- if name == cfg.default_section:
+ if not name.startswith('pylama') or name == cfg.default_section:
continue
name = name[7:]
@@ -178,12 +191,7 @@ def parse_options(args=None, config=True, rootdir=CURDIR, **overrides): # noqa
options.file_params[mask] = dict(opts)
# Override options
- for opt, val in overrides.items():
- passed_value = getattr(options, opt, _Default())
- if opt in ('ignore', 'select') and passed_value:
- setattr(options, opt, process_value(opt, passed_value.value) + process_value(opt, val))
- elif isinstance(passed_value, _Default):
- setattr(options, opt, process_value(opt, val))
+ _override_options(options, **overrides)
# Postprocess options
for name in options.__dict__:
@@ -192,12 +200,24 @@ def parse_options(args=None, config=True, rootdir=CURDIR, **overrides): # noqa
setattr(options, name, process_value(name, value.value))
if options.async and 'pylint' in options.linters:
- LOGGER.warn('Cant parse code asynchronously while pylint is enabled.')
+ LOGGER.warning('Can\'t parse code asynchronously with pylint enabled.')
options.async = False
return options
+def _override_options(options, **overrides):
+ """Override options."""
+ for opt, val in overrides.items():
+ passed_value = getattr(options, opt, _Default())
+ if opt in ('ignore', 'select') and passed_value:
+ value = process_value(opt, passed_value.value)
+ value += process_value(opt, val)
+ setattr(options, opt, value)
+ elif isinstance(passed_value, _Default):
+ setattr(options, opt, process_value(opt, val))
+
+
def process_value(name, value):
""" Compile option value. """
action = ACTIONS.get(name)
@@ -213,7 +233,7 @@ def process_value(name, value):
return value
-def get_config(ini_path=None, rootdir=CURDIR):
+def get_config(ini_path=None, rootdir=None):
""" Load configuration from INI.
:return Namespace:
@@ -223,10 +243,9 @@ def get_config(ini_path=None, rootdir=CURDIR):
config.default_section = 'pylama'
if not ini_path:
- for path in CONFIG_FILES:
- path = os.path.join(rootdir, path)
- if os.path.isfile(path) and os.access(path, os.R_OK):
- config.read(path)
+ path = get_default_config_file(rootdir)
+ if path:
+ config.read(path)
else:
config.read(ini_path)
@@ -234,11 +253,13 @@ def get_config(ini_path=None, rootdir=CURDIR):
def setup_logger(options):
- """ Setup logger with options. """
+ """Do the logger setup with options."""
LOGGER.setLevel(logging.INFO if options.verbose else logging.WARN)
if options.report:
LOGGER.removeHandler(STREAM)
LOGGER.addHandler(logging.FileHandler(options.report, mode='w'))
- LOGGER.info('Try to read configuration from: ' + options.options)
+
+ if options.options:
+ LOGGER.info('Try to read configuration from: ' + options.options)
# pylama:ignore=W0212,D210,F0001
diff --git a/pylama/core.py b/pylama/core.py
index cb5a1f2..c1d8389 100644
--- a/pylama/core.py
+++ b/pylama/core.py
@@ -3,6 +3,7 @@
Prepare params, check a modeline and run the checkers.
"""
import logging
+import sys
import os.path as op
from .config import process_value, LOGGER, MODELINE_RE, SKIP_PATTERN, CURDIR
@@ -131,7 +132,7 @@ def prepare_params(modeline, fileconfig, options):
def filter_errors(errors, select=None, ignore=None, **params):
- """Filter a erros by select and ignore options.
+ """Filter errors by select and ignore options.
:return bool:
@@ -186,7 +187,12 @@ class CodeContext(object):
""" Open a file and read it. """
if self.code is None:
LOGGER.info("File is reading: %s", self.path)
- self._file = open(self.path, 'rU')
+ if sys.version_info >= (3, ):
+ # 'U' mode is deprecated in python 3
+ mode = 'r'
+ else:
+ mode = 'rU'
+ self._file = open(self.path, mode)
self.code = self._file.read()
return self
diff --git a/pylama/libs/inirama.py b/pylama/libs/inirama.py
index 2437fd3..78b8c2b 100644
--- a/pylama/libs/inirama.py
+++ b/pylama/libs/inirama.py
@@ -177,7 +177,7 @@ class INIScanner(Scanner):
ignore = ['IGNORE']
def pre_scan(self):
- """ Prepare string for scaning. """
+ """ Prepare string for scanning. """
escape_re = re.compile(r'\\\n[\t ]+')
self.source = escape_re.sub('', self.source)
@@ -274,7 +274,7 @@ class Namespace(object):
#: Name of default section (:attr:`~inirama.Namespace.default`)
default_section = 'DEFAULT'
- #: Dont raise any exception on file reading erorrs
+ #: Dont raise any exception on file reading errors
silent_read = True
#: Class for generating sections
@@ -337,7 +337,7 @@ class Namespace(object):
""" Parse INI source as string.
:param source: Source of INI
- :param update: Replace alredy defined items
+ :param update: Replace already defined items
"""
scanner = INIScanner(source)
diff --git a/pylama/lint/pylama_pydocstyle.py b/pylama/lint/pylama_pydocstyle.py
index 9f6c1d4..99b59d4 100644
--- a/pylama/lint/pylama_pydocstyle.py
+++ b/pylama/lint/pylama_pydocstyle.py
@@ -1,6 +1,13 @@
"""pydocstyle support."""
-from pydocstyle import PEP257Checker
+THIRD_ARG = True
+try:
+ #: Import for pydocstyle 2.0.0 and newer
+ from pydocstyle import ConventionChecker as PyDocChecker
+except ImportError:
+ #: Backward compatibility for pydocstyle prior to 2.0.0
+ from pydocstyle import PEP257Checker as PyDocChecker
+ THIRD_ARG = False
from pylama.lint import Linter as Abstract
@@ -15,6 +22,7 @@ class Linter(Abstract):
:return list: List of errors.
"""
+ check_source_args = (code, path, None) if THIRD_ARG else (code, path)
return [{
'lnum': e.line,
# Remove colon after error code ("D403: ..." => "D403 ...").
@@ -22,4 +30,4 @@ class Linter(Abstract):
if e.message[4] == ':' else e.message),
'type': 'D',
'number': e.code
- } for e in PEP257Checker().check_source(code, path)]
+ } for e in PyDocChecker().check_source(*check_source_args)]
diff --git a/requirements.txt b/requirements.txt
index c7c6c83..bde2abc 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,7 +1,7 @@
# Test requirements
mccabe >= 0.5.2
-pycodestyle >= 2.0.0
-pydocstyle >= 1.1.1
-pyflakes >= 1.3.0
+pycodestyle >= 2.3.1
+pydocstyle >= 2.0.0
+pyflakes >= 1.5.0
# radon >= 1.4.2
diff --git a/setup.cfg b/setup.cfg
index 16c31e7..445e298 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -4,6 +4,33 @@ universal = 1
[wheel]
universal = 1
+[pylama]
+async = 1
+ignore = D203,D213,F0401,C0111,E731,I0011
+linters = pycodestyle,pyflakes,mccabe,pydocstyle,pylint
+paths = pylama
+skip = pylama/inirama.py,pylama/libs/*
+verbose = 0
+
+[pylama:pyflakes]
+builtins = _
+
+[pylama:pylint]
+disable = R0921,E1002
+max-line-length = 100
+
+[pylama:pycodestyle]
+max_line_length = 100
+
+[pylama:pylama/core.py]
+ignore = C901,R0914
+
+[pylama:pylama/main.py]
+ignore = R0914,W0212,C901,E1103
+
+[pylama:test_pylama.py]
+ignore = D,E1103
+
[egg_info]
tag_build =
tag_date = 0
diff --git a/setup.py b/setup.py
index a6547f5..a80afe3 100644
--- a/setup.py
+++ b/setup.py
@@ -20,9 +20,6 @@ _version = re.search(r'^__version__\s*=\s*"(.*)"', _meta, re.M).group(1)
install_requires = [
l.replace('==', '>=') for l in _read('requirements.txt').split('\n')
if l and not l.startswith('#') and not l.startswith('-')]
-if sys.version_info < (2, 7):
- install_requires += ['argparse']
-
meta = dict(
name=_project,
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/pylama.git
More information about the Python-modules-commits
mailing list