nasdaq-protocols 1.2.4__tar.gz → 2.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- nasdaq_protocols-2.0.0/.github/scripts/prepare_release.py +75 -0
- nasdaq_protocols-2.0.0/.github/workflows/codeql.yml +31 -0
- nasdaq_protocols-2.0.0/.github/workflows/wf-changelog-check.yml +27 -0
- nasdaq_protocols-2.0.0/.github/workflows/wf-dependabot-changelog.yml +74 -0
- nasdaq_protocols-2.0.0/.github/workflows/wf-pr-cov-comment.yml +53 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/.github/workflows/wf-push.yml +58 -61
- nasdaq_protocols-2.0.0/.github/workflows/wf-release.yml +91 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/.gitignore +1 -0
- nasdaq_protocols-2.0.0/CHANGELOG.md +90 -0
- nasdaq_protocols-2.0.0/CONTRIBUTING.md +80 -0
- nasdaq_protocols-1.2.4/docs/LICENSE.rst → nasdaq_protocols-2.0.0/LICENSE +0 -1
- nasdaq_protocols-2.0.0/PKG-INFO +125 -0
- nasdaq_protocols-2.0.0/README.md +103 -0
- nasdaq_protocols-2.0.0/docs/LICENSE.md +21 -0
- nasdaq_protocols-2.0.0/docs/api_reference.md +13 -0
- nasdaq_protocols-1.2.4/docs/api_reference_common.rst → nasdaq_protocols-2.0.0/docs/api_reference_common.md +4 -3
- nasdaq_protocols-2.0.0/docs/api_reference_fix.md +53 -0
- nasdaq_protocols-1.2.4/docs/api_reference_itch.rst → nasdaq_protocols-2.0.0/docs/api_reference_itch.md +13 -10
- nasdaq_protocols-1.2.4/docs/api_reference_ouch.rst → nasdaq_protocols-2.0.0/docs/api_reference_ouch.md +13 -10
- nasdaq_protocols-1.2.4/docs/api_reference_soup.rst → nasdaq_protocols-2.0.0/docs/api_reference_soup.md +13 -10
- nasdaq_protocols-1.2.4/docs/api_reference_sqf.rst → nasdaq_protocols-2.0.0/docs/api_reference_sqf.md +12 -10
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/docs/conf.py +10 -2
- nasdaq_protocols-2.0.0/docs/developer_guide.md +54 -0
- nasdaq_protocols-1.2.4/README.md → nasdaq_protocols-2.0.0/docs/index.md +16 -3
- nasdaq_protocols-2.0.0/docs/install.md +40 -0
- nasdaq_protocols-2.0.0/docs/user_guide.md +15 -0
- nasdaq_protocols-2.0.0/docs/user_guide_create_new_project.md +79 -0
- nasdaq_protocols-2.0.0/docs/user_guide_fix.md +134 -0
- nasdaq_protocols-2.0.0/docs/user_guide_itch.md +116 -0
- nasdaq_protocols-2.0.0/docs/user_guide_ouch.md +110 -0
- nasdaq_protocols-2.0.0/docs/user_guide_soup.md +86 -0
- nasdaq_protocols-2.0.0/docs/user_guide_sqf.md +130 -0
- nasdaq_protocols-2.0.0/pyproject.toml +119 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols/common/__init__.py +1 -0
- nasdaq_protocols-2.0.0/src/nasdaq_protocols/common/_loop.py +16 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols/common/message/structures.py +2 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols/common/session.py +9 -4
- nasdaq_protocols-2.0.0/src/nasdaq_protocols/fix/_reader.py +51 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols/fix/core.py +32 -8
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols/fix/parser/templates/app.mustache +1 -0
- nasdaq_protocols-2.0.0/src/nasdaq_protocols/fix/session.py +251 -0
- nasdaq_protocols-2.0.0/src/nasdaq_protocols/soup/_reader.py +31 -0
- nasdaq_protocols-2.0.0/src/nasdaq_protocols.egg-info/PKG-INFO +125 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols.egg-info/SOURCES.txt +30 -22
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols.egg-info/requires.txt +5 -0
- nasdaq_protocols-2.0.0/src/nasdaq_protocols.egg-info/scm_file_list.json +148 -0
- nasdaq_protocols-2.0.0/src/nasdaq_protocols.egg-info/scm_version.json +8 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/tests/fix_messages.py +109 -5
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/tests/test_common_message_structures.py +18 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/tests/test_fix_core.py +36 -3
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/tests/test_fix_reader.py +3 -1
- nasdaq_protocols-2.0.0/tests/test_fix_session.py +631 -0
- nasdaq_protocols-2.0.0/uv.lock +1369 -0
- nasdaq_protocols-1.2.4/.coveragerc +0 -10
- nasdaq_protocols-1.2.4/.github/workflows/wf-pr-cov-comment.yml +0 -37
- nasdaq_protocols-1.2.4/MANIFEST.in +0 -4
- nasdaq_protocols-1.2.4/PKG-INFO +0 -33
- nasdaq_protocols-1.2.4/docs/api_reference.rst +0 -13
- nasdaq_protocols-1.2.4/docs/api_reference_fix.rst +0 -30
- nasdaq_protocols-1.2.4/docs/developer_guide.rst +0 -39
- nasdaq_protocols-1.2.4/docs/index.rst +0 -39
- nasdaq_protocols-1.2.4/docs/install.rst +0 -10
- nasdaq_protocols-1.2.4/docs/user_guide.rst +0 -15
- nasdaq_protocols-1.2.4/docs/user_guide_create_new_project.rst +0 -82
- nasdaq_protocols-1.2.4/docs/user_guide_itch.rst +0 -125
- nasdaq_protocols-1.2.4/docs/user_guide_ouch.rst +0 -121
- nasdaq_protocols-1.2.4/docs/user_guide_soup.rst +0 -91
- nasdaq_protocols-1.2.4/docs/user_guide_sqf.rst +0 -141
- nasdaq_protocols-1.2.4/pyproject.toml +0 -43
- nasdaq_protocols-1.2.4/pytest.ini +0 -8
- nasdaq_protocols-1.2.4/requirements.txt +0 -8
- nasdaq_protocols-1.2.4/src/nasdaq_protocols/fix/_reader.py +0 -38
- nasdaq_protocols-1.2.4/src/nasdaq_protocols/fix/session.py +0 -122
- nasdaq_protocols-1.2.4/src/nasdaq_protocols/soup/_reader.py +0 -25
- nasdaq_protocols-1.2.4/src/nasdaq_protocols.egg-info/PKG-INFO +0 -33
- nasdaq_protocols-1.2.4/tests/test_fix_session.py +0 -212
- nasdaq_protocols-1.2.4/tox.ini +0 -72
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/.pylintrc +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/docs/Makefile +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/docs/make.bat +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/setup.cfg +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols/__init__.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols/asn1_app/__init__.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols/asn1_app/codegen.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols/asn1_app/core.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols/asn1_app/soup_session.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols/asn1_app/templates/__init__.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols/asn1_app/templates/ans1_soup_app.mustache +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols/asn1_app/templates/init.mustache +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols/common/message/__init__.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols/common/message/codegen.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols/common/message/parser.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols/common/message/templates/__init__.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols/common/message/templates/enum.mustache +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols/common/message/templates/init.mustache +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols/common/message/templates/message_soup_app.mustache +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols/common/message/templates/record.mustache +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols/common/message/types.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols/common/message_queue.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols/common/sync_executor.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols/common/types.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols/common/utils.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols/fix/__init__.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols/fix/codegen.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols/fix/parser/__init__.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols/fix/parser/definitions.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols/fix/parser/generator.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols/fix/parser/parser.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols/fix/parser/templates/__init__.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols/fix/parser/templates/bodies.mustache +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols/fix/parser/templates/fields.mustache +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols/fix/parser/templates/groups.mustache +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols/fix/parser/templates/init.mustache +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols/fix/parser/templates/messages.mustache +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols/fix/parser/version_types.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols/fix/types.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols/itch/__init__.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols/itch/codegen.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols/itch/core.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols/itch/session.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols/ouch/__init__.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols/ouch/codegen.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols/ouch/core.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols/ouch/session.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols/soup/__init__.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols/soup/core.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols/soup/session.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols/soup/soup_app.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols/soup/tools_soup_tail.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols/soup/tools_soupapp_tail.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols/sqf/__init__.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols/sqf/codegen.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols/sqf/core.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols/sqf/session.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols/tools/__init__.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols/tools/new_project.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols/tools/templates/__init__.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols/tools/templates/soup_app_xml.mustache +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols/tools/templates/toml.mustache +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols/tools/templates/tox.mustache +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols.egg-info/dependency_links.txt +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols.egg-info/entry_points.txt +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/src/nasdaq_protocols.egg-info/top_level.txt +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/tests/__init__.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/tests/conftest.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/tests/mocks.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/tests/reader_app_tests.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/tests/soup_app_codegen_tests.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/tests/soup_client_app_tests.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/tests/sqf_messages.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/tests/test_asn1app_codegen.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/tests/test_asn1app_core.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/tests/test_common_asyncsession.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/tests/test_common_heartbeatmonitor.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/tests/test_common_message_parser.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/tests/test_common_message_types.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/tests/test_common_messagequeue.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/tests/test_common_utils.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/tests/test_fix_codegen.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/tests/test_fix_parser.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/tests/test_fix_types.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/tests/test_itch_codegen.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/tests/test_itch_core.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/tests/test_itch_session.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/tests/test_ouch_codegen.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/tests/test_ouch_core.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/tests/test_ouch_session.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/tests/test_soup_core.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/tests/test_soup_reader.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/tests/test_soup_session.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/tests/test_soup_tools_soupapp_tail.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/tests/test_soup_tools_tail.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/tests/test_sqf_codegen.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/tests/test_sqf_core.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/tests/test_sync_executor.py +0 -0
- {nasdaq_protocols-1.2.4 → nasdaq_protocols-2.0.0}/tests/testdata.py +0 -0
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""Roll the CHANGELOG.md [Unreleased] section over into a new tagged version section.
|
|
3
|
+
|
|
4
|
+
Usage: prepare_release.py <version>
|
|
5
|
+
|
|
6
|
+
Expects CHANGELOG.md to contain a "## [Unreleased]" heading followed directly
|
|
7
|
+
by a flat bullet list (no filler prose), and ends with a block of
|
|
8
|
+
"[label]: url" reference links including a "[Unreleased]: .../compare/..." line.
|
|
9
|
+
"""
|
|
10
|
+
import re
|
|
11
|
+
import sys
|
|
12
|
+
from datetime import timezone, datetime
|
|
13
|
+
|
|
14
|
+
REPO = "Nasdaq/nasdaq-protocols"
|
|
15
|
+
CHANGELOG = "CHANGELOG.md"
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
def main() -> None:
|
|
19
|
+
if len(sys.argv) != 2:
|
|
20
|
+
sys.exit("usage: prepare_release.py <version>")
|
|
21
|
+
version = sys.argv[1]
|
|
22
|
+
|
|
23
|
+
with open(CHANGELOG, encoding="utf-8") as fh:
|
|
24
|
+
lines = fh.read().splitlines()
|
|
25
|
+
|
|
26
|
+
try:
|
|
27
|
+
unreleased_idx = next(i for i, l in enumerate(lines) if l.strip() == "## [Unreleased]")
|
|
28
|
+
except StopIteration:
|
|
29
|
+
sys.exit("Could not find '## [Unreleased]' heading in CHANGELOG.md")
|
|
30
|
+
|
|
31
|
+
next_heading_idx = next(
|
|
32
|
+
(i for i in range(unreleased_idx + 1, len(lines)) if lines[i].startswith("## [")),
|
|
33
|
+
len(lines),
|
|
34
|
+
)
|
|
35
|
+
|
|
36
|
+
section = lines[unreleased_idx + 1:next_heading_idx]
|
|
37
|
+
# Keep bullet lines and their wrapped continuation lines; drop only blank padding.
|
|
38
|
+
bullets = [l for l in section if l.strip() != ""]
|
|
39
|
+
if not bullets:
|
|
40
|
+
sys.exit("No entries found under [Unreleased]; nothing to release.")
|
|
41
|
+
|
|
42
|
+
today = datetime.now(timezone.utc).date().isoformat()
|
|
43
|
+
new_block = (
|
|
44
|
+
["## [Unreleased]", "", "No changes yet.", "", f"## [{version}] - {today}", ""]
|
|
45
|
+
+ bullets
|
|
46
|
+
+ [""]
|
|
47
|
+
)
|
|
48
|
+
lines[unreleased_idx:next_heading_idx] = new_block
|
|
49
|
+
|
|
50
|
+
text = "\n".join(lines) + "\n"
|
|
51
|
+
|
|
52
|
+
# Update the trailing reference-link block.
|
|
53
|
+
text = re.sub(
|
|
54
|
+
r"^\[Unreleased\]: .*/compare/.*\.\.\.main$",
|
|
55
|
+
f"[Unreleased]: https://github.com/{REPO}/compare/{version}...main",
|
|
56
|
+
text,
|
|
57
|
+
flags=re.MULTILINE,
|
|
58
|
+
)
|
|
59
|
+
new_link = f"[{version}]: https://github.com/{REPO}/releases/tag/{version}"
|
|
60
|
+
text = re.sub(
|
|
61
|
+
r"^(\[Unreleased\]: .*)$",
|
|
62
|
+
r"\1\n" + new_link,
|
|
63
|
+
text,
|
|
64
|
+
count=1,
|
|
65
|
+
flags=re.MULTILINE,
|
|
66
|
+
)
|
|
67
|
+
|
|
68
|
+
with open(CHANGELOG, "w", encoding="utf-8") as fh:
|
|
69
|
+
fh.write(text)
|
|
70
|
+
|
|
71
|
+
print(f"CHANGELOG.md rolled over to {version} ({today}).")
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
if __name__ == "__main__":
|
|
75
|
+
main()
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
name: "CodeQL"
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [ "main" ]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [ "main" ]
|
|
8
|
+
schedule:
|
|
9
|
+
- cron: '30 3 * * 1' # weekly, Monday 03:30 UTC
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
analyze:
|
|
13
|
+
name: Analyze (python)
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
permissions:
|
|
16
|
+
actions: read
|
|
17
|
+
contents: read
|
|
18
|
+
security-events: write
|
|
19
|
+
|
|
20
|
+
steps:
|
|
21
|
+
- uses: actions/checkout@v4
|
|
22
|
+
|
|
23
|
+
- name: Initialize CodeQL
|
|
24
|
+
uses: github/codeql-action/init@v3
|
|
25
|
+
with:
|
|
26
|
+
languages: python
|
|
27
|
+
|
|
28
|
+
- name: Perform CodeQL Analysis
|
|
29
|
+
uses: github/codeql-action/analyze@v3
|
|
30
|
+
with:
|
|
31
|
+
category: "/language:python"
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
name: Changelog Check
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
branches: [main]
|
|
6
|
+
types: [opened, synchronize, reopened, labeled, unlabeled]
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
changelog:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
if: ${{ !contains(github.event.pull_request.labels.*.name, 'skip-changelog') }}
|
|
12
|
+
steps:
|
|
13
|
+
- uses: actions/checkout@v4
|
|
14
|
+
with:
|
|
15
|
+
fetch-depth: 0
|
|
16
|
+
|
|
17
|
+
- name: Check CHANGELOG.md updated
|
|
18
|
+
env:
|
|
19
|
+
BASE_REF: ${{ github.event.pull_request.base.ref }}
|
|
20
|
+
run: |
|
|
21
|
+
git fetch origin "$BASE_REF" --depth=1
|
|
22
|
+
if git diff --name-only "origin/$BASE_REF"...HEAD | grep -qx 'CHANGELOG.md'; then
|
|
23
|
+
echo "CHANGELOG.md was updated. ✅"
|
|
24
|
+
else
|
|
25
|
+
echo "::error::CHANGELOG.md was not updated. Add an entry under [Unreleased], or apply the 'skip-changelog' label if this change doesn't need one (e.g. CI-only, typo fixes)."
|
|
26
|
+
exit 1
|
|
27
|
+
fi
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
name: Dependabot changelog entry
|
|
2
|
+
|
|
3
|
+
# Runs with normal (write) permissions even for bot-authored PRs, unlike the
|
|
4
|
+
# `pull_request` event which gives Dependabot-triggered runs a read-only token.
|
|
5
|
+
# This job only reads the PR title (trusted metadata) and never checks out or
|
|
6
|
+
# executes the PR's code, so it's safe to use pull_request_target here.
|
|
7
|
+
on:
|
|
8
|
+
pull_request_target:
|
|
9
|
+
types: [opened, reopened]
|
|
10
|
+
|
|
11
|
+
permissions:
|
|
12
|
+
contents: write
|
|
13
|
+
|
|
14
|
+
jobs:
|
|
15
|
+
add-changelog-entry:
|
|
16
|
+
if: github.actor == 'dependabot[bot]'
|
|
17
|
+
runs-on: ubuntu-latest
|
|
18
|
+
steps:
|
|
19
|
+
- name: Checkout PR branch
|
|
20
|
+
uses: actions/checkout@v4
|
|
21
|
+
with:
|
|
22
|
+
ref: ${{ github.event.pull_request.head.ref }}
|
|
23
|
+
fetch-depth: 0
|
|
24
|
+
|
|
25
|
+
- name: Add CHANGELOG entry from PR title
|
|
26
|
+
env:
|
|
27
|
+
PR_TITLE: ${{ github.event.pull_request.title }}
|
|
28
|
+
PR_NUMBER: ${{ github.event.pull_request.number }}
|
|
29
|
+
run: |
|
|
30
|
+
python3 - << 'EOF'
|
|
31
|
+
import os
|
|
32
|
+
import re
|
|
33
|
+
|
|
34
|
+
pr_title = os.environ["PR_TITLE"]
|
|
35
|
+
pr_number = os.environ["PR_NUMBER"]
|
|
36
|
+
marker = f"(#{pr_number})"
|
|
37
|
+
|
|
38
|
+
with open("CHANGELOG.md", encoding="utf-8") as f:
|
|
39
|
+
changelog = f.read()
|
|
40
|
+
|
|
41
|
+
if marker in changelog:
|
|
42
|
+
print("Entry already present, skipping.")
|
|
43
|
+
raise SystemExit(0)
|
|
44
|
+
|
|
45
|
+
m = re.match(r"^Bump (\S+) from (\S+) to (\S+)", pr_title)
|
|
46
|
+
if m:
|
|
47
|
+
dep, old, new = m.groups()
|
|
48
|
+
entry = f"- Chore: bump `{dep}` from {old} to {new} {marker}"
|
|
49
|
+
else:
|
|
50
|
+
entry = f"- Chore: {pr_title} {marker}"
|
|
51
|
+
|
|
52
|
+
anchor = "## [Unreleased]\n\nNo changes yet.\n"
|
|
53
|
+
if anchor in changelog:
|
|
54
|
+
changelog = changelog.replace(anchor, f"## [Unreleased]\n\n{entry}\n")
|
|
55
|
+
else:
|
|
56
|
+
changelog = changelog.replace(
|
|
57
|
+
"## [Unreleased]\n", f"## [Unreleased]\n\n{entry}\n", 1
|
|
58
|
+
)
|
|
59
|
+
|
|
60
|
+
with open("CHANGELOG.md", "w", encoding="utf-8") as f:
|
|
61
|
+
f.write(changelog)
|
|
62
|
+
EOF
|
|
63
|
+
|
|
64
|
+
- name: Commit and push
|
|
65
|
+
run: |
|
|
66
|
+
if git diff --quiet; then
|
|
67
|
+
echo "No changes to commit."
|
|
68
|
+
exit 0
|
|
69
|
+
fi
|
|
70
|
+
git config user.name "github-actions[bot]"
|
|
71
|
+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
|
72
|
+
git add CHANGELOG.md
|
|
73
|
+
git commit -m "docs: add CHANGELOG entry for #${{ github.event.pull_request.number }}"
|
|
74
|
+
git push origin HEAD:${{ github.event.pull_request.head.ref }}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
name: PR coverage / report
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
branches:
|
|
6
|
+
- '*'
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
build:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
strategy:
|
|
12
|
+
fail-fast: false
|
|
13
|
+
matrix:
|
|
14
|
+
python-version: ["3.12"]
|
|
15
|
+
|
|
16
|
+
steps:
|
|
17
|
+
- uses: actions/checkout@v4
|
|
18
|
+
with:
|
|
19
|
+
fetch-depth: 0
|
|
20
|
+
|
|
21
|
+
- name: Install uv
|
|
22
|
+
uses: astral-sh/setup-uv@v6
|
|
23
|
+
with:
|
|
24
|
+
python-version: ${{ matrix.python-version }}
|
|
25
|
+
|
|
26
|
+
- name: Run test
|
|
27
|
+
run: |
|
|
28
|
+
uv run --group test pytest \
|
|
29
|
+
-vv \
|
|
30
|
+
--timeout=120 \
|
|
31
|
+
--junitxml=pytest.xml \
|
|
32
|
+
--cov-config=pyproject.toml \
|
|
33
|
+
--cov=src \
|
|
34
|
+
--cov-report html:cov_html \
|
|
35
|
+
--cov-report xml:cov.xml \
|
|
36
|
+
--cov-fail-under=97
|
|
37
|
+
|
|
38
|
+
- name: Upload coverage to Codecov
|
|
39
|
+
uses: codecov/codecov-action@v5
|
|
40
|
+
with:
|
|
41
|
+
token: ${{ secrets.CODECOV_TOKEN }}
|
|
42
|
+
files: ./cov.xml
|
|
43
|
+
fail_ci_if_error: false
|
|
44
|
+
|
|
45
|
+
- name: Pytest coverage comment
|
|
46
|
+
# Dependabot-authored PRs run with a read-only GITHUB_TOKEN, so posting
|
|
47
|
+
# a PR comment always fails with "Resource not accessible by integration".
|
|
48
|
+
# Coverage is still enforced above via --cov-fail-under; just skip the comment.
|
|
49
|
+
if: github.actor != 'dependabot[bot]'
|
|
50
|
+
uses: MishaKav/pytest-coverage-comment@main
|
|
51
|
+
with:
|
|
52
|
+
junitxml-path: ./pytest.xml
|
|
53
|
+
pytest-xml-coverage-path: ./cov.xml
|
|
@@ -11,30 +11,47 @@ jobs:
|
|
|
11
11
|
python-version: ["3.11", "3.12", "3.13"]
|
|
12
12
|
|
|
13
13
|
steps:
|
|
14
|
-
- uses: actions/checkout@
|
|
14
|
+
- uses: actions/checkout@v4
|
|
15
|
+
with:
|
|
16
|
+
fetch-depth: 0
|
|
15
17
|
|
|
16
|
-
- name:
|
|
17
|
-
uses:
|
|
18
|
+
- name: Install uv
|
|
19
|
+
uses: astral-sh/setup-uv@v6
|
|
18
20
|
with:
|
|
19
21
|
python-version: ${{ matrix.python-version }}
|
|
20
22
|
|
|
21
|
-
- name: Upgrade pip
|
|
22
|
-
run: python -m pip install --upgrade pip
|
|
23
|
-
|
|
24
|
-
- name: Install Tox
|
|
25
|
-
run: pip install tox
|
|
26
|
-
|
|
27
23
|
- name: Run lint
|
|
28
|
-
run:
|
|
24
|
+
run: uv run --group lint pylint --fail-under=10.0 "--ignore-patterns=.*egg-info.*,.*test.*" src/*
|
|
29
25
|
|
|
30
26
|
- name: Run test
|
|
31
|
-
run:
|
|
27
|
+
run: |
|
|
28
|
+
uv run --group test pytest \
|
|
29
|
+
-vv \
|
|
30
|
+
--timeout=120 \
|
|
31
|
+
--junitxml=pytest.xml \
|
|
32
|
+
--cov-config=pyproject.toml \
|
|
33
|
+
--cov=src \
|
|
34
|
+
--cov-report html:cov_html \
|
|
35
|
+
--cov-report xml:cov.xml \
|
|
36
|
+
--cov-fail-under=97
|
|
37
|
+
|
|
38
|
+
- name: Upload coverage to Codecov
|
|
39
|
+
if: matrix.python-version == '3.12'
|
|
40
|
+
uses: codecov/codecov-action@v5
|
|
41
|
+
with:
|
|
42
|
+
token: ${{ secrets.CODECOV_TOKEN }}
|
|
43
|
+
files: ./cov.xml
|
|
44
|
+
fail_ci_if_error: false
|
|
32
45
|
|
|
33
46
|
- name: Run build
|
|
34
|
-
run:
|
|
47
|
+
run: uv build
|
|
35
48
|
|
|
36
49
|
- name: Build doc
|
|
37
|
-
run:
|
|
50
|
+
run: |
|
|
51
|
+
cd docs
|
|
52
|
+
uv run --group docs make html
|
|
53
|
+
env:
|
|
54
|
+
SPHINXBUILD: "python -m sphinx"
|
|
38
55
|
|
|
39
56
|
- name: Store the distribution packages
|
|
40
57
|
uses: actions/upload-artifact@v5
|
|
@@ -50,10 +67,6 @@ jobs:
|
|
|
50
67
|
needs:
|
|
51
68
|
- build
|
|
52
69
|
runs-on: ubuntu-latest
|
|
53
|
-
strategy:
|
|
54
|
-
fail-fast: false
|
|
55
|
-
matrix:
|
|
56
|
-
python-version: ["3.12"]
|
|
57
70
|
|
|
58
71
|
environment:
|
|
59
72
|
name: github-pages
|
|
@@ -64,21 +77,21 @@ jobs:
|
|
|
64
77
|
pages: write
|
|
65
78
|
|
|
66
79
|
steps:
|
|
67
|
-
- uses: actions/checkout@
|
|
68
|
-
|
|
69
|
-
- name: Set up Python ${{ matrix.python-version }}
|
|
70
|
-
uses: actions/setup-python@v3
|
|
80
|
+
- uses: actions/checkout@v4
|
|
71
81
|
with:
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
- name: Upgrade pip
|
|
75
|
-
run: python -m pip install --upgrade pip
|
|
82
|
+
fetch-depth: 0
|
|
76
83
|
|
|
77
|
-
- name: Install
|
|
78
|
-
|
|
84
|
+
- name: Install uv
|
|
85
|
+
uses: astral-sh/setup-uv@v6
|
|
86
|
+
with:
|
|
87
|
+
python-version: "3.12"
|
|
79
88
|
|
|
80
|
-
- name:
|
|
81
|
-
run:
|
|
89
|
+
- name: Build docs
|
|
90
|
+
run: |
|
|
91
|
+
cd docs
|
|
92
|
+
uv run --group docs make html
|
|
93
|
+
env:
|
|
94
|
+
SPHINXBUILD: "python -m sphinx"
|
|
82
95
|
|
|
83
96
|
- name: Deploy to GitHub Pages
|
|
84
97
|
uses: peaceiris/actions-gh-pages@v3
|
|
@@ -94,10 +107,6 @@ jobs:
|
|
|
94
107
|
needs:
|
|
95
108
|
- build
|
|
96
109
|
runs-on: ubuntu-latest
|
|
97
|
-
strategy:
|
|
98
|
-
fail-fast: false
|
|
99
|
-
matrix:
|
|
100
|
-
python-version: ["3.12"]
|
|
101
110
|
|
|
102
111
|
environment:
|
|
103
112
|
name: testpypi
|
|
@@ -107,21 +116,17 @@ jobs:
|
|
|
107
116
|
id-token: write
|
|
108
117
|
|
|
109
118
|
steps:
|
|
110
|
-
- uses: actions/checkout@
|
|
111
|
-
|
|
112
|
-
- name: Set up Python ${{ matrix.python-version }}
|
|
113
|
-
uses: actions/setup-python@v3
|
|
119
|
+
- uses: actions/checkout@v4
|
|
114
120
|
with:
|
|
115
|
-
|
|
121
|
+
fetch-depth: 0
|
|
116
122
|
|
|
117
|
-
- name:
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
run: pip install tox
|
|
123
|
+
- name: Install uv
|
|
124
|
+
uses: astral-sh/setup-uv@v6
|
|
125
|
+
with:
|
|
126
|
+
python-version: "3.12"
|
|
122
127
|
|
|
123
|
-
- name:
|
|
124
|
-
run:
|
|
128
|
+
- name: Build package
|
|
129
|
+
run: uv build
|
|
125
130
|
|
|
126
131
|
- name: Publish distribution 📦 to TestPyPI
|
|
127
132
|
uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -136,10 +141,6 @@ jobs:
|
|
|
136
141
|
needs:
|
|
137
142
|
- publish-to-testpypi # only publish to PyPI after TestPyPI publishing
|
|
138
143
|
runs-on: ubuntu-latest
|
|
139
|
-
strategy:
|
|
140
|
-
fail-fast: false
|
|
141
|
-
matrix:
|
|
142
|
-
python-version: ["3.12"]
|
|
143
144
|
|
|
144
145
|
environment:
|
|
145
146
|
name: pypi
|
|
@@ -149,21 +150,17 @@ jobs:
|
|
|
149
150
|
id-token: write
|
|
150
151
|
|
|
151
152
|
steps:
|
|
152
|
-
- uses: actions/checkout@
|
|
153
|
-
|
|
154
|
-
- name: Set up Python ${{ matrix.python-version }}
|
|
155
|
-
uses: actions/setup-python@v3
|
|
153
|
+
- uses: actions/checkout@v4
|
|
156
154
|
with:
|
|
157
|
-
|
|
155
|
+
fetch-depth: 0
|
|
158
156
|
|
|
159
|
-
- name:
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
run: pip install tox
|
|
157
|
+
- name: Install uv
|
|
158
|
+
uses: astral-sh/setup-uv@v6
|
|
159
|
+
with:
|
|
160
|
+
python-version: "3.12"
|
|
164
161
|
|
|
165
|
-
- name:
|
|
166
|
-
run:
|
|
162
|
+
- name: Build package
|
|
163
|
+
run: uv build
|
|
167
164
|
|
|
168
165
|
- name: Publish distribution 📦 to PyPI
|
|
169
166
|
uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
# Fully automated release: bump CHANGELOG.md's [Unreleased] section into a
|
|
4
|
+
# dated version entry on a short-lived branch, open a PR, merge it into
|
|
5
|
+
# main, then tag the resulting merge commit. The tag push triggers the
|
|
6
|
+
# existing build, TestPyPI, and PyPI publish jobs in wf-push.yml.
|
|
7
|
+
#
|
|
8
|
+
# Why a PR instead of a direct push to main: main has two independent
|
|
9
|
+
# protections -- (1) a "restrict who can push" allowlist, which blocks ANY
|
|
10
|
+
# direct `git push` to main outright (even for allowlisted apps/bypass
|
|
11
|
+
# actors -- this is NOT the same as the PR-review bypass setting), and
|
|
12
|
+
# (2) a required-PR-review rule, for which `github-actions[bot]` has been
|
|
13
|
+
# explicitly added as a bypass actor so this workflow can merge without a
|
|
14
|
+
# human approval. Only (2) can be bypassed programmatically; (1) requires
|
|
15
|
+
# going through the normal PR-merge path, which is why this workflow opens
|
|
16
|
+
# and merges a PR rather than pushing to main directly.
|
|
17
|
+
|
|
18
|
+
on:
|
|
19
|
+
workflow_dispatch:
|
|
20
|
+
inputs:
|
|
21
|
+
version:
|
|
22
|
+
description: "Version to release, e.g. 1.3.0 (no leading 'v')"
|
|
23
|
+
required: true
|
|
24
|
+
type: string
|
|
25
|
+
|
|
26
|
+
permissions:
|
|
27
|
+
contents: write
|
|
28
|
+
pull-requests: write
|
|
29
|
+
|
|
30
|
+
jobs:
|
|
31
|
+
release:
|
|
32
|
+
runs-on: ubuntu-latest
|
|
33
|
+
env:
|
|
34
|
+
GH_TOKEN: ${{ github.token }}
|
|
35
|
+
steps:
|
|
36
|
+
- uses: actions/checkout@v4
|
|
37
|
+
with:
|
|
38
|
+
ref: main
|
|
39
|
+
fetch-depth: 0
|
|
40
|
+
|
|
41
|
+
- name: Validate version format
|
|
42
|
+
run: |
|
|
43
|
+
echo "${{ inputs.version }}" | grep -Eq '^[0-9]+\.[0-9]+\.[0-9]+([ab][0-9]+)?$' \
|
|
44
|
+
|| { echo "::error::Version '${{ inputs.version }}' doesn't look like a valid semver (e.g. 1.3.0)"; exit 1; }
|
|
45
|
+
|
|
46
|
+
- name: Check tag doesn't already exist
|
|
47
|
+
run: |
|
|
48
|
+
if git rev-parse "refs/tags/${{ inputs.version }}" >/dev/null 2>&1; then
|
|
49
|
+
echo "::error::Tag ${{ inputs.version }} already exists."
|
|
50
|
+
exit 1
|
|
51
|
+
fi
|
|
52
|
+
|
|
53
|
+
- name: Roll CHANGELOG.md [Unreleased] into [${{ inputs.version }}]
|
|
54
|
+
run: python3 .github/scripts/prepare_release.py "${{ inputs.version }}"
|
|
55
|
+
|
|
56
|
+
- name: Commit and push release branch
|
|
57
|
+
id: branch
|
|
58
|
+
run: |
|
|
59
|
+
BRANCH="release/${{ inputs.version }}"
|
|
60
|
+
git config user.name "github-actions[bot]"
|
|
61
|
+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
|
62
|
+
git checkout -b "$BRANCH"
|
|
63
|
+
git add CHANGELOG.md
|
|
64
|
+
git commit -m "Release ${{ inputs.version }}: update CHANGELOG.md"
|
|
65
|
+
git push origin "$BRANCH"
|
|
66
|
+
echo "name=$BRANCH" >> "$GITHUB_OUTPUT"
|
|
67
|
+
|
|
68
|
+
- name: Open and merge release PR
|
|
69
|
+
id: pr
|
|
70
|
+
run: |
|
|
71
|
+
gh pr create \
|
|
72
|
+
--base main \
|
|
73
|
+
--head "${{ steps.branch.outputs.name }}" \
|
|
74
|
+
--title "Release ${{ inputs.version }}" \
|
|
75
|
+
--body "Automated CHANGELOG.md rollover for ${{ inputs.version }}." \
|
|
76
|
+
--label skip-changelog
|
|
77
|
+
gh pr merge "${{ steps.branch.outputs.name }}" --squash --delete-branch
|
|
78
|
+
echo "sha=$(git rev-parse origin/main 2>/dev/null || true)" >> "$GITHUB_OUTPUT"
|
|
79
|
+
|
|
80
|
+
- name: Create and push tag on the merge commit
|
|
81
|
+
run: |
|
|
82
|
+
git fetch origin main
|
|
83
|
+
git checkout main
|
|
84
|
+
git reset --hard origin/main
|
|
85
|
+
git tag "${{ inputs.version }}"
|
|
86
|
+
git push origin "${{ inputs.version }}"
|
|
87
|
+
|
|
88
|
+
- name: Summary
|
|
89
|
+
run: |
|
|
90
|
+
echo "Released ${{ inputs.version }}. Tag push will trigger build -> TestPyPI -> PyPI." \
|
|
91
|
+
>> "$GITHUB_STEP_SUMMARY"
|
|
@@ -152,6 +152,7 @@ dmypy.json
|
|
|
152
152
|
# Cython debug symbols
|
|
153
153
|
cython_debug/
|
|
154
154
|
|
|
155
|
+
|
|
155
156
|
# PyCharm
|
|
156
157
|
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
157
158
|
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project are documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this
|
|
6
|
+
project uses tagged releases published to [PyPI](https://pypi.org/project/nasdaq-protocols/).
|
|
7
|
+
|
|
8
|
+
## [Unreleased]
|
|
9
|
+
|
|
10
|
+
No changes yet.
|
|
11
|
+
|
|
12
|
+
## [2.0.0] - 2026-12-03
|
|
13
|
+
|
|
14
|
+
- Fix: FIX message definitions are now registered per application (`Message.AppDef`), so several
|
|
15
|
+
FIX applications (e.g. `fix_oe` and `fix_dc`) can be used in one process. `FixSession` decodes
|
|
16
|
+
with its own application's definitions (`app_name`, mandatory on `FixSession`).
|
|
17
|
+
**Breaking:** `app_name` is now mandatory when defining a FIX message, the flat `Message.Def` map is removed; use `Message.lookup(app_name, key)`.
|
|
18
|
+
- Chore: bump `certifi` from 2026.6.17 to 2026.10.19 (#86)
|
|
19
|
+
- Chore: bump `pylint` from 4.0.6 to 4.0.9 (#87)
|
|
20
|
+
- Chore: bump `urllib3` from 2.7.0 to 2.8.0 (#79)
|
|
21
|
+
- CI: added CodeQL security scanning, Codecov coverage reporting/badge, and
|
|
22
|
+
enabled Dependabot security updates.
|
|
23
|
+
|
|
24
|
+
## [1.3.0] - 2026-10-10
|
|
25
|
+
|
|
26
|
+
- FIX: session-level sequence gap detection and recovery on login (#73)
|
|
27
|
+
- Fix: `Record.as_collection` now prints nested `Record`s correctly (#72)
|
|
28
|
+
- Build: migrated the project's own build/test/lint/doc tooling from `tox` to
|
|
29
|
+
[`uv`](https://docs.astral.sh/uv/) (#69)
|
|
30
|
+
- Perf: optional `performance` extra installing `uvloop` for ~4-5x faster event loop
|
|
31
|
+
scheduling, activated via `nasdaq_protocols.common.use_fast_loop()` (#70)
|
|
32
|
+
- Docs: migrated `docs/*.rst` to Markdown (MyST), added root `LICENSE`, `CONTRIBUTING.md`,
|
|
33
|
+
this changelog, and rewrote `README.md` (addresses #46, #47)
|
|
34
|
+
|
|
35
|
+
## [1.2.4] - 2026-01-15
|
|
36
|
+
|
|
37
|
+
Released together with the `1.2.0`-`1.2.4` series below (iterative CI/build fixes landed
|
|
38
|
+
over a single week):
|
|
39
|
+
|
|
40
|
+
- Build: explicit build steps for build and doc jobs (#67, #68)
|
|
41
|
+
- CI: build documentation when pushing to `gh-pages` and `main` (#66)
|
|
42
|
+
- CI: publish to GitHub Pages only on push to `main` (#65)
|
|
43
|
+
- CI: add jobs to publish the package to PyPI and TestPyPI (#64)
|
|
44
|
+
- Feature: graceful shutdown for sessions (#63)
|
|
45
|
+
- Docs: fixed docstrings for OUCH and SQF decode methods (#62)
|
|
46
|
+
|
|
47
|
+
## [1.1.4] / [1.1.3] - 2025-09-19
|
|
48
|
+
|
|
49
|
+
- Feature: configurable length types for array fields (#61)
|
|
50
|
+
- Feature: `nasdaq-sqf-codegen` CLI for SQF code generation (#60)
|
|
51
|
+
|
|
52
|
+
## [1.1.2] - 2025-08-22
|
|
53
|
+
|
|
54
|
+
- Feature: generic `tail` command for all SOUP-based applications (#59)
|
|
55
|
+
|
|
56
|
+
## [1.1.1] - 2025-04-04
|
|
57
|
+
|
|
58
|
+
- Fix: pytest configuration fixes (#51)
|
|
59
|
+
|
|
60
|
+
## [1.1.0] - 2025-04-02
|
|
61
|
+
|
|
62
|
+
- Feature: ASN.1-over-SOUP application support, `asn1soup` codegen CLI (#48, #49)
|
|
63
|
+
|
|
64
|
+
## [1.0.1] - 2025-01-24
|
|
65
|
+
|
|
66
|
+
- Fix: `fix-datasegment.field` now returns the result in the correct units (#39)
|
|
67
|
+
- Fix: resolved issue #37
|
|
68
|
+
|
|
69
|
+
## [1.0.0] - 2025-01-22
|
|
70
|
+
|
|
71
|
+
First stable release. Includes SOUP, OUCH, ITCH, SQF and FIX session/message support, the
|
|
72
|
+
`nasdaq-protocols-create-new-project` scaffolding CLI, and Sphinx documentation published to
|
|
73
|
+
GitHub Pages.
|
|
74
|
+
|
|
75
|
+
## [0.0.1a1] - [0.0.1.a6] - 2024-09-03 to 2025-01-22
|
|
76
|
+
|
|
77
|
+
Initial alpha releases: SOUP transport layer, OUCH/ITCH/SQF protocol support, FIX parser and
|
|
78
|
+
session handling, documentation infrastructure, and CI setup.
|
|
79
|
+
|
|
80
|
+
[Unreleased]: https://github.com/Nasdaq/nasdaq-protocols/compare/2.0.0...main
|
|
81
|
+
[2.0.0]: https://github.com/Nasdaq/nasdaq-protocols/releases/tag/2.0.0
|
|
82
|
+
[1.3.0]: https://github.com/Nasdaq/nasdaq-protocols/releases/tag/1.3.0
|
|
83
|
+
[1.2.4]: https://github.com/Nasdaq/nasdaq-protocols/releases/tag/1.2.4
|
|
84
|
+
[1.1.4]: https://github.com/Nasdaq/nasdaq-protocols/releases/tag/1.1.4
|
|
85
|
+
[1.1.3]: https://github.com/Nasdaq/nasdaq-protocols/releases/tag/1.1.3
|
|
86
|
+
[1.1.2]: https://github.com/Nasdaq/nasdaq-protocols/releases/tag/1.1.2
|
|
87
|
+
[1.1.1]: https://github.com/Nasdaq/nasdaq-protocols/releases/tag/1.1.1
|
|
88
|
+
[1.1.0]: https://github.com/Nasdaq/nasdaq-protocols/releases/tag/1.1.0
|
|
89
|
+
[1.0.1]: https://github.com/Nasdaq/nasdaq-protocols/releases/tag/1.0.1
|
|
90
|
+
[1.0.0]: https://github.com/Nasdaq/nasdaq-protocols/releases/tag/1.0.0
|