Skip to content

Commit ab8eefa

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

File tree

4 files changed

+102
-92
lines changed

4 files changed

+102
-92
lines changed

AUTHORS.py

+56-47
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-
16-
17-
18-
19-
20-
15+
16+
17+
18+
19+
2120
# Junk.
22-
'mark@mark-VirtualBox.(none)': None,
23-
21+
"mark@mark-VirtualBox.(none)": None,
2422
# Aliases.
25-
26-
27-
28-
29-
30-
23+
24+
25+
26+
27+
3128
}
3229

3330
name_map = {
34-
'[email protected]': 'Casper van der Wel',
35-
'[email protected]': 'Dan Allan',
36-
'[email protected]': 'Manuel Goacolou',
37-
'[email protected]': 'Mark Reid',
38-
'[email protected]': 'Moritz Kassner',
39-
'[email protected]': 'Vidar Tonaas Fauske',
40-
'[email protected]': 'Xinran Xu',
31+
"[email protected]": "Casper van der Wel",
32+
"[email protected]": "Dan Allan",
33+
"[email protected]": "Manuel Goacolou",
34+
"[email protected]": "Mark Reid",
35+
"[email protected]": "Moritz Kassner",
36+
"[email protected]": "Vidar Tonaas Fauske",
37+
"[email protected]": "Xinran Xu",
4138
}
4239

4340
github_map = {
44-
'[email protected]': 'billyshambrook',
45-
'[email protected]': 'danielballan',
46-
'[email protected]': 'adavoudi',
47-
'[email protected]': 'mikeboers',
48-
'[email protected]': 'jlaine',
49-
'[email protected]': 'litterfeldt',
50-
'[email protected]': 'markreidvfx',
51-
'[email protected]': 'mkassner',
52-
'[email protected]': 'radek-senfeld',
53-
'[email protected]': 'brendanlong',
54-
'[email protected]': 'tacaswell',
55-
'[email protected]': 'rawler',
56-
'[email protected]': 'vidartf',
57-
'[email protected]': 'willpatera',
58-
'[email protected]': 'xxr3376',
59-
'[email protected]': 'laggykiller',
60-
'[email protected]': 'WyattBlue',
41+
"[email protected]": "billyshambrook",
42+
"[email protected]": "danielballan",
43+
"[email protected]": "adavoudi",
44+
"[email protected]": "mikeboers",
45+
"[email protected]": "jlaine",
46+
"[email protected]": "litterfeldt",
47+
"[email protected]": "markreidvfx",
48+
"[email protected]": "mkassner",
49+
"[email protected]": "radek-senfeld",
50+
"[email protected]": "brendanlong",
51+
"[email protected]": "tacaswell",
52+
"[email protected]": "rawler",
53+
"[email protected]": "vidartf",
54+
"[email protected]": "willpatera",
55+
"[email protected]": "xxr3376",
56+
"[email protected]": "laggykiller",
57+
"[email protected]": "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

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

88
* Jeremy Lainé <[email protected]>; `@jlaine <https://github.com/jlaine>`_
9+
* WyattBlue <[email protected]>; `@WyattBlue <https://github.com/WyattBlue>`_
910

10-
- WyattBlue <[email protected]>; `@WyattBlue <https://github.com/WyattBlue>`_
1111
- Mark Reid <[email protected]>; `@markreidvfx <https://github.com/markreidvfx>`_
1212

1313
* Vidar Tonaas Fauske <[email protected]>; `@vidartf <https://github.com/vidartf>`_
@@ -19,11 +19,11 @@ All contributors (by number of commits):
1919
* JoeUgly <[email protected]>
2020
* Justin Wong <[email protected]>
2121

22-
- Alba Mendez <[email protected]>
2322
- Mark Harfouche <[email protected]>
23+
- Alba Mendez <[email protected]>
24+
- Dave Johansen <[email protected]>
2425
- Xinran Xu <[email protected]>; `@xxr3376 <https://github.com/xxr3376>`_
2526
- Dan Allan <[email protected]>; `@danielballan <https://github.com/danielballan>`_
26-
- Dave Johansen <[email protected]>
2727
- Moonsik Park <[email protected]>
2828
- Santtu Keskinen <[email protected]>
2929
- Christoph Rackwitz <[email protected]>
@@ -35,6 +35,7 @@ All contributors (by number of commits):
3535
- Wel C. van der <[email protected]>
3636
- Will Patera <[email protected]>; `@willpatera <https://github.com/willpatera>`_
3737

38+
3839
3940
* Felix Vollmer <[email protected]>
4041
* Santiago Castro <[email protected]>
@@ -55,11 +56,11 @@ All contributors (by number of commits):
5556
5657
5758
* Joe Schiff <[email protected]>
58-
5959
* Artturin <[email protected]>
6060
* Ian Lee <[email protected]>
6161
* Ryan Huang <[email protected]>
6262
* Arthur Barros <[email protected]>
63+
* Carlos Ruiz <[email protected]>
6364
* Carlos Ruiz <[email protected]>
6465
* David Plowman <[email protected]>
6566
* Maxime Desroches <[email protected]>

CHANGELOG.rst

+41-40
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

-1
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)