nasdaq-protocols 1.2.4__tar.gz → 1.3.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.
Files changed (174) hide show
  1. nasdaq_protocols-1.3.0/.github/scripts/prepare_release.py +75 -0
  2. nasdaq_protocols-1.3.0/.github/workflows/wf-changelog-check.yml +27 -0
  3. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/.github/workflows/wf-pr-cov-comment.yml +16 -11
  4. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/.github/workflows/wf-push.yml +50 -61
  5. nasdaq_protocols-1.3.0/.github/workflows/wf-release.yml +91 -0
  6. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/.gitignore +1 -0
  7. nasdaq_protocols-1.3.0/CHANGELOG.md +77 -0
  8. nasdaq_protocols-1.3.0/CONTRIBUTING.md +77 -0
  9. nasdaq_protocols-1.2.4/docs/LICENSE.rst → nasdaq_protocols-1.3.0/LICENSE +0 -1
  10. nasdaq_protocols-1.3.0/PKG-INFO +123 -0
  11. nasdaq_protocols-1.3.0/README.md +101 -0
  12. nasdaq_protocols-1.3.0/docs/LICENSE.md +21 -0
  13. nasdaq_protocols-1.3.0/docs/api_reference.md +13 -0
  14. nasdaq_protocols-1.2.4/docs/api_reference_common.rst → nasdaq_protocols-1.3.0/docs/api_reference_common.md +4 -3
  15. nasdaq_protocols-1.3.0/docs/api_reference_fix.md +53 -0
  16. nasdaq_protocols-1.2.4/docs/api_reference_itch.rst → nasdaq_protocols-1.3.0/docs/api_reference_itch.md +13 -10
  17. nasdaq_protocols-1.2.4/docs/api_reference_ouch.rst → nasdaq_protocols-1.3.0/docs/api_reference_ouch.md +13 -10
  18. nasdaq_protocols-1.2.4/docs/api_reference_soup.rst → nasdaq_protocols-1.3.0/docs/api_reference_soup.md +13 -10
  19. nasdaq_protocols-1.2.4/docs/api_reference_sqf.rst → nasdaq_protocols-1.3.0/docs/api_reference_sqf.md +12 -10
  20. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/docs/conf.py +10 -2
  21. nasdaq_protocols-1.3.0/docs/developer_guide.md +54 -0
  22. nasdaq_protocols-1.2.4/README.md → nasdaq_protocols-1.3.0/docs/index.md +16 -3
  23. nasdaq_protocols-1.3.0/docs/install.md +40 -0
  24. nasdaq_protocols-1.3.0/docs/user_guide.md +15 -0
  25. nasdaq_protocols-1.3.0/docs/user_guide_create_new_project.md +79 -0
  26. nasdaq_protocols-1.3.0/docs/user_guide_fix.md +133 -0
  27. nasdaq_protocols-1.3.0/docs/user_guide_itch.md +116 -0
  28. nasdaq_protocols-1.3.0/docs/user_guide_ouch.md +110 -0
  29. nasdaq_protocols-1.3.0/docs/user_guide_soup.md +86 -0
  30. nasdaq_protocols-1.3.0/docs/user_guide_sqf.md +130 -0
  31. nasdaq_protocols-1.3.0/pyproject.toml +119 -0
  32. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols/common/__init__.py +1 -0
  33. nasdaq_protocols-1.3.0/src/nasdaq_protocols/common/_loop.py +16 -0
  34. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols/common/message/structures.py +2 -0
  35. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols/common/session.py +9 -4
  36. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols/fix/_reader.py +15 -7
  37. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols/fix/core.py +13 -0
  38. nasdaq_protocols-1.3.0/src/nasdaq_protocols/fix/session.py +242 -0
  39. nasdaq_protocols-1.3.0/src/nasdaq_protocols/soup/_reader.py +31 -0
  40. nasdaq_protocols-1.3.0/src/nasdaq_protocols.egg-info/PKG-INFO +123 -0
  41. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols.egg-info/SOURCES.txt +28 -22
  42. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols.egg-info/requires.txt +5 -0
  43. nasdaq_protocols-1.3.0/src/nasdaq_protocols.egg-info/scm_file_list.json +146 -0
  44. nasdaq_protocols-1.3.0/src/nasdaq_protocols.egg-info/scm_version.json +8 -0
  45. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/tests/fix_messages.py +90 -0
  46. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/tests/test_common_message_structures.py +18 -0
  47. nasdaq_protocols-1.3.0/tests/test_fix_session.py +620 -0
  48. nasdaq_protocols-1.3.0/uv.lock +1139 -0
  49. nasdaq_protocols-1.2.4/.coveragerc +0 -10
  50. nasdaq_protocols-1.2.4/MANIFEST.in +0 -4
  51. nasdaq_protocols-1.2.4/PKG-INFO +0 -33
  52. nasdaq_protocols-1.2.4/docs/api_reference.rst +0 -13
  53. nasdaq_protocols-1.2.4/docs/api_reference_fix.rst +0 -30
  54. nasdaq_protocols-1.2.4/docs/developer_guide.rst +0 -39
  55. nasdaq_protocols-1.2.4/docs/index.rst +0 -39
  56. nasdaq_protocols-1.2.4/docs/install.rst +0 -10
  57. nasdaq_protocols-1.2.4/docs/user_guide.rst +0 -15
  58. nasdaq_protocols-1.2.4/docs/user_guide_create_new_project.rst +0 -82
  59. nasdaq_protocols-1.2.4/docs/user_guide_itch.rst +0 -125
  60. nasdaq_protocols-1.2.4/docs/user_guide_ouch.rst +0 -121
  61. nasdaq_protocols-1.2.4/docs/user_guide_soup.rst +0 -91
  62. nasdaq_protocols-1.2.4/docs/user_guide_sqf.rst +0 -141
  63. nasdaq_protocols-1.2.4/pyproject.toml +0 -43
  64. nasdaq_protocols-1.2.4/pytest.ini +0 -8
  65. nasdaq_protocols-1.2.4/requirements.txt +0 -8
  66. nasdaq_protocols-1.2.4/src/nasdaq_protocols/fix/session.py +0 -122
  67. nasdaq_protocols-1.2.4/src/nasdaq_protocols/soup/_reader.py +0 -25
  68. nasdaq_protocols-1.2.4/src/nasdaq_protocols.egg-info/PKG-INFO +0 -33
  69. nasdaq_protocols-1.2.4/tests/test_fix_session.py +0 -212
  70. nasdaq_protocols-1.2.4/tox.ini +0 -72
  71. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  72. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
  73. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/.pylintrc +0 -0
  74. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/docs/Makefile +0 -0
  75. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/docs/make.bat +0 -0
  76. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/setup.cfg +0 -0
  77. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols/__init__.py +0 -0
  78. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols/asn1_app/__init__.py +0 -0
  79. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols/asn1_app/codegen.py +0 -0
  80. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols/asn1_app/core.py +0 -0
  81. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols/asn1_app/soup_session.py +0 -0
  82. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols/asn1_app/templates/__init__.py +0 -0
  83. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols/asn1_app/templates/ans1_soup_app.mustache +0 -0
  84. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols/asn1_app/templates/init.mustache +0 -0
  85. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols/common/message/__init__.py +0 -0
  86. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols/common/message/codegen.py +0 -0
  87. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols/common/message/parser.py +0 -0
  88. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols/common/message/templates/__init__.py +0 -0
  89. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols/common/message/templates/enum.mustache +0 -0
  90. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols/common/message/templates/init.mustache +0 -0
  91. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols/common/message/templates/message_soup_app.mustache +0 -0
  92. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols/common/message/templates/record.mustache +0 -0
  93. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols/common/message/types.py +0 -0
  94. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols/common/message_queue.py +0 -0
  95. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols/common/sync_executor.py +0 -0
  96. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols/common/types.py +0 -0
  97. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols/common/utils.py +0 -0
  98. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols/fix/__init__.py +0 -0
  99. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols/fix/codegen.py +0 -0
  100. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols/fix/parser/__init__.py +0 -0
  101. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols/fix/parser/definitions.py +0 -0
  102. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols/fix/parser/generator.py +0 -0
  103. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols/fix/parser/parser.py +0 -0
  104. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols/fix/parser/templates/__init__.py +0 -0
  105. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols/fix/parser/templates/app.mustache +0 -0
  106. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols/fix/parser/templates/bodies.mustache +0 -0
  107. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols/fix/parser/templates/fields.mustache +0 -0
  108. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols/fix/parser/templates/groups.mustache +0 -0
  109. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols/fix/parser/templates/init.mustache +0 -0
  110. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols/fix/parser/templates/messages.mustache +0 -0
  111. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols/fix/parser/version_types.py +0 -0
  112. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols/fix/types.py +0 -0
  113. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols/itch/__init__.py +0 -0
  114. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols/itch/codegen.py +0 -0
  115. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols/itch/core.py +0 -0
  116. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols/itch/session.py +0 -0
  117. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols/ouch/__init__.py +0 -0
  118. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols/ouch/codegen.py +0 -0
  119. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols/ouch/core.py +0 -0
  120. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols/ouch/session.py +0 -0
  121. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols/soup/__init__.py +0 -0
  122. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols/soup/core.py +0 -0
  123. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols/soup/session.py +0 -0
  124. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols/soup/soup_app.py +0 -0
  125. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols/soup/tools_soup_tail.py +0 -0
  126. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols/soup/tools_soupapp_tail.py +0 -0
  127. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols/sqf/__init__.py +0 -0
  128. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols/sqf/codegen.py +0 -0
  129. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols/sqf/core.py +0 -0
  130. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols/sqf/session.py +0 -0
  131. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols/tools/__init__.py +0 -0
  132. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols/tools/new_project.py +0 -0
  133. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols/tools/templates/__init__.py +0 -0
  134. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols/tools/templates/soup_app_xml.mustache +0 -0
  135. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols/tools/templates/toml.mustache +0 -0
  136. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols/tools/templates/tox.mustache +0 -0
  137. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols.egg-info/dependency_links.txt +0 -0
  138. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols.egg-info/entry_points.txt +0 -0
  139. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/src/nasdaq_protocols.egg-info/top_level.txt +0 -0
  140. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/tests/__init__.py +0 -0
  141. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/tests/conftest.py +0 -0
  142. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/tests/mocks.py +0 -0
  143. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/tests/reader_app_tests.py +0 -0
  144. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/tests/soup_app_codegen_tests.py +0 -0
  145. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/tests/soup_client_app_tests.py +0 -0
  146. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/tests/sqf_messages.py +0 -0
  147. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/tests/test_asn1app_codegen.py +0 -0
  148. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/tests/test_asn1app_core.py +0 -0
  149. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/tests/test_common_asyncsession.py +0 -0
  150. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/tests/test_common_heartbeatmonitor.py +0 -0
  151. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/tests/test_common_message_parser.py +0 -0
  152. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/tests/test_common_message_types.py +0 -0
  153. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/tests/test_common_messagequeue.py +0 -0
  154. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/tests/test_common_utils.py +0 -0
  155. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/tests/test_fix_codegen.py +0 -0
  156. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/tests/test_fix_core.py +0 -0
  157. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/tests/test_fix_parser.py +0 -0
  158. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/tests/test_fix_reader.py +0 -0
  159. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/tests/test_fix_types.py +0 -0
  160. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/tests/test_itch_codegen.py +0 -0
  161. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/tests/test_itch_core.py +0 -0
  162. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/tests/test_itch_session.py +0 -0
  163. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/tests/test_ouch_codegen.py +0 -0
  164. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/tests/test_ouch_core.py +0 -0
  165. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/tests/test_ouch_session.py +0 -0
  166. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/tests/test_soup_core.py +0 -0
  167. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/tests/test_soup_reader.py +0 -0
  168. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/tests/test_soup_session.py +0 -0
  169. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/tests/test_soup_tools_soupapp_tail.py +0 -0
  170. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/tests/test_soup_tools_tail.py +0 -0
  171. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/tests/test_sqf_codegen.py +0 -0
  172. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/tests/test_sqf_core.py +0 -0
  173. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.0}/tests/test_sync_executor.py +0 -0
  174. {nasdaq_protocols-1.2.4 → nasdaq_protocols-1.3.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,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
@@ -14,22 +14,27 @@ jobs:
14
14
  python-version: ["3.12"]
15
15
 
16
16
  steps:
17
- - uses: actions/checkout@v3
17
+ - uses: actions/checkout@v4
18
+ with:
19
+ fetch-depth: 0
18
20
 
19
- - name: Set up Python ${{ matrix.python-version }}
20
- uses: actions/setup-python@v3
21
+ - name: Install uv
22
+ uses: astral-sh/setup-uv@v6
21
23
  with:
22
24
  python-version: ${{ matrix.python-version }}
23
25
 
24
- - name: Upgrade pip
25
- run: python -m pip install --upgrade pip
26
-
27
- - name: Install Tox
28
- run: pip install tox
29
-
30
26
  - name: Run test
31
- run: tox -e test
32
-
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
+
33
38
  - name: Pytest coverage comment
34
39
  uses: MishaKav/pytest-coverage-comment@main
35
40
  with:
@@ -11,30 +11,39 @@ jobs:
11
11
  python-version: ["3.11", "3.12", "3.13"]
12
12
 
13
13
  steps:
14
- - uses: actions/checkout@v3
14
+ - uses: actions/checkout@v4
15
+ with:
16
+ fetch-depth: 0
15
17
 
16
- - name: Set up Python ${{ matrix.python-version }}
17
- uses: actions/setup-python@v3
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: tox -e lint
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: tox -e 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
32
37
 
33
38
  - name: Run build
34
- run: tox -e build
39
+ run: uv build
35
40
 
36
41
  - name: Build doc
37
- run: tox -e doc
42
+ run: |
43
+ cd docs
44
+ uv run --group docs make html
45
+ env:
46
+ SPHINXBUILD: "python -m sphinx"
38
47
 
39
48
  - name: Store the distribution packages
40
49
  uses: actions/upload-artifact@v5
@@ -50,10 +59,6 @@ jobs:
50
59
  needs:
51
60
  - build
52
61
  runs-on: ubuntu-latest
53
- strategy:
54
- fail-fast: false
55
- matrix:
56
- python-version: ["3.12"]
57
62
 
58
63
  environment:
59
64
  name: github-pages
@@ -64,21 +69,21 @@ jobs:
64
69
  pages: write
65
70
 
66
71
  steps:
67
- - uses: actions/checkout@v3
68
-
69
- - name: Set up Python ${{ matrix.python-version }}
70
- uses: actions/setup-python@v3
72
+ - uses: actions/checkout@v4
71
73
  with:
72
- python-version: ${{ matrix.python-version }}
73
-
74
- - name: Upgrade pip
75
- run: python -m pip install --upgrade pip
74
+ fetch-depth: 0
76
75
 
77
- - name: Install Tox
78
- run: pip install tox
76
+ - name: Install uv
77
+ uses: astral-sh/setup-uv@v6
78
+ with:
79
+ python-version: "3.12"
79
80
 
80
- - name: Run Doc
81
- run: tox -e doc
81
+ - name: Build docs
82
+ run: |
83
+ cd docs
84
+ uv run --group docs make html
85
+ env:
86
+ SPHINXBUILD: "python -m sphinx"
82
87
 
83
88
  - name: Deploy to GitHub Pages
84
89
  uses: peaceiris/actions-gh-pages@v3
@@ -94,10 +99,6 @@ jobs:
94
99
  needs:
95
100
  - build
96
101
  runs-on: ubuntu-latest
97
- strategy:
98
- fail-fast: false
99
- matrix:
100
- python-version: ["3.12"]
101
102
 
102
103
  environment:
103
104
  name: testpypi
@@ -107,21 +108,17 @@ jobs:
107
108
  id-token: write
108
109
 
109
110
  steps:
110
- - uses: actions/checkout@v3
111
-
112
- - name: Set up Python ${{ matrix.python-version }}
113
- uses: actions/setup-python@v3
111
+ - uses: actions/checkout@v4
114
112
  with:
115
- python-version: ${{ matrix.python-version }}
116
-
117
- - name: Upgrade pip
118
- run: python -m pip install --upgrade pip
113
+ fetch-depth: 0
119
114
 
120
- - name: Install Tox
121
- run: pip install tox
115
+ - name: Install uv
116
+ uses: astral-sh/setup-uv@v6
117
+ with:
118
+ python-version: "3.12"
122
119
 
123
- - name: Run build
124
- run: tox -e build
120
+ - name: Build package
121
+ run: uv build
125
122
 
126
123
  - name: Publish distribution 📦 to TestPyPI
127
124
  uses: pypa/gh-action-pypi-publish@release/v1
@@ -136,10 +133,6 @@ jobs:
136
133
  needs:
137
134
  - publish-to-testpypi # only publish to PyPI after TestPyPI publishing
138
135
  runs-on: ubuntu-latest
139
- strategy:
140
- fail-fast: false
141
- matrix:
142
- python-version: ["3.12"]
143
136
 
144
137
  environment:
145
138
  name: pypi
@@ -149,21 +142,17 @@ jobs:
149
142
  id-token: write
150
143
 
151
144
  steps:
152
- - uses: actions/checkout@v3
153
-
154
- - name: Set up Python ${{ matrix.python-version }}
155
- uses: actions/setup-python@v3
145
+ - uses: actions/checkout@v4
156
146
  with:
157
- python-version: ${{ matrix.python-version }}
147
+ fetch-depth: 0
158
148
 
159
- - name: Upgrade pip
160
- run: python -m pip install --upgrade pip
161
-
162
- - name: Install Tox
163
- run: pip install tox
149
+ - name: Install uv
150
+ uses: astral-sh/setup-uv@v6
151
+ with:
152
+ python-version: "3.12"
164
153
 
165
- - name: Run build
166
- run: tox -e build
154
+ - name: Build package
155
+ run: uv build
167
156
 
168
157
  - name: Publish distribution 📦 to PyPI
169
158
  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 }}" --merge --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,77 @@
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
+ ## [1.3.0] - 2026-10-10
13
+
14
+ - FIX: session-level sequence gap detection and recovery on login (#73)
15
+ - Fix: `Record.as_collection` now prints nested `Record`s correctly (#72)
16
+ - Build: migrated the project's own build/test/lint/doc tooling from `tox` to
17
+ [`uv`](https://docs.astral.sh/uv/) (#69)
18
+ - Perf: optional `performance` extra installing `uvloop` for ~4-5x faster event loop
19
+ scheduling, activated via `nasdaq_protocols.common.use_fast_loop()` (#70)
20
+ - Docs: migrated `docs/*.rst` to Markdown (MyST), added root `LICENSE`, `CONTRIBUTING.md`,
21
+ this changelog, and rewrote `README.md` (addresses #46, #47)
22
+
23
+ ## [1.2.4] - 2026-01-15
24
+
25
+ Released together with the `1.2.0`-`1.2.4` series below (iterative CI/build fixes landed
26
+ over a single week):
27
+
28
+ - Build: explicit build steps for build and doc jobs (#67, #68)
29
+ - CI: build documentation when pushing to `gh-pages` and `main` (#66)
30
+ - CI: publish to GitHub Pages only on push to `main` (#65)
31
+ - CI: add jobs to publish the package to PyPI and TestPyPI (#64)
32
+ - Feature: graceful shutdown for sessions (#63)
33
+ - Docs: fixed docstrings for OUCH and SQF decode methods (#62)
34
+
35
+ ## [1.1.4] / [1.1.3] - 2025-09-19
36
+
37
+ - Feature: configurable length types for array fields (#61)
38
+ - Feature: `nasdaq-sqf-codegen` CLI for SQF code generation (#60)
39
+
40
+ ## [1.1.2] - 2025-08-22
41
+
42
+ - Feature: generic `tail` command for all SOUP-based applications (#59)
43
+
44
+ ## [1.1.1] - 2025-04-04
45
+
46
+ - Fix: pytest configuration fixes (#51)
47
+
48
+ ## [1.1.0] - 2025-04-02
49
+
50
+ - Feature: ASN.1-over-SOUP application support, `asn1soup` codegen CLI (#48, #49)
51
+
52
+ ## [1.0.1] - 2025-01-24
53
+
54
+ - Fix: `fix-datasegment.field` now returns the result in the correct units (#39)
55
+ - Fix: resolved issue #37
56
+
57
+ ## [1.0.0] - 2025-01-22
58
+
59
+ First stable release. Includes SOUP, OUCH, ITCH, SQF and FIX session/message support, the
60
+ `nasdaq-protocols-create-new-project` scaffolding CLI, and Sphinx documentation published to
61
+ GitHub Pages.
62
+
63
+ ## [0.0.1a1] - [0.0.1.a6] - 2024-09-03 to 2025-01-22
64
+
65
+ Initial alpha releases: SOUP transport layer, OUCH/ITCH/SQF protocol support, FIX parser and
66
+ session handling, documentation infrastructure, and CI setup.
67
+
68
+ [Unreleased]: https://github.com/Nasdaq/nasdaq-protocols/compare/1.3.0...main
69
+ [1.3.0]: https://github.com/Nasdaq/nasdaq-protocols/releases/tag/1.3.0
70
+ [1.2.4]: https://github.com/Nasdaq/nasdaq-protocols/releases/tag/1.2.4
71
+ [1.1.4]: https://github.com/Nasdaq/nasdaq-protocols/releases/tag/1.1.4
72
+ [1.1.3]: https://github.com/Nasdaq/nasdaq-protocols/releases/tag/1.1.3
73
+ [1.1.2]: https://github.com/Nasdaq/nasdaq-protocols/releases/tag/1.1.2
74
+ [1.1.1]: https://github.com/Nasdaq/nasdaq-protocols/releases/tag/1.1.1
75
+ [1.1.0]: https://github.com/Nasdaq/nasdaq-protocols/releases/tag/1.1.0
76
+ [1.0.1]: https://github.com/Nasdaq/nasdaq-protocols/releases/tag/1.0.1
77
+ [1.0.0]: https://github.com/Nasdaq/nasdaq-protocols/releases/tag/1.0.0
@@ -0,0 +1,77 @@
1
+ # Contributing to nasdaq-protocols
2
+
3
+ Thanks for your interest in contributing! 🎉
4
+
5
+ ## Development setup
6
+
7
+ This project uses [uv](https://docs.astral.sh/uv/) for dependency management, building,
8
+ testing, linting and documentation.
9
+
10
+ ```bash
11
+ git clone https://github.com/Nasdaq/nasdaq-protocols.git
12
+ cd nasdaq-protocols
13
+ uv sync --group dev
14
+ ```
15
+
16
+ ## Before opening a pull request
17
+
18
+ Please make sure the following pass locally -- these are the same checks run by CI
19
+ (`.github/workflows/wf-push.yml`):
20
+
21
+ ```bash
22
+ # Lint
23
+ uv run --group lint pylint --fail-under=10.0 "--ignore-patterns=.*egg-info.*,.*test.*" src/*
24
+
25
+ # Tests (97% coverage required)
26
+ uv run --group test pytest --cov=src --cov-fail-under=97
27
+
28
+ # Build the package
29
+ uv build
30
+
31
+ # Build the docs
32
+ cd docs && uv run --group docs make html
33
+ ```
34
+
35
+ ## Guidelines
36
+
37
+ - All existing tests must pass; add new tests for new behavior.
38
+ - Pylint must report 10/10.
39
+ - Code should be documented, with docstrings added where needed.
40
+ - User-facing changes should be documented in the relevant file under `docs/` and noted in
41
+ [CHANGELOG.md](CHANGELOG.md) under `[Unreleased]`. A CI check (`Changelog Check`) fails the
42
+ PR if `CHANGELOG.md` isn't part of the diff.
43
+ - If your change genuinely doesn't need a changelog entry (e.g. CI-only tweaks, typo
44
+ fixes, internal refactors with no user-facing effect), apply the `skip-changelog`
45
+ label to the PR to bypass the check:
46
+ - GitHub UI: open the PR -> **Labels** (right sidebar) -> select `skip-changelog`.
47
+ - CLI: `gh pr edit <PR_NUMBER> --add-label skip-changelog`
48
+ Only maintainers/contributors with write access can add labels; if you can't add it
49
+ yourself, ask a maintainer to apply it on your PR.
50
+
51
+ ## Documentation
52
+
53
+ Documentation source lives under `docs/` as Markdown (built with
54
+ [Sphinx](https://www.sphinx-doc.org/) + [MyST](https://myst-parser.readthedocs.io/)) and is
55
+ published automatically to [GitHub Pages](https://nasdaq.github.io/nasdaq-protocols/) on
56
+ every push to `main`. See the
57
+ [Developer's Guide](https://nasdaq.github.io/nasdaq-protocols/developer_guide.html) for more
58
+ detail.
59
+
60
+ ## Cutting a release
61
+
62
+ Releases are fully automated (maintainers only):
63
+
64
+ 1. Go to **Actions -> Release -> Run workflow**, enter the new version (e.g. `1.3.0`, no
65
+ leading `v`), and run it.
66
+ 2. The workflow rolls `CHANGELOG.md`'s `[Unreleased]` entries into a new dated
67
+ `[<version>]` section, commits that change to `main`, then creates and pushes the
68
+ `<version>` tag.
69
+ 3. The tag push automatically triggers the build, then publishes to TestPyPI and PyPI.
70
+
71
+ No manual CHANGELOG editing or tagging is needed -- just make sure `[Unreleased]` has the
72
+ entries you want released before running the workflow.
73
+
74
+ ## Reporting issues
75
+
76
+ Please use the [issue tracker](https://github.com/Nasdaq/nasdaq-protocols/issues) and
77
+ include a minimal reproduction where possible.
@@ -1,5 +1,4 @@
1
1
  MIT License
2
- ===========
3
2
 
4
3
  Copyright (c) 2025 Nasdaq
5
4