Hello community,

here is the log from the commit of package python-nodeenv for openSUSE:Factory 
checked in at 2020-09-16 19:41:48
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-nodeenv (Old)
 and      /work/SRC/openSUSE:Factory/.python-nodeenv.new.4249 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-nodeenv"

Wed Sep 16 19:41:48 2020 rev:5 rq:834890 version:1.5.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-nodeenv/python-nodeenv.changes    
2020-06-15 20:29:18.342123885 +0200
+++ /work/SRC/openSUSE:Factory/.python-nodeenv.new.4249/python-nodeenv.changes  
2020-09-16 19:42:37.987016750 +0200
@@ -1,0 +2,6 @@
+Wed Sep 16 11:25:25 UTC 2020 - Dirk Mueller <dmuel...@suse.com>
+
+- update to 1.5.0:
+  * ignore ssl option, MSYS2 support
+
+-------------------------------------------------------------------

Old:
----
  nodeenv-1.4.0.tar.gz

New:
----
  nodeenv-1.5.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-nodeenv.spec ++++++
--- /var/tmp/diff_new_pack.G2BrfA/_old  2020-09-16 19:42:40.903019628 +0200
+++ /var/tmp/diff_new_pack.G2BrfA/_new  2020-09-16 19:42:40.911019636 +0200
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-nodeenv
-Version:        1.4.0
+Version:        1.5.0
 Release:        0
 Summary:        Nodejs virtual environment builder
 License:        BSD-2-Clause

