Page MenuHomePhabricator

setup.py sdist copies local .py files outside the repository
Open, LowestPublic

Description

In python-2.7:

writing byte-compilation script '/tmp/tmpYUpI7u.py'
/usr/local/bin/python2.7 -O /tmp/tmpYUpI7u.py
  File "/usr/local/lib/python2.7/site-packages/pywikibot/comms/aiosseclient.py", line 5
    async def aiosseclient(url, last_id=None, **kwargs):
            ^
SyntaxError: invalid syntax

  File "/usr/local/lib/python2.7/site-packages/pywikibot/comms/eventstreams async versuche.py", line 289
    async def agen(self):
            ^
SyntaxError: invalid syntax

In python-3.6:

writing byte-compilation script '/tmp/tmpznn581ye.py'
/usr/local/bin/python3.6 /tmp/tmpznn581ye.py
  File "/usr/local/lib/python3.6/site-packages/pywikibot/comms/eventstreams async versuche.py", line 294
    async __aiter__(self):
                  ^
SyntaxError: invalid syntax

Event Timeline

Yurivict created this task.Mar 4 2018, 10:20 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMar 4 2018, 10:20 PM

Found while updating the FreeBSD port.

Xqt added a subscriber: Xqt.Mar 5 2018, 1:28 AM

Shouldn’t be part of the framework. Where did you find this code?

Xqt added a comment.Mar 5 2018, 1:30 AM
This comment was removed by Xqt.
Xqt triaged this task as High priority.Mar 5 2018, 1:31 AM
Xqt claimed this task.Mar 5 2018, 1:34 AM
Xqt edited projects, added Pywikibot; removed Bot-Frameworks.Mar 5 2018, 1:50 AM
Restricted Application added a subscriber: pywikibot-bugs-list. · View Herald TranscriptMar 5 2018, 1:50 AM
Xqt renamed this task from pywikibot prints errors during build to setup.py sdist copies local .py files outside the repository.Mar 5 2018, 1:56 AM
Xqt removed Xqt as the assignee of this task.
Xqt lowered the priority of this task from High to Lowest.Mar 5 2018, 2:15 AM

There where remaining local files from a local test branch uploaded to pypi.

I uploaded a new release to pypi which solves this bug after updating with pip install pywikibot != 3.0.20180302.

Anyway a solution would be nice not copying such orphaned files.