http://hg.code.sf.net:8000/p/roundup/code/atom-log/tip/scripts/contributors.py Mercurial Repository: p/roundup/code: scripts/contributors.py history 2026-04-08T21:39:40-04:00 chore: remove __future print_funcion from code. http://hg.code.sf.net:8000/p/roundup/code/#changeset-9c3ec0a5c7fc88acb8a65632ecc13b2d52380314 John Rouillard rouilj@ieee.org 2026-04-08T21:39:40-04:00 2026-04-08T21:39:40-04:00
changeset 9c3ec0a5c7fc
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description chore: remove __future print_funcion from code.

Not needed as of Python 3.
files
fix: make it work under python3. http://hg.code.sf.net:8000/p/roundup/code/#changeset-4919435ac2311c10d4e002cb6305af24305408b3 John Rouillard rouilj@ieee.org 2024-03-04T21:14:22-05:00 2024-03-04T21:14:22-05:00
changeset 4919435ac231
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description fix: make it work under python3.

plus some ruff cleanups.
files
Make contributers.py work. http://hg.code.sf.net:8000/p/roundup/code/#changeset-519cc743bf5aec575db92028471c21a7ff6ed2df John Rouillard rouilj@ieee.org 2022-11-15T22:49:36-05:00 2022-11-15T22:49:36-05:00
changeset 519cc743bf5a
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description Make contributers.py work.

check_output needed shell=True.

Also fix aliases for myself.
files
Use print_function import everywhere using print. http://hg.code.sf.net:8000/p/roundup/code/#changeset-ce171c81d823e7d8938e6b84d408b6ed3f85e730 Joseph Myers jsm@polyomino.org.uk 2018-08-05T11:45:43+00:00 2018-08-05T11:45:43+00:00
changeset ce171c81d823
branch
bookmark
tag
user Joseph Myers <jsm@polyomino.org.uk>
description Use print_function import everywhere using print.

As requested in
<https://sourceforge.net/p/roundup/mailman/message/36374864/>, to
avoid accidental future addition of print statements incompatible with
Python 3.
files
Python 3 preparation: comparisons. http://hg.code.sf.net:8000/p/roundup/code/#changeset-3fa026621f698afc2f2945b733bffd4e03e23d2f Joseph Myers jsm@polyomino.org.uk 2018-07-25T00:39:37+00:00 2018-07-25T00:39:37+00:00
changeset 3fa026621f69
branch
bookmark
tag
user Joseph Myers <jsm@polyomino.org.uk>
description Python 3 preparation: comparisons.

Python 3 no longer has the cmp function, or cmp= arguments to sorting
functions / methods (key= must be used instead), and requires rich
comparison methods such as __lt__ to be defined instead of using
__cmp__. All of the comparison mechanisms supported in Python 3 are
also supported in Python 2.

This patch makes the corresponding changes in Roundup to use key
functions and rich comparison methods. In the case of the
JournalPassword and Permission classes, only __eq__ and __ne__ are
defined as I don't see ordered comparisons as useful there (and for
Permission, the old __cmp__ function didn't try to provide a valid
ordering). In the case of the Date class, I kept the __cmp__ method
and implemented the others in terms of it, to avoid excess
repetitiveness in duplicating implementation code for all six rich
comparison methods.

In roundup/admin.py, help_commands_html used operator.attrgetter to
produce the second argument of sorted() - which would be reasonable
for a key function, but the second argument is the cmp function in
Python 2, not a key function (and the key function must be a named
argument not a positional argument in Python 3). That function
appears to be completely unused, so I expect that code never worked.
This patch adds the missing key= to that sorted() call, but it would
also be reasonable to remove the unused function completely instead.
files
contributors.py: Exclude robots and change sorting so that http://hg.code.sf.net:8000/p/roundup/code/#changeset-64daaa4bf816a18412e508503bc665485dc58fe8 anatoly techtonik techtonik@gmail.com 2013-08-25T23:39:34+03:00 2013-08-25T23:39:34+03:00
changeset 64daaa4bf816
branch
bookmark
tag
user anatoly techtonik <techtonik@gmail.com>
description contributors.py: Exclude robots and change sorting so that
among most recent contributors people with
earlier entry date appear at the top.

Add description to scripts/README.txt
files
contributors.py: Add aliases and process them http://hg.code.sf.net:8000/p/roundup/code/#changeset-f1c7f99e6fc0f032998a30f976123b73b000028b anatoly techtonik techtonik@gmail.com 2013-08-25T17:45:43+03:00 2013-08-25T17:45:43+03:00
changeset f1c7f99e6fc0
branch
bookmark
tag
user anatoly techtonik <techtonik@gmail.com>
description contributors.py: Add aliases and process them
files
contributors.py: Improve sorting, output string instead of list http://hg.code.sf.net:8000/p/roundup/code/#changeset-7c765b6fc44b87d2582fa0e136806878c4a18f88 anatoly techtonik techtonik@gmail.com 2013-08-25T17:21:24+03:00 2013-08-25T17:21:24+03:00
changeset 7c765b6fc44b
branch
bookmark
tag
user anatoly techtonik <techtonik@gmail.com>
description contributors.py: Improve sorting, output string instead of list
files
contributors.py: Sort contributors by last contributor's year (newest first) http://hg.code.sf.net:8000/p/roundup/code/#changeset-b3bf0aa483689e2c326914d180fcf907ec220232 anatoly techtonik techtonik@gmail.com 2013-08-25T17:06:18+03:00 2013-08-25T17:06:18+03:00
changeset b3bf0aa48368
branch
bookmark
tag
user anatoly techtonik <techtonik@gmail.com>
description contributors.py: Sort contributors by last contributor's year (newest first)
files
contributors.py: Reorganize code for easy testing http://hg.code.sf.net:8000/p/roundup/code/#changeset-b83576aa3f740e44f43b19e943fe9c1ab48e8267 anatoly techtonik techtonik@gmail.com 2013-08-25T16:06:29+03:00 2013-08-25T16:06:29+03:00
changeset b83576aa3f74
branch
bookmark
tag
user anatoly techtonik <techtonik@gmail.com>
description contributors.py: Reorganize code for easy testing
files
contributors.py: Compress years list into single string http://hg.code.sf.net:8000/p/roundup/code/#changeset-dfef44485418398594aad74c1ed6443ee5872363 anatoly techtonik techtonik@gmail.com 2013-08-25T12:14:49+03:00 2013-08-25T12:14:49+03:00
changeset dfef44485418
branch
bookmark
tag
user anatoly techtonik <techtonik@gmail.com>
description contributors.py: Compress years list into single string
files
contributors.py: Add script to find out contributors http://hg.code.sf.net:8000/p/roundup/code/#changeset-e162fb7353df0cb9fb7c1ec964d96f9db8480595 anatoly techtonik techtonik@gmail.com 2013-08-25T11:35:10+03:00 2013-08-25T11:35:10+03:00
changeset e162fb7353df
branch
bookmark
tag
user anatoly techtonik <techtonik@gmail.com>
description contributors.py: Add script to find out contributors
files