Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: Python3 support #7

Open
4 of 5 tasks
westurner opened this issue Aug 24, 2014 · 5 comments · Fixed by #29
Open
4 of 5 tasks

ENH: Python3 support #7

westurner opened this issue Aug 24, 2014 · 5 comments · Fixed by #29

Comments

@westurner
Copy link
Owner

westurner commented Aug 24, 2014

@westurner westurner added this to the 1.0 milestone Aug 24, 2014
@westurner westurner modified the milestones: 1.0, 0.3 Aug 24, 2014
@westurner westurner mentioned this issue Mar 27, 2016
Closed
@pahaz
Copy link

pahaz commented Jul 18, 2016

$ pyline --help
Traceback (most recent call last):
  File "/usr/local/bin/pyline", line 7, in <module>
    from pyline.pyline import main
  File "/usr/local/lib/python3.5/site-packages/pyline/__init__.py", line 8, in <module>
    __main__ = pyline.main
AttributeError: module 'pyline' has no attribute 'main'

westurner added a commit that referenced this issue Jul 22, 2016
* hotfix/0.3.13:
  BUG,TST: pyline/pyline.py: console_entrypoint -> pyline.pyline:main_entrypoint (see: #7)
westurner added a commit that referenced this issue Jul 22, 2016
RLS: pyline v0.3.13

* tag 'v0.3.13':
  BUG,TST: pyline/pyline.py: console_entrypoint -> pyline.pyline:main_entrypoint (see: #7)
westurner added a commit that referenced this issue Jul 22, 2016
westurner added a commit that referenced this issue Jul 22, 2016
* hotfix/0.3.16:
  DOC: HISTORY.rst: git-changelog.py
  RLS: pyline v0.3.16
  BUG: pyline.py: sys.argv[1:] (#7)
westurner added a commit that referenced this issue Jul 22, 2016
RLS: pyline v0.3.16

* tag 'v0.3.16':
  DOC: HISTORY.rst: git-changelog.py
  RLS: pyline v0.3.16
  BUG: pyline.py: sys.argv[1:] (#7)
@jayvdb
Copy link

jayvdb commented May 14, 2019

This hasnt been released to PyPI, which is stuck on v0.3.16 while v0.3.17 has been tagged in the repo

@westurner
Copy link
Owner Author

This is blocking getting a pyline with Python 3 support uploaded to PyPi:
From #29 (comment) :

Python 3 fails on:

sorted(['a', None, 1])

Due to docs.python.org/3/whatsnew/3.0.html#ordering-comparisons

stackoverflow.com/a/47368476 is an implementation of Python 2-style sorting for Python 3.

  • Ask for permission to use in an open source project
  • get permission
  • Decide how to enable or disable this feature with CLI args

@westurner
Copy link
Owner Author

Solution for now: ~ transform None to "":

sorted([None, "b", "c"]) -> sorted(["", "b", "c"])

sorted([None, 1, "c"]) -> sorted(["", 1, "c"])  # which still errors; but shouldn't happen without a strange type cast function

@westurner
Copy link
Owner Author

I just released pyline v0.3.20 with Python 3 support to PyPI: https://pypi.org/project/pyline/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants