Skip to content

Commit ab8eefa

Browse files
committed
Use proper roles in changelog
1 parent 516e07f commit ab8eefa

4 files changed

Lines changed: 102 additions & 92 deletions

File tree

AUTHORS.py

Lines changed: 56 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,68 @@
11
import math
22
import subprocess
33

4-
5-
print('''Contributors
4+
print(
5+
"""Contributors
66
============
77
88
All contributors (by number of commits):
9-
''')
9+
"""
10+
)
1011

1112

1213
email_map = {
13-
1414
# Maintainers.
15-
'git@mikeboers.com': 'github@mikeboers.com',
16-
'mboers@keypics.com': 'github@mikeboers.com',
17-
'mikeb@loftysky.com': 'github@mikeboers.com',
18-
'mikeb@markmedia.co': 'github@mikeboers.com',
19-
'westernx@mikeboers.com': 'github@mikeboers.com',
20-
15+
"git@mikeboers.com": "github@mikeboers.com",
16+
"mboers@keypics.com": "github@mikeboers.com",
17+
"mikeb@loftysky.com": "github@mikeboers.com",
18+
"mikeb@markmedia.co": "github@mikeboers.com",
19+
"westernx@mikeboers.com": "github@mikeboers.com",
2120
# Junk.
22-
'mark@mark-VirtualBox.(none)': None,
23-
21+
"mark@mark-VirtualBox.(none)": None,
2422
# Aliases.
25-
'a.davoudi@aut.ac.ir': 'davoudialireza@gmail.com',
26-
'tcaswell@bnl.gov': 'tcaswell@gmail.com',
27-
'xxr3376@gmail.com': 'xxr@megvii.com',
28-
'dallan@pha.jhu.edu': 'daniel.b.allan@gmail.com',
29-
'61652821+laggykiller@users.noreply.github.com': 'chaudominic2@gmail.com',
30-
23+
"a.davoudi@aut.ac.ir": "davoudialireza@gmail.com",
24+
"tcaswell@bnl.gov": "tcaswell@gmail.com",
25+
"xxr3376@gmail.com": "xxr@megvii.com",
26+
"dallan@pha.jhu.edu": "daniel.b.allan@gmail.com",
27+
"61652821+laggykiller@users.noreply.github.com": "chaudominic2@gmail.com",
3128
}
3229

3330
name_map = {
34-
'caspervdw@gmail.com': 'Casper van der Wel',
35-
'daniel.b.allan@gmail.com': 'Dan Allan',
36-
'mgoacolou@cls.fr': 'Manuel Goacolou',
37-
'mindmark@gmail.com': 'Mark Reid',
38-
'moritzkassner@gmail.com': 'Moritz Kassner',
39-
'vidartf@gmail.com': 'Vidar Tonaas Fauske',
40-
'xxr@megvii.com': 'Xinran Xu',
31+
"caspervdw@gmail.com": "Casper van der Wel",
32+
"daniel.b.allan@gmail.com": "Dan Allan",
33+
"mgoacolou@cls.fr": "Manuel Goacolou",
34+
"mindmark@gmail.com": "Mark Reid",
35+
"moritzkassner@gmail.com": "Moritz Kassner",
36+
"vidartf@gmail.com": "Vidar Tonaas Fauske",
37+
"xxr@megvii.com": "Xinran Xu",
4138
}
4239

4340
github_map = {
44-
'billy.shambrook@gmail.com': 'billyshambrook',
45-
'daniel.b.allan@gmail.com': 'danielballan',
46-
'davoudialireza@gmail.com': 'adavoudi',
47-
'github@mikeboers.com': 'mikeboers',
48-
'jeremy.laine@m4x.org': 'jlaine',
49-
'kalle.litterfeldt@gmail.com': 'litterfeldt',
50-
'mindmark@gmail.com': 'markreidvfx',
51-
'moritzkassner@gmail.com': 'mkassner',
52-
'rush@logic.cz': 'radek-senfeld',
53-
'self@brendanlong.com': 'brendanlong',
54-
'tcaswell@gmail.com': 'tacaswell',
55-
'ulrik.mikaelsson@magine.com': 'rawler',
56-
'vidartf@gmail.com': 'vidartf',
57-
'willpatera@gmail.com': 'willpatera',
58-
'xxr@megvii.com': 'xxr3376',
59-
'chaudominic2@gmail.com': 'laggykiller',
60-
'wyattblue@auto-editor.com': 'WyattBlue',
41+
"billy.shambrook@gmail.com": "billyshambrook",
42+
"daniel.b.allan@gmail.com": "danielballan",
43+
"davoudialireza@gmail.com": "adavoudi",
44+
"github@mikeboers.com": "mikeboers",
45+
"jeremy.laine@m4x.org": "jlaine",
46+
"kalle.litterfeldt@gmail.com": "litterfeldt",
47+
"mindmark@gmail.com": "markreidvfx",
48+
"moritzkassner@gmail.com": "mkassner",
49+
"rush@logic.cz": "radek-senfeld",
50+
"self@brendanlong.com": "brendanlong",
51+
"tcaswell@gmail.com": "tacaswell",
52+
"ulrik.mikaelsson@magine.com": "rawler",
53+
"vidartf@gmail.com": "vidartf",
54+
"willpatera@gmail.com": "willpatera",
55+
"xxr@megvii.com": "xxr3376",
56+
"chaudominic2@gmail.com": "laggykiller",
57+
"wyattblue@auto-editor.com": "WyattBlue",
6158
}
6259

6360

6461
email_count = {}
65-
for line in subprocess.check_output(['git', 'log', '--format=%aN,%aE']).decode().splitlines():
66-
name, email = line.strip().rsplit(',', 1)
62+
for line in (
63+
subprocess.check_output(["git", "log", "--format=%aN,%aE"]).decode().splitlines()
64+
):
65+
name, email = line.strip().rsplit(",", 1)
6766

6867
email = email_map.get(email, email)
6968
if not email:
@@ -89,7 +88,7 @@
8988

9089
names = name_map[email]
9190
if isinstance(names, set):
92-
name = ', '.join(sorted(names))
91+
name = ", ".join(sorted(names))
9392
else:
9493
name = names
9594

@@ -98,6 +97,16 @@
9897
# The '-' vs '*' is so that Sphinx treats them as different lists, and
9998
# introduces a gap bettween them.
10099
if github:
101-
print('%s %s <%s>; `@%s <https://github.com/%s>`_' % ('-*'[block_i % 2], name, email, github, github))
100+
print(
101+
"%s %s <%s>; `@%s <https://github.com/%s>`_"
102+
% ("-*"[block_i % 2], name, email, github, github)
103+
)
102104
else:
103-
print('%s %s <%s>' % ('-*'[block_i % 2], name, email, ))
105+
print(
106+
"%s %s <%s>"
107+
% (
108+
"-*"[block_i % 2],
109+
name,
110+
email,
111+
)
112+
)

AUTHORS.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ All contributors (by number of commits):
66
- Mike Boers <github@mikeboers.com>; `@mikeboers <https://github.com/mikeboers>`_
77

88
* Jeremy Lainé <jeremy.laine@m4x.org>; `@jlaine <https://github.com/jlaine>`_
9+
* WyattBlue <wyattblue@auto-editor.com>; `@WyattBlue <https://github.com/WyattBlue>`_
910

10-
- WyattBlue <wyattblue@auto-editor.com>; `@WyattBlue <https://github.com/WyattBlue>`_
1111
- Mark Reid <mindmark@gmail.com>; `@markreidvfx <https://github.com/markreidvfx>`_
1212

1313
* Vidar Tonaas Fauske <vidartf@gmail.com>; `@vidartf <https://github.com/vidartf>`_
@@ -19,11 +19,11 @@ All contributors (by number of commits):
1919
* JoeUgly <41972063+JoeUgly@users.noreply.github.com>
2020
* Justin Wong <46082645+uvjustin@users.noreply.github.com>
2121

22-
- Alba Mendez <me@alba.sh>
2322
- Mark Harfouche <mark.harfouche@gmail.com>
23+
- Alba Mendez <me@alba.sh>
24+
- Dave Johansen <davejohansen@gmail.com>
2425
- Xinran Xu <xxr@megvii.com>; `@xxr3376 <https://github.com/xxr3376>`_
2526
- Dan Allan <daniel.b.allan@gmail.com>; `@danielballan <https://github.com/danielballan>`_
26-
- Dave Johansen <davejohansen@gmail.com>
2727
- Moonsik Park <moonsik.park@estsoft.com>
2828
- Santtu Keskinen <santtu.keskinen@gmail.com>
2929
- Christoph Rackwitz <christoph.rackwitz@gmail.com>
@@ -35,6 +35,7 @@ All contributors (by number of commits):
3535
- Wel C. van der <wel@Physics.LeidenUniv.nl>
3636
- Will Patera <willpatera@gmail.com>; `@willpatera <https://github.com/willpatera>`_
3737

38+
* Dexer <73297572+DexerBR@users.noreply.github.com>
3839
* rutsh <Eugene.Krokhalev@gmail.com>
3940
* Felix Vollmer <FelixVollmer@gmail.com>
4041
* Santiago Castro <bryant1410@gmail.com>
@@ -55,11 +56,11 @@ All contributors (by number of commits):
5556
* zzjjbb <31069326+zzjjbb@users.noreply.github.com>
5657
* Hanz <40712686+HanzCEO@users.noreply.github.com>
5758
* Joe Schiff <41972063+JoeSchiff@users.noreply.github.com>
58-
* Dexer <73297572+DexerBR@users.noreply.github.com>
5959
* Artturin <Artturin@artturin.com>
6060
* Ian Lee <IanLee1521@gmail.com>
6161
* Ryan Huang <NPN@users.noreply.github.com>
6262
* Arthur Barros <arthbarros@gmail.com>
63+
* Carlos Ruiz <carlos.r.domin@gmail.com>
6364
* Carlos Ruiz <carlos.ruiz.dominguez@west.cmu.edu>
6465
* David Plowman <david.plowman@raspberrypi.com>
6566
* Maxime Desroches <desroches.maxime@gmail.com>

CHANGELOG.rst

Lines changed: 41 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,17 @@ v13.1.0
2121

2222
Features:
2323

24-
- Allow passing Python objects around using `Frame.opaque` and `Packet.opaque`.
25-
- Allow extradata to be set by encoders by @daveisfera in (:issue:`1526`).
24+
- Allow passing Python objects around using `Frame.opaque` and `Packet.opaque` by :gh-user:`CarlosRDomin` and :gh-user:`WyattBlue` in (:pr:`1533`).
25+
- Allow extradata to be set by encoders by :gh-user:`daveisfera` in (:pr:`1526`).
26+
- Add getting ffmpeg version info string by :gh-user:`hmaarrfk` in (:pr:`1564`).
2627

2728
Fixes:
2829

29-
- Remove the `deprecation` module in anticipation of `PEP 702 <https://peps.python.org/pep-0702/>`_
30+
- Remove the `deprecation` module in anticipation of `PEP 702 <https://peps.python.org/pep-0702/>`_.
3031
- Add type stubs to previously unannotated API sections.
3132
- Improve type stubs for both `mypy` and `mypy --strict`.
3233
- Permit only setting `time_base` with a Fraction, as mypy is unable to respect different types in getters vs setters.
33-
- Declare `write_packet` function as const by @hmaarrfk in (:issue:`1517`).
34+
- Declare `write_packet` function as const by :gh-user:`hmaarrfk` in (:pr:`1517`).
3435

3536
v13.0.0
3637
-------
@@ -62,20 +63,20 @@ v12.3.0
6263

6364
Features:
6465

65-
- Support libav's `av_log_set_level` by @materight in (:issue:`1448`).
66-
- Add Graph.link_nodes by @WyattBlue in (:issue:`1449`).
67-
- Add default codec properties by @WyattBlue in (:issue:`1450`).
68-
- Remove the xvid and ass packages in ffmpeg binaries because they were unused by @WyattBlue in (:issue:`1462`).
69-
- Add supported_codecs property to OutputContainer by @WyattBlue in (:issue:`1465`).
70-
- Add text and dialogue property to AssSubtitle, remove TextSubtitle by @WyattBlue in (:issue:`1456`).
66+
- Support libav's `av_log_set_level` by :gh-user:`materight` in (:pr:`1448`).
67+
- Add Graph.link_nodes by :gh-user:`WyattBlue` in (:pr:`1449`).
68+
- Add default codec properties by :gh-user:`WyattBlue` in (:pr:`1450`).
69+
- Remove the xvid and ass packages in ffmpeg binaries because they were unused by :gh-user:`WyattBlue` in (:pr:`1462`).
70+
- Add supported_codecs property to OutputContainer by :gh-user:`WyattBlue` in (:pr:`1465`).
71+
- Add text and dialogue property to AssSubtitle, remove TextSubtitle by :gh-user:`WyattBlue` in (:pr:`1456`).
7172

7273
Fixes:
7374

74-
- Include libav headers in final distribution by @materight in (:issue:`1455`).
75-
- Fix segfault when calling subtitle_stream.decode() by @WyattBlue in (:issue:`1460`).
76-
- flushing subtitle decoder requires a new uninitialized packet by @moonsikpark in (:issue:`1461`).
77-
- Set default color range for VideoReformatter.format() by @elxy in (:issue:`1458`).
78-
- Resampler: format, layout accepts `str` `int` too by @WyattBlue in (:issue:`1446`).
75+
- Include libav headers in final distribution by :gh-user:`materight` in (:pr:`1455`).
76+
- Fix segfault when calling subtitle_stream.decode() by :gh-user:`WyattBlue` in (:pr:`1460`).
77+
- flushing subtitle decoder requires a new uninitialized packet by :gh-user:`moonsikpark` in (:pr:`1461`).
78+
- Set default color range for VideoReformatter.format() by :gh-user:`elxy` in (:pr:`1458`).
79+
- Resampler: format, layout accepts `str` `int` too by :gh-user:`WyattBlue` in (:pr:`1446`).
7980

8081
v12.2.0
8182
-------
@@ -98,19 +99,19 @@ Features:
9899

99100
- Build binary wheels with webp support.
100101
- Allow disabling logs, disable logs by default.
101-
- Add bitstream filters by @skeskinen in (:issue:`1375`) (:issue:`1379`).
102-
- Expose CodecContext flush_buffers by @skeskinen in (:issue:`1382`).
102+
- Add bitstream filters by :gh-user:`skeskinen` in (:pr:`1379` :issue:`1375`).
103+
- Expose CodecContext flush_buffers by :gh-user:`skeskinen` in (:pr:`1382`).
103104

104105
Fixes:
105106

106107
- Fix type stubs, add missing type stubs.
107-
- Add S12M_TIMECODE by @WyattBlue in (:issue:`1381`).
108-
- Subtitle.text now returns bytes by @WyattBlue in (:issue:`1398`).
109-
- Allow packet.duration to be writable by @WyattBlue in (:issue:`1399`).
110-
- Remove deprecated `VideoStream.frame_rate` by @WyattBlue in (:issue:`1351`).
111-
- Build with Arm for PyPy now by @WyattBlue in (:issue:`1395`).
112-
- Fix #1378 by @WyattBlue in (:issue:`1400`).
113-
- setup.py: use PKG_CONFIG env var to get the pkg-config to use by @Artturin in (:issue:`1387`).
108+
- Add S12M_TIMECODE by :gh-user:`WyattBlue` in (:pr:`1381`).
109+
- Subtitle.text now returns bytes by :gh-user:`WyattBlue` in (:pr:`1398`).
110+
- Allow packet.duration to be writable by :gh-user:`WyattBlue` in (:pr:`1399`).
111+
- Remove deprecated `VideoStream.frame_rate` by :gh-user:`WyattBlue` in (:pr:`1351`).
112+
- Build with Arm for PyPy now by :gh-user:`WyattBlue` in (:pr:`1395`).
113+
- Fix #1378 by :gh-user:`WyattBlue` in (:pr:`1400`).
114+
- setup.py: use PKG_CONFIG env var to get the pkg-config to use by :gh-user:`Artturin` in (:pr:`1387`).
114115

115116
v12.0.0
116117
-------
@@ -120,28 +121,28 @@ Major:
120121
- Add type hints.
121122
- Update FFmpeg to 6.1.1 for the binary wheels.
122123
- Update libraries for the binary wheels (notably dav1d to 1.4.1).
123-
- Deprecate VideoCodecContext.gop_size for decoders by @JoeSchiff in (:issue:`1256`).
124-
- Deprecate frame.index by @JoeSchiff in (:issue:`1218`).
124+
- Deprecate VideoCodecContext.gop_size for decoders by :gh-user:`JoeSchiff` in (:pr:`1256`).
125+
- Deprecate frame.index by :gh-user:`JoeSchiff` in (:pr:`1218`).
125126

126127
Features:
127128

128-
- Allow using pathlib.Path for av.open by @WyattBlue in (:issue:`1231`).
129-
- Add `max_b_frames` property to CodecContext by @davidplowman in (:issue:`1119`).
130-
- Add `encode_lazy` method to CodecContext by @rawler in (:issue:`1092`).
131-
- Add `color_range` to CodecContext/Frame by @johanjeppsson in (:issue:`686`).
132-
- Set `time_base` for AudioResampler by @daveisfera in (:issue:`1209`).
133-
- Add support for ffmpeg's AVCodecContext::delay by @JoeSchiff in (:issue:`1279`).
134-
- Add `color_primaries`, `color_trc`, `colorspace` to VideoStream by @WyattBlue in (:issue:`1304`).
135-
- Add `bits_per_coded_sample` to VideoCodecContext by @rvanlaar in (:issue:`1203`).
136-
- AssSubtitle.ass now returns as bytes by @WyattBlue in (:issue:`1333`).
137-
- Expose DISPLAYMATRIX side data by @hyenal in (:issue:`1249`).
129+
- Allow using pathlib.Path for av.open by :gh-user:`WyattBlue` in (:pr:`1231`).
130+
- Add `max_b_frames` property to CodecContext by :gh-user:`davidplowman` in (:pr:`1119`).
131+
- Add `encode_lazy` method to CodecContext by :gh-user:`rawler` in (:pr:`1092`).
132+
- Add `color_range` to CodecContext/Frame by :gh-user:`johanjeppsson` in (:pr:`686`).
133+
- Set `time_base` for AudioResampler by :gh-user:`daveisfera` in (:issue:`1209`).
134+
- Add support for ffmpeg's AVCodecContext::delay by :gh-user:`JoeSchiff` in (:issue:`1279`).
135+
- Add `color_primaries`, `color_trc`, `colorspace` to VideoStream by :gh-user:`WyattBlue` in (:pr:`1304`).
136+
- Add `bits_per_coded_sample` to VideoCodecContext by :gh-user:`rvanlaar` in (:pr:`1203`).
137+
- AssSubtitle.ass now returns as bytes by :gh-user:`WyattBlue` in (:pr:`1333`).
138+
- Expose DISPLAYMATRIX side data by :gh-user:`hyenal` in (:pr:`1249`).
138139

139140
Fixes:
140141

141-
- Convert deprecated Cython extension class properties to decorator syntax by @JoeSchiff
142-
- Check None packet when setting time_base after decode by @philipnbbc in (:issue:`1281`).
143-
- Remove deprecated `Buffer.to_bytes` by @WyattBlue in (:issue:`1286`).
144-
- Remove deprecated `Packet.decode_one` by @WyattBlue in (:issue:`1301`).
142+
- Convert deprecated Cython extension class properties to decorator syntax by :gh-user:`JoeSchiff`.
143+
- Check None packet when setting time_base after decode by :gh-user:`philipnbbc` in (:pr:`1281`).
144+
- Remove deprecated `Buffer.to_bytes` by :gh-user:`WyattBlue` in (:pr:`1286`).
145+
- Remove deprecated `Packet.decode_one` by :gh-user:`WyattBlue` in (:pr:`1301`).
145146

146147
v11.0.0
147148
-------

docs/api/codec.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ Attributes
7979
.. autoattribute:: CodecContext.profile
8080

8181
.. autoattribute:: CodecContext.time_base
82-
.. autoattribute:: CodecContext.ticks_per_frame
8382

8483
.. autoattribute:: CodecContext.bit_rate
8584
.. autoattribute:: CodecContext.bit_rate_tolerance

0 commit comments

Comments
 (0)