++++++ nodeenv-1.4.0.tar.gz -> nodeenv-1.5.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nodeenv-1.4.0/AUTHORS new/nodeenv-1.5.0/AUTHORS
--- old/nodeenv-1.4.0/AUTHORS   2020-06-02 14:07:34.000000000 +0200
+++ new/nodeenv-1.5.0/AUTHORS   2020-08-23 20:26:37.000000000 +0200
@@ -4,8 +4,8 @@
 ```````````````````````
 
 -  jhermann 
--  anatoly techtonik 
 -  Anthony Sottile 
+-  anatoly techtonik 
 -  ivan hilkov 
 -  Vincent Bernat 
 -  Kyle P Davis 
@@ -22,12 +22,16 @@
 -  Lispython 
 -  Leonardo Fedalto 
 -  Kyle P Davis 
+-  Kefu Chai 
+-  Jon Winn 
 -  Dennis Flanigan 
 -  Chris Beaven 
+-  Cerem Cem ASLAN 
 -  Bruno Oliveira 
 -  Andrzej Pragacz 
 -  Alex Couper 
 -  0Xellos 
+-  zjeuhpiung liu 
 -  Zenobius Jiricek 
 -  Yi-Feng Tzeng 
 -  Willem Jan Withagen 
@@ -36,6 +40,7 @@
 -  Vincent Bernat 
 -  urbandove 
 -  Uman Shahzad 
+-  Thomas Bechtold 
 -  Terseus 
 -  Stan Seibert 
 -  Shubhang Mani 
@@ -59,6 +64,7 @@
 -  Jeremy Banks 
 -  Geoffrey Huntley 
 -  Fabricio C Zuardi 
+-  Duncan Bellamy 
 -  dkgitdev 
 -  dhilipsiva 
 -  Dennis Flanigan 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nodeenv-1.4.0/Makefile new/nodeenv-1.5.0/Makefile
--- old/nodeenv-1.4.0/Makefile  2020-06-02 14:07:34.000000000 +0200
+++ new/nodeenv-1.5.0/Makefile  2020-08-23 20:26:37.000000000 +0200
@@ -8,6 +8,7 @@
        git push --tags origin master
 
 deploy-pypi:
+       rm -rf dist
        python setup.py sdist bdist_wheel
        twine upload --repository pypi dist/*
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nodeenv-1.4.0/README.rst new/nodeenv-1.5.0/README.rst
--- old/nodeenv-1.4.0/README.rst        2020-06-02 14:07:34.000000000 +0200
+++ new/nodeenv-1.5.0/README.rst        2020-08-23 20:26:37.000000000 +0200
@@ -213,6 +213,10 @@
     $ npm install -g coffee-script
     $ which coffee
     /home/monty/virtualenvs/my_env/bin/coffee
+    
+Creating a virtual environment with a custom prompt:
+
+    $ nodeenv --node=12.18.2 --prompt="(myenv)" nodeenv
 
 If environment's directory already exists then you can use ``--force`` option::
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nodeenv-1.4.0/nodeenv.py new/nodeenv-1.5.0/nodeenv.py
--- old/nodeenv-1.4.0/nodeenv.py        2020-06-02 14:07:34.000000000 +0200
+++ new/nodeenv-1.5.0/nodeenv.py        2020-08-23 20:26:37.000000000 +0200
@@ -16,6 +16,7 @@
 import sys
 import os
 import re
+import ssl
 import stat
 import logging
 import operator
@@ -46,7 +47,7 @@
 
 from pkg_resources import parse_version
 
-nodeenv_version = '1.4.0'
+nodeenv_version = '1.5.0'
 
 join = os.path.join
 abspath = os.path.abspath
@@ -54,8 +55,9 @@
 
 is_PY3 = sys.version_info[0] >= 3
 is_WIN = platform.system() == 'Windows'
-is_CYGWIN = platform.system().startswith('CYGWIN')
+is_CYGWIN = platform.system().startswith(('CYGWIN', 'MSYS'))
 
+ignore_ssl_certs = False
 
 # ---------------------------------------------------------
 # Utils
@@ -97,6 +99,7 @@
     profile = False
     make = 'make'
     prebuilt = True
+    ignore_ssl_certs = False
 
     @classmethod
     def _load(cls, configfiles, verbose=False):
@@ -341,7 +344,13 @@
         action='store_true', default=Config.prebuilt,
         help='Install node.js from prebuilt package (default)')
 
+    parser.add_option(
+        '--ignore_ssl_certs', dest='ignore_ssl_certs',
+        action='store_true', default=Config.ignore_ssl_certs,
+        help='Ignore certificates for package downloads. - UNSAFE -')
+
     options, args = parser.parse_args()
+
     if options.config_file is None:
         options.config_file = ["./tox.ini", "./setup.cfg", "~/.nodeenvrc"]
     elif not options.config_file:
@@ -513,7 +522,10 @@
         'AMD64':  'x64',  # Windows Server 2012 R2 (x64)
         'armv6l': 'armv6l',     # arm
         'armv7l': 'armv7l',
+        'armv8l': 'armv7l',
         'aarch64': 'arm64',
+        'ppc64le': 'ppc64le',   # Power PC
+        's390x': 's390x',       # IBM S390x
     }
     sysinfo = {
         'system': platform.system().lower(),
@@ -582,6 +594,10 @@
     home_url = "https://github.com/ekalinin/nodeenv/";
     headers = {'User-Agent': 'nodeenv/%s (%s)' % (nodeenv_version, home_url)}
     req = urllib2.Request(url, None, headers)
+    if ignore_ssl_certs:
+        context = ssl.SSLContext()
+        context.verify_mode = ssl.CERT_NONE
+        return urllib2.urlopen(req, context=context)
     return urllib2.urlopen(req)
 
 # ---------------------------------------------------------
@@ -1018,6 +1034,9 @@
         exit(1)
 
     global src_base_url
+    global ignore_ssl_certs
+
+    ignore_ssl_certs = opt.ignore_ssl_certs
 
     src_domain = None
     if opt.mirror:
@@ -1074,10 +1093,10 @@
 }
 
 SHIM = """#!/usr/bin/env bash
-export NODE_PATH=__NODE_VIRTUAL_ENV__/lib/node_modules
-export NPM_CONFIG_PREFIX=__NODE_VIRTUAL_ENV__
-export npm_config_prefix=__NODE_VIRTUAL_ENV__
-exec __SHIM_NODE__ "$@"
+export NODE_PATH='__NODE_VIRTUAL_ENV__/lib/node_modules'
+export NPM_CONFIG_PREFIX='__NODE_VIRTUAL_ENV__'
+export npm_config_prefix='__NODE_VIRTUAL_ENV__'
+exec '__SHIM_NODE__' "$@"
 """
 
 ACTIVATE_BAT = r"""
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nodeenv-1.4.0/tests/nodeenv_test.py 
new/nodeenv-1.5.0/tests/nodeenv_test.py
--- old/nodeenv-1.4.0/tests/nodeenv_test.py     2020-06-02 14:07:34.000000000 
+0200
+++ new/nodeenv-1.5.0/tests/nodeenv_test.py     2020-08-23 20:26:37.000000000 
+0200
@@ -2,6 +2,7 @@
 from __future__ import unicode_literals
 
 import os.path
+import pipes
 import subprocess
 import sys
 
@@ -23,8 +24,24 @@
         '-m', 'nodeenv', '--prebuilt', nenv_path,
     ])
     assert os.path.exists(nenv_path)
+    activate = pipes.quote(os.path.join(nenv_path, 'bin', 'activate'))
     subprocess.check_call([
-        'sh', '-c', '. {0}/bin/activate && nodejs --version'.format(nenv_path),
+        'sh', '-c', '. {} && nodejs --version'.format(activate),
+    ])
+
+
+@pytest.mark.integration
+@pytest.mark.skipif(sys.platform == 'win32', reason='-n system is posix only')
+def test_smoke_n_system_special_chars(tmpdir):
+    nenv_path = tmpdir.join('nenv (production env)').strpath
+    subprocess.check_call((
+        'coverage', 'run', '-p',
+        '-m', 'nodeenv', '-n', 'system', nenv_path,
+    ))
+    assert os.path.exists(nenv_path)
+    activate = pipes.quote(os.path.join(nenv_path, 'bin', 'activate'))
+    subprocess.check_call([
+        'sh', '-c', '. {} && nodejs --version'.format(activate),
     ])
 
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nodeenv-1.4.0/tox.ini new/nodeenv-1.5.0/tox.ini
--- old/nodeenv-1.4.0/tox.ini   2020-06-02 14:07:34.000000000 +0200
+++ new/nodeenv-1.5.0/tox.ini   2020-08-23 20:26:37.000000000 +0200
@@ -25,3 +25,7 @@
     sphinx
 changedir = docs
 commands = sphinx-build -b html -d build/doctrees source build/html
+
+[pytest]
+markers =
+    integration: tests that take a little bit longer


Reply via email to