Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
448 commits
Select commit Hold shift + click to select a range
26b7fff
Moved new instructions to more relevant location
mattclarke Sep 21, 2020
2af628c
Added `answ` to the table in the README.md - still needs to be checke…
mattclarke Sep 21, 2020
68da85c
Noticed some stray Py2 style and some uncommon naming.
mattclarke Sep 21, 2020
c8322cf
Undo formatting change
mattclarke Sep 21, 2020
4d34099
Removed trailing whitespace
mattclarke Sep 21, 2020
56cc3c7
Copy and paste error rectified
mattclarke Sep 21, 2020
604d92d
Merge pull request #30 from ess-dmsc/cleanup_of_py2_isms
matthew-d-jones Sep 21, 2020
56f0432
Schema changes.
SkyToGround Oct 2, 2020
dc2ae6b
Merge branch 'filewriter_ctrl' of github.com:ess-dmsc/python-streamin…
SkyToGround Oct 2, 2020
a102448
Merge branch 'master' of github.com:ess-dmsc/python-streaming-data-ty…
SkyToGround Oct 2, 2020
ebf9dea
Black.
SkyToGround Oct 2, 2020
4a49157
Minor fix.
SkyToGround Oct 2, 2020
1499a65
Add missing metadata code.
SkyToGround Oct 7, 2020
f640c5c
Documentation and other minor changes.
SkyToGround Oct 20, 2020
16572a1
Updated to typed code.
SkyToGround Oct 20, 2020
830dd17
Code review changes.
SkyToGround Oct 20, 2020
541b000
Minor typing change.
SkyToGround Oct 20, 2020
2f71223
Merge pull request #29 from ess-dmsc/filewriter_ctrl
SkyToGround Oct 20, 2020
70ac0d7
Added deserialiser for NDArray
DominicOram Oct 20, 2020
d499939
Bug workaround, code update and use of datetime.
SkyToGround Oct 22, 2020
b6033e8
Merge pull request #31 from ess-dmsc/update_code
matthew-d-jones Oct 22, 2020
faa9b4a
Added NDAr datatype and deserialiser
DominicOram Oct 22, 2020
1e0cbed
Added NDAr deserialiser and tests
DominicOram Oct 22, 2020
1c07430
Add this line to work around a bug in the flat buffers library.
DominicOram Oct 22, 2020
b421472
Addressed rework comments
DominicOram Oct 22, 2020
6afe028
Added type correction in NDAr deserialisation
DominicOram Oct 22, 2020
d0d05bb
Fix flake8 error
DominicOram Oct 22, 2020
3ecbab0
Added NDAr to README
DominicOram Oct 23, 2020
9ef7807
Merge pull request #32 from ess-dmsc/add_deserialiser_for_ndarray
SkyToGround Oct 23, 2020
5bb36f5
Improve performance of tdct serialiser.
SkyToGround Oct 27, 2020
e5bdda1
Merge pull request #33 from ess-dmsc/improve_tdct_performance
matthew-d-jones Oct 28, 2020
fe9abed
Use CreateNumpyVector where appropriate in hs00
mattclarke Oct 30, 2020
0160ae8
Specify flatbuffers 1.12 needed in install require
matthew-d-jones Oct 30, 2020
6615638
Merge pull request #35 from ess-dmsc/flatbuffers_version_in_install_req
matthew-d-jones Oct 30, 2020
b1514ee
Update version
matthew-d-jones Oct 30, 2020
82c6d01
Merge pull request #34 from ess-dmsc/hs00_use_create_vector
matthew-d-jones Oct 30, 2020
af13336
Work around for datetime limitations.
SkyToGround Nov 4, 2020
f8b8c29
Update streaming_data_types/action_response_answ.py
SkyToGround Nov 13, 2020
aa762e1
Use CreateNumpyVector where appropriate
mattclarke Nov 18, 2020
552e659
Update tests
mattclarke Nov 18, 2020
9fbab53
Merge pull request #36 from ess-dmsc/fix_answ_timestamp_bug
SkyToGround Nov 19, 2020
cf226b8
ADArray implementation.
SkyToGround Nov 19, 2020
d62d3f8
Added attributes.
SkyToGround Nov 23, 2020
623d438
black
SkyToGround Nov 23, 2020
5d146d7
Merge pull request #37 from ess-dmsc/check_is_status_helper
matthew-d-jones Dec 2, 2020
0ccc26f
Update README_DEV.md
matthew-d-jones Dec 2, 2020
7b27ba6
More formatting?
SkyToGround Dec 2, 2020
beed807
Update README_DEV.md
matthew-d-jones Dec 2, 2020
ab9ceff
Update README_DEV.md
matthew-d-jones Dec 2, 2020
41d1d08
Bump version string.
SkyToGround Dec 2, 2020
584a699
Make get_schema public
mattclarke Dec 21, 2020
2ccf3ab
use CreateNumpyVector in ev42 serialisation
Dec 22, 2020
25f19e8
Merge pull request #39 from ess-dmsc/use_createnumpyvector_in_ev42_se…
mattclarke Dec 22, 2020
4094d98
Merge pull request #38 from ess-dmsc/make_get_schema_public
matthew-d-jones Dec 22, 2020
563ad17
Add sample environment Python code.
SkyToGround Jan 25, 2021
39de846
black
SkyToGround Jan 25, 2021
77ff750
Minor fixes.
SkyToGround Jan 25, 2021
77f0e97
Added version number for library
mattclarke Jan 29, 2021
8485dbc
Not a release so reverted the version
mattclarke Jan 29, 2021
05bffd9
Merge pull request #41 from ess-dmsc/enable_version_query
mattclarke Jan 29, 2021
97cba8f
svnjdflkxnvdfkls
SkyToGround Jan 29, 2021
73cbc34
Updated documentation.
SkyToGround Feb 5, 2021
cbf47d9
nrfg
SkyToGround Feb 5, 2021
129ae4b
Disable warning.
SkyToGround Feb 5, 2021
d6e4694
Merge branch 'master' of github.com:ess-dmsc/python-streaming-data-ty…
SkyToGround Feb 5, 2021
36f3b6f
Fix exceptions.
SkyToGround Feb 5, 2021
d796272
Revert black.
SkyToGround Feb 5, 2021
678de69
More revert black.
SkyToGround Feb 5, 2021
fbd7e6b
Version bump.
SkyToGround Feb 5, 2021
3cab793
Merge pull request #42 from ess-dmsc/area_detector_ADAr
SkyToGround Feb 8, 2021
62c5f80
Merge branch 'master' into add_senv
matthew-d-jones Feb 10, 2021
ad7dfee
Merge pull request #40 from ess-dmsc/add_senv
SkyToGround Mar 10, 2021
f960b7b
Updated to latest version of the senv schema.
SkyToGround Mar 11, 2021
44e9b1b
Formatting.
SkyToGround Mar 11, 2021
7c993fd
Merge pull request #43 from ess-dmsc/update_senv
SkyToGround Mar 30, 2021
fdddc65
Add tz to datetime.
SkyToGround Mar 30, 2021
955703c
Version bump.
SkyToGround Mar 30, 2021
c60d249
Merge pull request #44 from ess-dmsc/minor_datetime_fixes
SkyToGround Mar 31, 2021
6e89f90
Move version number out of __init__
Apr 9, 2021
5ef143c
Add conda package recipe
Apr 10, 2021
6a8c8a7
Document conda package build and upload
Apr 10, 2021
d48e39b
Document create tag before conda package
Apr 10, 2021
8f72433
Merge pull request #45 from ess-dmsc/fix_buildtime_dep_problem
mattclarke Apr 12, 2021
f09ebef
Fix install location and ensure that import is tested during conda build
Apr 30, 2021
bfb4ceb
Merge pull request #46 from ess-dmsc/fix_to_conda_package
mattclarke May 3, 2021
ce0c1bb
Update requirements.txt
mattclarke May 11, 2021
d73cb76
Merge pull request #47 from ess-dmsc/pin_flatbuffers
mattclarke May 11, 2021
a011d91
Update _version.py
mattclarke May 11, 2021
6581166
Update setup.py
mattclarke May 11, 2021
1aba466
Update meta.yaml
mattclarke May 11, 2021
3f3ea99
Update README_DEV.md
mattclarke May 11, 2021
7cbfc82
Update README_DEV.md
matthew-d-jones May 11, 2021
b48c71c
Simplify conda package build instructions
matthew-d-jones May 18, 2021
b2c5f6e
Add flatc generated SpectraDetectorMapping.py
May 19, 2021
865499e
Test serialisation of det-spec map
May 20, 2021
41ae749
Impl serialisation of det-spec map
May 20, 2021
ebe09dc
Merge pull request #48 from ess-dmsc/support_det_spec_map_in_run_start
matthew-d-jones May 21, 2021
70516b7
Update _version.py
matthew-d-jones May 21, 2021
c5304df
Fix compatibility issue.
SkyToGround Jun 30, 2021
624a960
Update streaming_data_types/_version.py
mattclarke Jul 5, 2021
11ad912
Merge pull request #49 from ess-dmsc/make_pl72_backwards_compatible
mattclarke Jul 5, 2021
d5f86d7
Use np asarray to avoid copies
Jul 11, 2021
63d78da
Merge pull request #50 from ess-dmsc/use_np_asarray_to_avoid_copies
mattclarke Jul 12, 2021
c5e10e7
Added control_topic to pl72 run start
mattclarke Jul 19, 2021
33e1b79
Grammar corrections
mattclarke Jul 19, 2021
cd5a8dc
Merge pull request #51 from ess-dmsc/add_control_topic
mattclarke Jul 19, 2021
6eaf710
Made the location of the requirements for tox explicit
mattclarke Aug 30, 2021
6c2c771
Updated gitignore
mattclarke Aug 30, 2021
b8606e2
Show which python being run
mattclarke Aug 30, 2021
bf9a4c4
Debugging.
mattclarke Aug 30, 2021
c51851e
Explicitly install pip for conda
mattclarke Aug 30, 2021
221e83e
Changed order
mattclarke Aug 30, 2021
7f502d7
Removed build debugging bits
mattclarke Aug 30, 2021
0972e1a
Temporary workaround to install pip
mattclarke Aug 30, 2021
82e0161
Remove workaround
mattclarke Sep 1, 2021
e537f8d
Merge pull request #52 from ess-dmsc/fix_build_issues
mattclarke Sep 1, 2021
0018bec
added ev43 and fix int8 f142 serialise
geishm-ansto Oct 22, 2021
21c31d6
Merge pull request #53 from geishm-ansto/main
mattclarke Oct 22, 2021
13a9925
Bumped version number
mattclarke Oct 22, 2021
958779b
Massively improve the performance of serialisation of arrays in the f…
SkyToGround Dec 29, 2021
fb8ce5b
Removed unused imports
mattclarke Jan 3, 2022
efef4af
Merge pull request #54 from ess-dmsc/performance_fix_f142
mattclarke Jan 3, 2022
86e60aa
Add support for hs01
mattclarke Feb 16, 2022
dd13bd8
Pin flake8 and black so they are consistent with the pre-commit settings
mattclarke Feb 16, 2022
22b1cbc
add isort
mattclarke Feb 16, 2022
e1ea92d
apply isort
mattclarke Feb 16, 2022
ddd0655
Merge branch 'main' into hs01
mattclarke Feb 16, 2022
7369e55
Fixed merge conflict issue
mattclarke Feb 17, 2022
843f8f1
Merge pull request #55 from ess-dmsc/hs01
mattclarke Mar 29, 2022
c7faf42
Update _version.py after hs01 support has been added
Apr 4, 2022
67e6854
Update streaming_data_types/_version.py
mattclarke Apr 4, 2022
cb27326
Merge pull request #56 from ess-dmsc/update-version
mattclarke Apr 4, 2022
3278785
new ev44 streaming data type implementation
Jun 22, 2022
2f8c3d2
minor fix and adding unit tests to ev44 streaming data type
Jun 22, 2022
749b91f
adding new line
Jun 22, 2022
2528245
adding ev44 to readme
Jun 22, 2022
57cba3b
changing from longlong to int64
Jun 23, 2022
b8d0cd4
Merge pull request #58 from ess-dmsc/ECDC-2916_ev44_schema
mattclarke Jun 29, 2022
39a9ebb
Update README.md
mattclarke Jun 29, 2022
5d0a08c
patching ev44 schema
Nov 11, 2022
407f8ea
Merge pull request #60 from ess-dmsc/ev44_patch
mattclarke Nov 15, 2022
e46029e
added vscode to gitignore
mattclarke Nov 16, 2022
b5e6930
Add al00 alarms schema (#62)
mattclarke Nov 16, 2022
e4338f7
ECDC-3190 add se00 schema (#61)
hurvan Nov 16, 2022
78a0bd2
updating black version in pre-commit
hurvan Nov 17, 2022
1485ab6
adding init file to al00 module for consistency (#64)
kmurica Nov 17, 2022
da5cae4
adding ep01 serialiser and deserialiser
Nov 17, 2022
564e8fb
additional fixes
Nov 17, 2022
cb2ec7c
hiding status from fb schema
Nov 17, 2022
851324c
Merge pull request #65 from ess-dmsc/ECDC-3222_ep01_fb_schema
kmurica Nov 17, 2022
5392db8
Fix syntax error appending item to list
danesss Nov 24, 2022
0e3b174
Merge pull request #67 from ess-dmsc/fix-error-messages
kmurica Nov 24, 2022
933f60f
ECDC-3221: Adding f144 schema (#66)
kmurica Nov 24, 2022
1ad55f4
Merge remote-tracking branch 'origin/main' into update_black
hurvan Nov 24, 2022
df4a9e5
merging main and reformatting
hurvan Nov 24, 2022
0a205db
fixing bug
hurvan Nov 24, 2022
3d9a8d5
Merge pull request #69 from ess-dmsc/update_black_with_main
kmurica Nov 24, 2022
327edeb
bumping up version and updating readme (#71)
kmurica Nov 24, 2022
3fba70c
Add buffer tests (#70)
mattclarke Nov 24, 2022
527eaf3
added test for al00 buffer
mattclarke Nov 25, 2022
9d0198c
added test for f144 buffer
mattclarke Nov 25, 2022
4714d5a
added test for f144 buffer
mattclarke Nov 25, 2022
294dc74
Update README.md
danesss Nov 29, 2022
9159dce
Merge pull request #72 from ess-dmsc/docs_mention_developer_docs_in_r…
kmurica Nov 29, 2022
d975fd2
Fix: service_id should be empty bytes instead of None
danesss Nov 29, 2022
c265147
Merge pull request #73 from ess-dmsc/fix_ep01_deserialise_service_id_…
kmurica Nov 29, 2022
9364e53
Bump version to 0.19.0
danesss Nov 30, 2022
af0467a
Merge pull request #74 from ess-dmsc/bump-package-version-to-0.19.0
danesss Nov 30, 2022
52ade5d
moved f144 over to new root type
mattclarke Dec 6, 2022
ff5252d
Merge pull request #75 from ess-dmsc/new_f144
kmurica Dec 6, 2022
15d842d
fixes due to changes in se00 schema in streaming-data-types
Dec 7, 2022
346a5ed
Merge pull request #76 from ess-dmsc/new_se00
kmurica Dec 7, 2022
798f770
bumping version
Dec 7, 2022
6b6ca19
Merge pull request #77 from ess-dmsc/bump_version
kmurica Dec 7, 2022
8b0d868
use pyenv instead of conda
mattclarke Dec 12, 2022
9f6f673
flake8 was present twice
mattclarke Dec 12, 2022
68707c6
Merge pull request #78 from ess-dmsc/pyenv
kmurica Dec 12, 2022
70600a0
use built in complex numbers
mattclarke Dec 22, 2022
ec4a5c0
Update build node version (#79)
amues Dec 22, 2022
1acf419
bump to latest flatbuffers
mattclarke Jan 2, 2023
a417286
bump version number
mattclarke Jan 2, 2023
6c0c157
clear pythonpath when using tox
mattclarke Jan 9, 2023
96ef1fb
Updated the maxtime for running in windows
subindev-d Apr 20, 2023
b3dd5a9
Replaced all the year 9000 with year 3001 for max_time.
subindev-d Apr 21, 2023
34b1e01
Chore: Bump isort
danesss Apr 24, 2023
7150544
Chore: Downgrade isort to maintain python 3.7 compatibility
danesss Apr 24, 2023
1a7ac4e
Minor: Add missing typing
danesss Apr 21, 2023
bf3a408
Merge pull request #85 from ess-dmsc/fix-missing-typing
danesss Apr 24, 2023
392f708
Merge pull request #84 from ess-dmsc/bump-isort
danesss Apr 24, 2023
61844e8
Merge pull request #80 from subindev-d/patch-1
danesss Apr 24, 2023
c5aca0a
Bump version
danesss Apr 24, 2023
337b3bf
added json schema (#88)
mattclarke May 9, 2023
cb1c270
added missing __init__ file
mattclarke May 9, 2023
3c2564c
bump version
mattclarke May 9, 2023
64c8c25
Deserialising ADAr populates the dimensions field (#90)
mattclarke Sep 8, 2023
07c6fcb
ADAr dimensions returned as a tuple
mattclarke Sep 8, 2023
255546d
Tests: Update python versions
danesss Jan 18, 2024
ed4178d
CI: Use local environment in pre-commit
danesss Jan 18, 2024
0d98d5e
Merge pull request #93 from ess-dmsc/update-python-versions
danesss Jan 18, 2024
43c9415
No longer need to push to anaconda
mattclarke Apr 12, 2024
2123654
Added ad00 as a replacement for ADAR (#94)
mattclarke Apr 18, 2024
bff89dc
remove unneeded import (#96)
mattclarke Apr 19, 2024
3e3cb29
Add da00 dataarray (#97)
mattclarke Apr 22, 2024
5a48070
bump version
mattclarke Apr 22, 2024
6aba8c1
new forwarder config schema (#98)
hurvan May 27, 2024
8002f7c
pump the version (#99)
hurvan May 27, 2024
4a6a8a1
Periodic value was always default (#100)
hurvan May 28, 2024
6f46023
pl72 defaults broker to empty string (#101)
mattclarke Jul 18, 2024
c7c879c
Remove confusing default value
mattclarke Oct 3, 2024
8e5fa47
[Add] AR51 readout data (de)serialiser
g5t Nov 26, 2024
598f7d8
conda isn't needed anymore (#104)
mattclarke Nov 29, 2024
bc83325
Add ansto ev44 alternative (#105)
mattclarke Jan 7, 2025
76206f5
Update requirements.txt
ggoneiESS Mar 24, 2025
6049256
Revert "Update requirements.txt"
ggoneiESS Mar 24, 2025
893d1fa
updated setup with requirements
ggoneiESS Mar 24, 2025
5a0a01b
Merge branch 'main' into add-ar51-readout-data
ggoneiESS Mar 27, 2025
fa2b49e
Merge pull request #103 from ess-dmsc/add-ar51-readout-data
ggoneiESS Mar 27, 2025
d17e73e
remove Jenkinsfile
milnowak Apr 25, 2025
bbd08e7
add un00 - engineering units
rerpha Jun 20, 2025
d804b4a
remove unused enum import, add pyproject.toml for build requires
rerpha Jun 24, 2025
c9936c5
Add stub
FreddieAkeroyd Oct 6, 2025
a059b3f
Merge pull request #1 from ISISComputingGroup/un00_engineering_units
rerpha Jan 20, 2026
df72896
create isis-streaming-data-types
rerpha Jan 20, 2026
0c2a86e
use numpy 2
rerpha Jan 20, 2026
3ac1ecb
review comments
rerpha Mar 4, 2026
19e3dbd
tidy
Tom-Willemsen Mar 4, 2026
cfc8d8d
Reference time not an array
Tom-Willemsen Mar 4, 2026
911678a
Add units
Tom-Willemsen Mar 4, 2026
90603ba
vetos
Tom-Willemsen Mar 4, 2026
667b2c8
Add source name
Tom-Willemsen Mar 4, 2026
8f5c358
doc
Tom-Willemsen Mar 4, 2026
7ea0bbb
Update reference_time field
Tom-Willemsen Mar 9, 2026
92c7add
Make vetos/periods/ppp optional
Tom-Willemsen Mar 11, 2026
a035040
Merge branch 'pu00_pulse_metadata' of https://github.com/isisComputin…
Tom-Willemsen Mar 11, 2026
9f8bfe5
delete c++ build tooling
Tom-Willemsen Mar 18, 2026
22cb8a4
Merge remote-tracking branch 'python-sdt/isis_streaming_data_types' i…
Tom-Willemsen Mar 18, 2026
2ebf59d
Delete schemas not used at ISIS and add rust bindings
Tom-Willemsen Mar 18, 2026
8a38841
Correct readme
Tom-Willemsen Mar 18, 2026
b1bc8e9
python: delete unused/obsolete schemas that will never be used at ISIS
Tom-Willemsen Mar 18, 2026
fefbf55
Merge remote-tracking branch 'origin/master' into packaging
Tom-Willemsen Mar 18, 2026
0eb2a16
adjust readme/GH config
Tom-Willemsen Mar 18, 2026
9876dc1
Add generated bindings
Tom-Willemsen Mar 18, 2026
56f669d
Maybe CI setup
Tom-Willemsen Mar 18, 2026
57716b8
Add ruff.toml
Tom-Willemsen Mar 18, 2026
5e0ec64
Remove ruff for now
Tom-Willemsen Mar 18, 2026
8440f1d
Delete pytest.ini
Tom-Willemsen Mar 19, 2026
8e8ffc3
no coverage
Tom-Willemsen Mar 19, 2026
7e7a8d5
Add unit tests
Tom-Willemsen Mar 19, 2026
c81d913
Add rust tests
Tom-Willemsen Mar 19, 2026
deb25c1
Correct CI
Tom-Willemsen Mar 19, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: 2
updates:
- package-ecosystem: "cargo"
directory: "rust/"
schedule:
interval: "monthly"
- package-ecosystem: "pip"
directory: "python/"
schedule:
interval: "monthly"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
64 changes: 64 additions & 0 deletions .github/workflows/Lint-and-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

on:
workflow_call:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
python-tests:
strategy:
matrix:
version: ['3.12', '3.13', '3.14']
os: ["ubuntu-latest", "windows-latest"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- name: Install uv and set the python version
uses: astral-sh/setup-uv@v7
with:
python-version: ${{ matrix.version }}
- name: Install dependencies
run: uv sync --all-extras --dev
working-directory: python
- name: Test with pytest
run: uv run pytest tests
working-directory: python
rust-tests:
strategy:
matrix:
os: ["ubuntu-latest", "windows-latest"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- name: install stable rust
run: rustup install stable
working-directory: rust
- name: Format check
run: cargo fmt --check
working-directory: rust
- name: Clippy
run: cargo clippy -- --deny warnings
working-directory: rust
- name: Tests
run: cargo test
working-directory: rust
- name: Package
run: cargo package
working-directory: rust
results:
if: ${{ always() }}
runs-on: ubuntu-latest
name: Final Results
needs: [python-tests, rust-tests]
steps:
- run: exit 1
# see https://stackoverflow.com/a/67532120/4907315
if: >-
${{
contains(needs.*.result, 'failure')
|| contains(needs.*.result, 'cancelled')
}}
9 changes: 9 additions & 0 deletions .github/workflows/lint-and-test-nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: lint-and-test-nightly
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:

jobs:
lint-and-test-nightly:
uses: ./.github/workflows/Lint-and-test.yml
127 changes: 127 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
name: Publish
on: push
jobs:
py-build:
if: github.ref_type == 'tag'
name: build distribution
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.13"
- name: Install pypa/build
run: >-
python3 -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: python3 -m build
working-directory: python
- name: Store the distribution packages
uses: actions/upload-artifact@v6
with:
name: python-package-distributions
path: python/dist/
rust-build:
if: github.ref_type == 'tag'
name: build distribution
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v6
- name: install stable rust
run: rustup install stable
- name: Format check
run: cargo fmt --check
- name: Clippy
run: cargo clippy -- --deny warnings
- name: Tests
run: cargo test
- name: set version
run: |
export VERSION=${{ github.ref_name }}
sed -i "s/0.0.0/$VERSION/g" Cargo.toml
- name: publish
run: cargo publish --dry-run --allow-dirty
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

publish-to-pypi:
name: >-
Publish Python distribution to PyPI
if: github.ref_type == 'tag'
needs: [py-build, rust-build] # Don't publish anything until both python & rust builds pass...
runs-on: ubuntu-latest
environment:
name: release
url: https://pypi.org/p/isis-streaming-data-types
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
steps:
- name: Download all the dists
uses: actions/download-artifact@v7
with:
name: python-package-distributions
path: python/dist/
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: python/

publish-to-crates-io:
name: >-
Publish Rust distribution to crates.io
runs-on: ubuntu-latest
if: github.ref_type == 'tag'
needs: [py-build, rust-build] # Don't publish anything until both python & rust builds pass...
steps:
- name: publish
run: cargo publish --allow-dirty
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

github-release:
name: >-
Sign the Python distribution with Sigstore
and upload them to GitHub Release
needs: [py-build, publish-to-pypi, rust-build, publish-to-crates-io]
runs-on: ubuntu-latest

permissions:
contents: write # IMPORTANT: mandatory for making GitHub Releases
id-token: write # IMPORTANT: mandatory for sigstore

steps:
- name: Download all the dists
uses: actions/download-artifact@v7
with:
name: python-package-distributions
path: python/dist/
- name: Sign the dists with Sigstore
uses: sigstore/gh-action-sigstore-python@v3.2.0
with:
inputs: >-
./python/dist/*.tar.gz
./python/dist/*.whl
- name: Create GitHub Release
env:
GITHUB_TOKEN: ${{ github.token }}
run: >-
gh release create
'${{ github.ref_name }}'
--repo '${{ github.repository }}'
--notes ""
- name: Upload artifact signatures to GitHub Release
env:
GITHUB_TOKEN: ${{ github.token }}
# Upload to GitHub Release using the `gh` CLI.
# `dist/` contains the built packages, and the
# sigstore-produced signatures and certificates.
run: >-
gh release upload
'${{ github.ref_name }}' python/dist/**
--repo '${{ github.repository }}'
139 changes: 138 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,139 @@
#directories
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
# Translations
*.mo
*.pot

# macOS artifacts
*.DS_Store

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# PyCharm
.idea

# VSCode
.vscode

python/src/streaming_data_types/_version.py
37 changes: 0 additions & 37 deletions CMakeLists.txt

This file was deleted.

Loading