1 new commit in tox:

https://bitbucket.org/hpk42/tox/commits/0f1846de3af1/
Changeset:   0f1846de3af1
Branch:      issue285
User:        hpk42
Date:        2015-11-20 21:36:39+00:00
Summary:     merge default
Affected #:  6 files

diff -r ecae8369bedafddaeda73e16e2622e55011919c8 -r 
0f1846de3af1d21c3d33099c47ef7d961620f362 CHANGELOG
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,8 +1,15 @@
-2.2.2.dev
----------
+2.3.0 (unreleased)
+-----
 
 - fix issue285 (WIP) setenv processing with self-references
 
+- allow "#" in commands.  This is slightly incompatible with commands
+  sections that used a comment after a "\" line continuation.
+  Thanks David Stanek for the PR.
+
+- fix issue289: fix build_sphinx target, thanks Barry Warsaw.
+
+
 2.2.1
 -----
 

diff -r ecae8369bedafddaeda73e16e2622e55011919c8 -r 
0f1846de3af1d21c3d33099c47ef7d961620f362 setup.cfg
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,5 +1,5 @@
 [build_sphinx]
-source-dir = doc/en/
+source-dir = doc/
 build-dir = doc/build
 all_files = 1
 

diff -r ecae8369bedafddaeda73e16e2622e55011919c8 -r 
0f1846de3af1d21c3d33099c47ef7d961620f362 setup.py
--- a/setup.py
+++ b/setup.py
@@ -48,7 +48,7 @@
         description='virtualenv-based automation of test activities',
         long_description=open("README.rst").read(),
         url='http://tox.testrun.org/',
-        version='2.2.2.dev1',
+        version='2.3.0.dev1',
         license='http://opensource.org/licenses/MIT',
         platforms=['unix', 'linux', 'osx', 'cygwin', 'win32'],
         author='holger krekel',

diff -r ecae8369bedafddaeda73e16e2622e55011919c8 -r 
0f1846de3af1d21c3d33099c47ef7d961620f362 tests/test_config.py
--- a/tests/test_config.py
+++ b/tests/test_config.py
@@ -450,7 +450,7 @@
         config = newconfig("""
             [section]
             key2=
-                cmd1 {item1} \ # a comment
+                cmd1 {item1} \
                      {item2}
         """)
         reader = SectionReader("section", config._cfg)
@@ -465,12 +465,32 @@
         config = newconfig("""
             [section]
             key1=
-                cmd1 'with space' \ # a comment
-                     'after the comment'
+                cmd1 'part one' \
+                     'part two'
         """)
         reader = SectionReader("section", config._cfg)
         x = reader.getargvlist("key1")
-        assert x == [["cmd1", "with space", "after the comment"]]
+        assert x == [["cmd1", "part one", "part two"]]
+
+    def test_argvlist_comment_after_command(self, tmpdir, newconfig):
+        config = newconfig("""
+            [section]
+            key1=
+                cmd1 --flag  # run the flag on the command
+        """)
+        reader = SectionReader("section", config._cfg)
+        x = reader.getargvlist("key1")
+        assert x == [["cmd1", "--flag"]]
+
+    def test_argvlist_command_contains_hash(self, tmpdir, newconfig):
+        config = newconfig("""
+            [section]
+            key1=
+                cmd1 --re  "use the # symbol for an arg"
+        """)
+        reader = SectionReader("section", config._cfg)
+        x = reader.getargvlist("key1")
+        assert x == [["cmd1", "--re", "use the # symbol for an arg"]]
 
     def test_argvlist_positional_substitution(self, tmpdir, newconfig):
         config = newconfig("""

diff -r ecae8369bedafddaeda73e16e2622e55011919c8 -r 
0f1846de3af1d21c3d33099c47ef7d961620f362 tox/__init__.py
--- a/tox/__init__.py
+++ b/tox/__init__.py
@@ -1,5 +1,5 @@
 #
-__version__ = '2.2.2.dev1'
+__version__ = '2.3.0.dev1'
 
 from .hookspecs import hookspec, hookimpl  # noqa
 

diff -r ecae8369bedafddaeda73e16e2622e55011919c8 -r 
0f1846de3af1d21c3d33099c47ef7d961620f362 tox/config.py
--- a/tox/config.py
+++ b/tox/config.py
@@ -1040,9 +1040,6 @@
         current_command = ""
         for line in value.splitlines():
             line = line.rstrip()
-            i = line.find("#")
-            if i != -1:
-                line = line[:i].rstrip()
             if not line:
                 continue
             if line.endswith("\\"):
@@ -1094,7 +1091,6 @@
         shlexer = shlex.shlex(newcommand, posix=True)
         shlexer.whitespace_split = True
         shlexer.escape = ''
-        shlexer.commenters = ''
         argv = list(shlexer)
         return argv

Repository URL: https://bitbucket.org/hpk42/tox/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
_______________________________________________
pytest-commit mailing list
pytest-commit@python.org
https://mail.python.org/mailman/listinfo/pytest-commit

Reply via email to