Re: Jython 2.7.1 rc2 soft release

Jim Baker <[email protected]>
Newsgroups gmane.comp.lang.jython.devel
Message-ID <CAOhO=aNdaDV_CQg=0dwHTqgoHZxZsH+ucNi2MekH728g_7amYg@mail.gmail.com>
I also tested the installer on Ubuntu 16.04.2 LTS with Java 8 (1.8.0_131),
and it works as expected (regrtest, yolk smoke test); I also tested the
standalone jar. More below.

Given Jeff's testing on Windows — very nice that Jython now works with
Unicode in the username! —  we have completed basic sanity checks and *we
can finalize this RC2*.

I haven't really tried to do much testing with the standalone jar in the
past, in part because all the tests are stripped from it. However, it is
possible to run most of the tests, excluding introspective type tests that
try to look up Python files that are enclosed in the standalone jar (not
going to work before we fix http://bugs.jython.org/issue2143).

Also interestingly it is possible to do the following with the standalone
jar:

$ java -jar jython-standalone-2.7.1-rc2.jar -m ensurepip
Collecting setuptools
Collecting pip
Installing collected packages: setuptools, pip
  Failed to open /Users/jbaker/jythondev/test-standalone/bin/jython
  Failed to open /Users/jbaker/jythondev/test-standalone/bin/jython
  Failed to open /Users/jbaker/jythondev/test-standalone/bin/jython
  Failed to open /Users/jbaker/jythondev/test-standalone/bin/jython
  Failed to open /Users/jbaker/jythondev/test-standalone/bin/jython
Successfully installed pip-9.0.1 setuptools-28.8.0
jimbaker:test-standalone jbaker$ java -jar jython-standalone-2.7.1-rc2.jar
-m pip install pytz
Collecting pytz
  Downloading pytz-2017.2-py2.py3-none-any.whl (484kB)
    100% |████████████████████████████████| 491kB 556kB/s
Installing collected packages: pytz
Successfully installed pytz-2017.2

And then use the pytz package etc. Such packages are simply installed in
Lib/site-packages, which will be created if missing. JYTHONPATH probably
needs to be set properly for all this to work. Interesting detail that I
hadn't connected before myself.

On Mon, May 29, 2017 at 7:27 PM, Jim Baker <[email protected]> wrote:

> I tested the installation on OSX 10.12 (Sierra), including the smoke test
> for pip/setuptools (yolk) and the regrtest, and it works as expected.
>
> As I mentioned in http://bugs.jython.org/issue2594, test_load_cert_chain
> in test_ssl relies on signed jars in Bouncy Castle. Fortunately if those
> jars are on the CLASSPATH, they will precede Jython's shaded/uber jar
> variants.
>
>
>
> On Mon, May 29, 2017 at 6:25 PM, Jeff Allen <[email protected]> wrote:
>
>> This installed fine for me on Windows (actually for user 用户名), including
>> pip & setuptools.
>>
>> I ran the regression test as ..\2.7.1-rc2\bin\jython -m test.regrtest -e
>> and got 3 failures.
>>
>> 372 tests OK.
>> 7 tests skipped:
>>     test_codecmaps_hk test_curses test_smtpnet test_socketserver
>>     test_subprocess test_urllib2net test_urllibnet
>> 3 tests failed:
>>     test___all__ test_inspect test_ssl
>> 3 fails unexpected:
>>     test___all__ test_inspect test_ssl
>>
>> test___all__ fails on a missing ServeletException see
>> http://bugs.jython.org/issue2308
>>
>> ..\2.7.1-rc2\bin\jython -m test.test_inspect
>> ..\2.7.1-rc2\bin\jython -m test.regrtest test_inspect
>> pass when re-run in isolation.
>>
>> ..\2.7.1-rc2\bin\jython -m test.test_ssl
>> fails as reported in http://bugs.jython.org/issue2594
>>
>> Passing test with Netty shower:
>>
>> test_socket
>> May 29, 2017 8:28:36 PM org.python.netty.bootstrap.AbstractBootstrap
>> setChannelOption
>> WARNING: Unknown channel option 'SO_KEEPALIVE' for channel '[id:
>> 0x286e32d1]'
>> May 29, 2017 8:28:36 PM org.python.netty.bootstrap.AbstractBootstrap
>> setChannelOption
>> WARNING: Unknown channel option 'SO_KEEPALIVE' for channel '[id:
>> 0x666fcd99]'
>> May 29, 2017 8:28:40 PM org.python.netty.util.concurrent.DefaultPromise
>> safeExecute
>> SEVERE: Failed to submit a listener notification task. Event loop shut
>> down?
>> java.util.concurrent.RejectedExecutionException: event executor
>> terminated
>>         at org.python.netty.util.concurrent.SingleThreadEventExecutor.r
>> eject(SingleThreadEventExecutor.java:821)
>>         at org.python.netty.util.concurrent.SingleThreadEventExecutor.o
>> fferTask(SingleThreadEventExecutor.java:327)
>>         at org.python.netty.util.concurrent.SingleThreadEventExecutor.a
>> ddTask(SingleThreadEventExecutor.java:320)
>>      ...
>>
>> Maybe the SSL failure is a worry, but nothing else.
>>
>> Jeff
>>
>>
>> Jeff Allen
>>
>>
>> On 29/05/2017 19:17, [email protected] wrote:
>>
>>> Hi all,
>>>
>>> I've put together a soft release of 2.7.1 rc2.
>>>
>>> Please test! As soon as I get a couple of sanity checks, I'll finalize
>>> the RC and do a real announcement.
>>>
>>> The releases:
>>>
>>> installer: https://oss.sonatype.org/content/repositories/orgpython-1065
>>> /org/python/jython-installer/2.7.1-rc2/jython-installer-2.7.1-rc2.jar
>>>
>>> standalone: https://oss.sonatype.org/content/repositories/orgpython-1066
>>> /org/python/jython-standalone/2.7.1-rc2/jython-standalone-2.7.1-rc2.jar
>>>
>>> The parent directories of each of the above have the checksums, source
>>> jars, javadocs, etc.
>>>
>>> -Frank
>>>
>>> ------------------------------------------------------------
>>> ------------------
>>> Check out the vibrant tech community on one of the world's most
>>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>>> _______________________________________________
>>> Jython-dev mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/jython-dev
>>>
>>>
>>
>> ------------------------------------------------------------
>> ------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> _______________________________________________
>> Jython-dev mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/jython-dev
>>
>
>

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

_______________________________________________
Jython-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jython-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.