Skip to content

Commit

Permalink
prepare next patch version
Browse files Browse the repository at this point in the history
  • Loading branch information
robamu committed Apr 23, 2024
1 parent 9d32bfa commit cc56a4a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

# [unreleased]

# [v0.1.1] 2024-04-23

- Allow `spacepackets` range from v0.23 to < v0.25

# [v0.1.0]

Initial release of the `cfdp-py` library which was split off the
Expand Down
10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
name = "cfdp-py"
description = "Library for high level CCSDS File Delivery Protocol (CFDP) components"
readme = "README.md"
version = "0.1.0"
version = "0.1.1"
requires-python = ">=3.8"
license = {text = "Apache-2.0"}
authors = [
Expand All @@ -28,9 +28,9 @@ classifiers = [
"Topic :: Scientific/Engineering"
]
dependencies = [
"spacepackets~=0.23.0",
"spacepackets>=0.23.0, <0.25",
"crcmod~=1.7",
"deprecation~=2.1"
"deprecation~=2.1",
]

[project.optional-dependencies]
Expand All @@ -41,7 +41,7 @@ test = [
[project.urls]
"Homepage" = "https://github.com/us-irs/cfdp-py"

[tool.ruff]
[tool.ruff.lint]
ignore = ["E501"]
[tool.ruff.extend-per-file-ignores]
[tool.ruff.lint.extend-per-file-ignores]
"__init__.py" = ["F401"]
2 changes: 1 addition & 1 deletion release-checklist.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ The steps shown here are for Ubuntu/MacOS.
with date and new `unreleased`section.
4. Run tests with `pytest .`
5. Run auto-formatter with `black .`
6. Run linter with `ruff .`
6. Run linter with `ruff check .`
7. Wait for CI/CD results. This also runs the tests on different operating systems

# Release
Expand Down
3 changes: 2 additions & 1 deletion tests/test_checksum.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ def setUp(self):
self.file_path = Path(f"{gettempdir()}/crc_file")
with open(self.file_path, "wb") as file:
file.write(EXAMPLE_DATA_CFDP)
# Kind of re-writing the modular checksum impl here which we are trying to test, but the
# numbers/correctness were verified manually using calculators, so this is okay.
segments_to_add = []
for i in range(4):
if (i + 1) * 4 > len(EXAMPLE_DATA_CFDP):
Expand All @@ -50,7 +52,6 @@ def setUp(self):
)
)
full_sum = sum(segments_to_add)
print(full_sum)
full_sum %= 2**32

self.expected_checksum_for_example = struct.pack("!I", full_sum)
Expand Down

0 comments on commit cc56a4a

Please sign in to comment.