Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] python3-nose not functional with 3.10
@ 2021-10-27 18:51 TinfoilSubmarine
  2021-10-27 19:04 ` python3-nose not functional with python 3.10 TinfoilSubmarine
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: TinfoilSubmarine @ 2021-10-27 18:51 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1814 bytes --]

New issue by TinfoilSubmarine on void-packages repository

https://github.com/void-linux/void-packages/issues/33788

Description:
<!-- Don't request update of package. We have a script for that. https://alpha.de.repo.voidlinux.org/void-updates/void-updates.txt . However, a quality pull request may help. -->
### System

* xuname:  
  Void 5.13.19_1 x86_64 AuthenticAMD notuptodate rrmFFFFFFFFFFFFFFFFF
* package:  
  *affected package(s) including the version*: ``python3-nose-1.3.7_7``, ``python3-pytest-6.2.5_2``

### Expected behavior
I should be able to install `python3-nose` and run `import nose`, or run `./xbps-src pkg python3-pytest -Q` and have tests run successfully.

### Actual behavior
When importing in REPL:
```
Python 3.10.0 (default, Oct  9 2021, 12:07:44) [GCC 10.2.1 20201203] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import nose
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.10/site-packages/nose/__init__.py", line 1, in <module>
    from nose.core import collector, main, run, run_exit, runmodule
  File "/usr/lib/python3.10/site-packages/nose/core.py", line 153
    print "%s version %s" % (os.path.basename(sys.argv[0]), __version__)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
```
When testing `python3-pytest`: <see attached log>
[pkg-python3-pytest.txt](https://github.com/void-linux/void-packages/files/7428572/pkg-python3-pytest.txt)

### Steps to reproduce the behavior
1. Install `python3-nose`
2. run `import python3-pytest` in python REPL.

OR
1. Build `python3-pytest` with xbps-src with testing enabled: `./xbps-src pkg python3-pytest -Q`


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: python3-nose not functional with python 3.10
  2021-10-27 18:51 [ISSUE] python3-nose not functional with 3.10 TinfoilSubmarine
@ 2021-10-27 19:04 ` TinfoilSubmarine
  2021-10-27 20:51 ` TinfoilSubmarine
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: TinfoilSubmarine @ 2021-10-27 19:04 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 221 bytes --]

New comment by TinfoilSubmarine on void-packages repository

https://github.com/void-linux/void-packages/issues/33788#issuecomment-953226274

Comment:
nose is not maintained: https://github.com/nose-devs/nose/issues/1099

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: python3-nose not functional with python 3.10
  2021-10-27 18:51 [ISSUE] python3-nose not functional with 3.10 TinfoilSubmarine
  2021-10-27 19:04 ` python3-nose not functional with python 3.10 TinfoilSubmarine
@ 2021-10-27 20:51 ` TinfoilSubmarine
  2021-10-31 23:45 ` Johnnynator
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: TinfoilSubmarine @ 2021-10-27 20:51 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 489 bytes --]

New comment by TinfoilSubmarine on void-packages repository

https://github.com/void-linux/void-packages/issues/33788#issuecomment-953301356

Comment:
Some further investigation:

`setuptools` dropped support for `use_2to3` in 58.x.x. Since nose's setup.py relies on this, it is failing an import and building without running 2to3 and generating valid python3 code.

I guess the way forward for now is to manually prepare a patch for `python3-nose`, unless there are any better ideas?

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: python3-nose not functional with python 3.10
  2021-10-27 18:51 [ISSUE] python3-nose not functional with 3.10 TinfoilSubmarine
  2021-10-27 19:04 ` python3-nose not functional with python 3.10 TinfoilSubmarine
  2021-10-27 20:51 ` TinfoilSubmarine
@ 2021-10-31 23:45 ` Johnnynator
  2021-11-02 14:35 ` ahesford
  2021-11-02 15:28 ` [ISSUE] [CLOSED] " ahesford
  4 siblings, 0 replies; 6+ messages in thread
From: Johnnynator @ 2021-10-31 23:45 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 261 bytes --]

New comment by Johnnynator on void-packages repository

https://github.com/void-linux/void-packages/issues/33788#issuecomment-955814374

Comment:
Imo we should just drop it, I don't think nose is valuable enough to patch it and nothing depends on it at runtime

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: python3-nose not functional with python 3.10
  2021-10-27 18:51 [ISSUE] python3-nose not functional with 3.10 TinfoilSubmarine
                   ` (2 preceding siblings ...)
  2021-10-31 23:45 ` Johnnynator
@ 2021-11-02 14:35 ` ahesford
  2021-11-02 15:28 ` [ISSUE] [CLOSED] " ahesford
  4 siblings, 0 replies; 6+ messages in thread
From: ahesford @ 2021-11-02 14:35 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 393 bytes --]

New comment by ahesford on void-packages repository

https://github.com/void-linux/void-packages/issues/33788#issuecomment-957713092

Comment:
Let's keep this around awhile longer. There are still some packages that use `python3-nose` for testing and I don't want to break their checks. I will drop `python-nose` since no templates mention the Py2 package and will fix `python3-nose` for now.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [ISSUE] [CLOSED] python3-nose not functional with python 3.10
  2021-10-27 18:51 [ISSUE] python3-nose not functional with 3.10 TinfoilSubmarine
                   ` (3 preceding siblings ...)
  2021-11-02 14:35 ` ahesford
@ 2021-11-02 15:28 ` ahesford
  4 siblings, 0 replies; 6+ messages in thread
From: ahesford @ 2021-11-02 15:28 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1807 bytes --]

Closed issue by TinfoilSubmarine on void-packages repository

https://github.com/void-linux/void-packages/issues/33788

Description:
<!-- Don't request update of package. We have a script for that. https://alpha.de.repo.voidlinux.org/void-updates/void-updates.txt . However, a quality pull request may help. -->
### System

* xuname:  
  Void 5.13.19_1 x86_64 AuthenticAMD notuptodate rrmFFFFFFFFFFFFFFFFF
* package:  
  *affected package(s) including the version*: ``python3-nose-1.3.7_7``, ``python3-pytest-6.2.5_2``

### Expected behavior
I should be able to install `python3-nose` and run `import nose`, or run `./xbps-src pkg python3-pytest -Q` and have tests run successfully.

### Actual behavior
When importing in REPL:
```
Python 3.10.0 (default, Oct  9 2021, 12:07:44) [GCC 10.2.1 20201203] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import nose
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.10/site-packages/nose/__init__.py", line 1, in <module>
    from nose.core import collector, main, run, run_exit, runmodule
  File "/usr/lib/python3.10/site-packages/nose/core.py", line 153
    print "%s version %s" % (os.path.basename(sys.argv[0]), __version__)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
```
When testing `python3-pytest`: <see attached log>
[pkg-python3-pytest.txt](https://github.com/void-linux/void-packages/files/7428572/pkg-python3-pytest.txt)

### Steps to reproduce the behavior
1. Install `python3-nose`
2. run `import nose` in python REPL.

OR
1. Build `python3-pytest` with xbps-src with testing enabled: `./xbps-src pkg python3-pytest -Q`


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-11-02 15:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-27 18:51 [ISSUE] python3-nose not functional with 3.10 TinfoilSubmarine
2021-10-27 19:04 ` python3-nose not functional with python 3.10 TinfoilSubmarine
2021-10-27 20:51 ` TinfoilSubmarine
2021-10-31 23:45 ` Johnnynator
2021-11-02 14:35 ` ahesford
2021-11-02 15:28 ` [ISSUE] [CLOSED] " ahesford

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).