Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 2.0.0 #301

Closed
wants to merge 200 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
200 commits
Select commit Hold shift + click to select a range
9ec0787
update package_info.json
Svyat935 Sep 5, 2022
4a083c7
[TH2-4123]: Separate the core part from the business one
Turikotura Sep 8, 2022
0e53fba
Merge pull request #164 from th2-net/TH2-4123-separating-the-core
ConnectDIY Sep 13, 2022
e1ce358
Getting parent of invalid EventsTree ojbect raises EventIdNotInTree
xHacka Sep 13, 2022
b957677
Updated release_notes
xHacka Sep 13, 2022
2fc8d42
Merge branch 'dev_2.0.0' into TH2-4195-attribute-error-is-raised-when…
xHacka Sep 13, 2022
86dc953
Merge pull request #166 from th2-net/TH2-4195-attribute-error-is-rais…
xHacka Sep 14, 2022
e766c2c
Updated release_notes with v0.6.3
xHacka Sep 14, 2022
c6cb224
Release branches are now available for build packages
xHacka Sep 14, 2022
6a96bc6
Merge pull request #167 from th2-net/TH2-3183-ds-release-0-6-3
xHacka Sep 15, 2022
c37cbdc
Updated pip install (#169)
xHacka Sep 22, 2022
de29f97
[TH2-4234] Updated release_notes (#174)
xHacka Oct 4, 2022
c172c6a
Changed old imports and added new ones
Oct 25, 2022
0260971
Merge pull request #175 from th2-net/Fix_interface_init_file
ConnectDIY Oct 25, 2022
0d6283a
Added IAdaptableCommand (#176)
Turikotura Oct 26, 2022
02df48a
Added exceptions.py
Turikotura Oct 26, 2022
c829c42
Merge pull request #177 from th2-net/Add_exceptions
ConnectDIY Oct 26, 2022
29784a8
Changed imports from provider
Turikotura Oct 28, 2022
609dd40
Merge pull request #182 from th2-net/Remove_provider_imports_from_ETC
ConnectDIY Nov 1, 2022
2038db3
Th2 4185 develop data source documentation (#180)
Turikotura Nov 11, 2022
2019f86
Merge 1.3.0 release to dev 2.0.0, th2 4398 (#198)
ConnectDIY Nov 25, 2022
1026ed0
Add handle_stream method to Adapter interface
ConnectDIY Dec 1, 2022
282782a
Add handle_stream method to Adapter interface #199
ConnectDIY Dec 1, 2022
a845c02
Return sse_client (#200)
Turikotura Dec 2, 2022
2a72a0a
Added decode error handler (#201)
Turikotura Dec 6, 2022
afdb3f3
Add lwdp2 dependency
ConnectDIY Dec 8, 2022
42de70f
Merge remote-tracking branch 'origin/dev_2.0.0' into dev_2.0.0
ConnectDIY Dec 8, 2022
6ca31f9
TH2-4601 Add clear cache feature (#204)
ConnectDIY Dec 29, 2022
626981e
Th2 4603 fix iadd feature (#205)
ConnectDIY Dec 29, 2022
db1b636
Th2 4604 from cache dont provide return value (#206)
ConnectDIY Dec 29, 2022
cbdc280
metadata Added (#210)
xHacka Jan 3, 2023
aa7908d
Th2 4490 Add data map_stream method (#202)
xHacka Jan 4, 2023
ca13dae
Data obj map method can use adapters (#211)
xHacka Jan 4, 2023
6851b76
ITimestampConverter now handles milliseconds & DatetimeStringConverte…
xHacka Jan 9, 2023
b1f4e59
Fix Datetime converter bug (#215)
ConnectDIY Jan 13, 2023
05a3de0
TH2-4646 Data objects inherit data.metadata (#214)
xHacka Jan 16, 2023
4f92190
Removed notebook (#216)
Turikotura Jan 18, 2023
953ba4f
Remove IAdaptableCommand because we don't use this more
ConnectDIY Jan 19, 2023
c59c5e7
Add easy access to converters
ConnectDIY Jan 19, 2023
8b26ec8
Update pre-commit structure
ConnectDIY Jan 19, 2023
211d04a
Add unittests running
ConnectDIY Jan 19, 2023
6dcddce
Add unittests running
ConnectDIY Jan 19, 2023
bbf8ffc
Add unittests running
ConnectDIY Jan 19, 2023
36508c9
Move importlib_metadata requirement to dev req
ConnectDIY Jan 19, 2023
bf54c2c
Dependabot update
ConnectDIY Jan 19, 2023
403922a
Pre commit fixes
ConnectDIY Jan 19, 2023
802e33e
Improve adapter methods description
ConnectDIY Jan 19, 2023
c67743b
Moved sse client files to utils (#218)
Turikotura Jan 20, 2023
7af1341
Th2 4674 move current behaviour to bridge pattern (#220)
ConnectDIY Jan 20, 2023
9d649b5
Updated demo example script (#222)
Turikotura Jan 23, 2023
1718ed5
Add Data obj type hint for return value
ConnectDIY Jan 24, 2023
3511f64
Th2 4129 update readme (#223)
Turikotura Jan 25, 2023
dec63d3
events_tree package to event_tree
ConnectDIY Jan 25, 2023
86d60c9
fix expected msg type for build
ConnectDIY Jan 26, 2023
eb97c81
Th2 4649 add unit tests for etc petc (#219)
xHacka Feb 9, 2023
eb17988
Th2 4711 fix etc max count parameter (#224)
xHacka Feb 9, 2023
c2c6cb8
Th2 4744 update to package namespaces (#227)
Turikotura Feb 13, 2023
b1e7d70
Th2 4648 add examples to get started example (#221)
xHacka Feb 13, 2023
89b4e4f
Th2 4754 add copyright (#229)
Turikotura Feb 15, 2023
874dbee
Th2 4803 add vulnerabilities scanning (#238)
Turikotura Feb 24, 2023
8f6ddc9
Updated EventNotFound
Turikotura Mar 6, 2023
87f3aac
Updated MessageNotFound
Turikotura Mar 9, 2023
0df5106
Fixed FileExistsError
Turikotura Mar 14, 2023
59594aa
Updated test
Turikotura Mar 14, 2023
9f842cf
Merge pull request #244 from th2-net/TH2-4839_file_exists_error_doesn…
ConnectDIY Mar 14, 2023
bb79b13
Updated error return value
Turikotura Mar 14, 2023
1cea0a4
Merge branch 'dev_2.0.0' into TH2-4828_add_error_info_to_EventNotFoun…
ConnectDIY Mar 16, 2023
154d912
Merge pull request #240 from th2-net/TH2-4828_add_error_info_to_Event…
ConnectDIY Mar 16, 2023
a94a83c
Add current AZ utils snapshot from 1.4.0 (#247)
ConnectDIY Mar 29, 2023
e8eab19
Use options.X instead of X = options.X
ConnectDIY Mar 29, 2023
2259bce
Fix options
ConnectDIY Mar 29, 2023
0ba77a7
Little improvements
ConnectDIY Mar 29, 2023
b37429a
Fix pre-commit
ConnectDIY Mar 29, 2023
20f0502
Remove download_data
ConnectDIY Mar 30, 2023
93c12cb
Merge remote-tracking branch 'origin/dev_2.0.0' into dev_2.0.0
ConnectDIY Mar 30, 2023
7d4e2a8
Fix get_category_totals2
ConnectDIY Mar 30, 2023
c99ee45
Add lwdp-dev plugin
ConnectDIY Mar 30, 2023
1c08e25
Changed back to th2_data_services (#248)
Turikotura Mar 30, 2023
28ae2f4
Merge remote-tracking branch 'origin/dev_2.0.0' into dev_2.0.0
ConnectDIY Mar 30, 2023
cce4d50
Update release_notes.md (#249)
Turikotura Apr 3, 2023
2223119
Update release_notes.md
Turikotura Apr 3, 2023
67f6c8a
Small formating fix
Turikotura Apr 6, 2023
2aed3c7
fix expand_message (#250)
alexander-zhilov Apr 6, 2023
2fd35bf
add get_category_examples_p from https://github.com/th2-net/th2-data-…
alexander-zhilov Apr 10, 2023
8e70eb6
Speed up Data.build_cache by disabling garbage collection (#252)
ConnectDIY Apr 21, 2023
95d0ec7
Added from_json (#253)
Turikotura Apr 24, 2023
0a5a822
Fix pretty_table
ConnectDIY May 5, 2023
a79ca5c
Improve table row
ConnectDIY May 9, 2023
c0468de
Add TotalCategoryTable.transpose_column
ConnectDIY May 9, 2023
cd3e03f
Fix transpose_column method
ConnectDIY May 9, 2023
2cc9901
Sort transposed columns
ConnectDIY May 9, 2023
d649b98
Add json_tree module, az_tree module is deprecated (#254)
ConnectDIY May 16, 2023
ec13a2d
Add more docs for tables filter
ConnectDIY May 16, 2023
6929383
Fix import
ConnectDIY May 16, 2023
9563cc5
Fix py < 3.9 compatibility
ConnectDIY May 24, 2023
68363b5
Add Data.from_any_file method (#256)
ConnectDIY May 25, 2023
2b89dca
Th2 4917 readme updater was broken (#257)
xHacka May 26, 2023
572d67b
TH2-4928 - Add read CSV method (#258)
ConnectDIY May 30, 2023
c785815
Add info about new bug TH2-4930
ConnectDIY May 30, 2023
7958a5c
Fix stub builder
ConnectDIY May 31, 2023
44e430e
TH2-4932 - Add Data.to_json method (#259)
xHacka May 31, 2023
45c3195
Low fixes
ConnectDIY Jun 9, 2023
c06950f
Remove types-protobuf from requirements
ConnectDIY Jun 9, 2023
646ea0b
TH2 4957 - add gzip to from json (#261)
Turikotura Jun 19, 2023
89b9534
Added to_csv method to perfect table (#262)
Turikotura Jun 19, 2023
e4e4c20
Update perfect_table.py (#263)
Turikotura Jun 20, 2023
2c40564
TODO fix
ConnectDIY Jun 19, 2023
6cccd4d
Add sorting by provided columns for TotalTable
ConnectDIY Jun 20, 2023
28cbc75
Add utils.converters.flatten_dict
ConnectDIY Jun 21, 2023
97a2fb1
Add `Data.to_jsons` method
ConnectDIY Jun 28, 2023
4f41e20
Rename Resolver class names, add SubMessageFieldResolver
ConnectDIY Jun 28, 2023
49e5bb7
Refactoring
ConnectDIY Jul 10, 2023
e13f8b6
Utils improvements
ConnectDIY Jul 18, 2023
3f6d969
Add Best practices to readme
ConnectDIY Aug 1, 2023
fc58cae
Update toc
ConnectDIY Aug 1, 2023
4086697
Fixes
ConnectDIY Aug 7, 2023
40d2ca2
TH2-5027 - expand_message moved into MessageFieldResolver (#265)
xHacka Aug 9, 2023
b946beb
Filename fix json tree (#266)
ConnectDIY Aug 18, 2023
0629200
Fix expand_message
ConnectDIY Aug 17, 2023
c61bc90
Added frequency table data (#268)
Turikotura Aug 24, 2023
c93a397
Add totals Column & freq total line in the footer FrequencyCategoryTa…
ConnectDIY Aug 24, 2023
54ea833
Add efr, mfr, smfr aliases to options
ConnectDIY Aug 24, 2023
76b92ba
Add more documentation to resolver
ConnectDIY Aug 24, 2023
3717d75
message_utils fixes and improvements
ConnectDIY Aug 24, 2023
a596e04
Fix pipeline
ConnectDIY Aug 25, 2023
6e307cf
TH2-4901 - Fixed timestamp bug and implement 6 modes freq. table (#255)
Turikotura Aug 25, 2023
db1125b
Th2 4901 frequency update for events (#270)
Turikotura Aug 25, 2023
56f0f97
Improve Data.build_cache & public path utils
ConnectDIY Aug 28, 2023
c7d667a
Add printing of the message if exception was during filtering
ConnectDIY Aug 28, 2023
b412153
Add calculate time Decorator
ConnectDIY Aug 29, 2023
40162cd
Add internal perftest for cache files
ConnectDIY Aug 30, 2023
2218ba8
Fix flatten_dict & run pre-commit for all files
ConnectDIY Aug 31, 2023
2b33c55
Update req flatdict version
ConnectDIY Aug 31, 2023
fb216a6
Fix ExpandedMessageFieldResolver
ConnectDIY Aug 31, 2023
e20ccab
Fix ExpandedMessageFieldResolver
ConnectDIY Aug 31, 2023
deb8aff
TH2-5048 & TH2-5049 - Added new resolver and typing hints (#271)
Turikotura Aug 31, 2023
206873f
Merge remote-tracking branch 'origin/dev_2.0.0' into dev_2.0.0
ConnectDIY Aug 31, 2023
1b670f8
Recon-lw related changes (#272)
ConnectDIY Sep 1, 2023
2dd4efd
TH2-5053 - Added pickle version to Data.from_cache_file method (#273)
Turikotura Sep 21, 2023
dec99d6
Remove useless empty print
ConnectDIY Sep 21, 2023
bc93471
Add low comment to perf_tests
ConnectDIY Sep 27, 2023
61161f9
Pickles task improvements -- TH2-5053
ConnectDIY Oct 11, 2023
8c8d266
th2 5085 windows filename bug (#275)
Turikotura Oct 11, 2023
84cb112
Fix parsing of non-ascii character (#277)
ConnectDIY Oct 13, 2023
4b47f77
Docstring refactoring
ConnectDIY Oct 17, 2023
3263757
TH2-5093 Fix json tree generation (#279)
Turikotura Oct 20, 2023
78b3c58
Added lwdp3 option; (#281)
Turikotura Oct 27, 2023
5cdea09
A few improvements
ConnectDIY Jan 12, 2024
eeb1e00
Merge remote-tracking branch 'origin/dev_2.0.0' into dev_2.0.0
ConnectDIY Jan 12, 2024
24d86d4
Fix CI
ConnectDIY Jan 12, 2024
2e439db
Time functions refactoring
ConnectDIY Jan 18, 2024
df352a4
Th2 5156 add new timestamp converters (#282)
Turikotura Feb 16, 2024
a3549e4
Update release_notes.md
ConnectDIY Feb 16, 2024
67877e8
Type hint and doc improvements
ConnectDIY Feb 20, 2024
ee37329
Docs improvements
ConnectDIY Feb 20, 2024
700ae66
Improve `Data.from_csv`
ConnectDIY Feb 22, 2024
a6aaa07
Remove ru text
ConnectDIY Feb 22, 2024
e0a0786
Add examples for utility functions (#283)
davitmamrikishvili Feb 22, 2024
d5b4f70
TH2-5172 - Add faster implementations of following ProtobufTimestampC…
davitmamrikishvili Mar 4, 2024
a3fb441
TH2-5167 - Add is_sorted functions (#284)
davitmamrikishvili Mar 5, 2024
ee84a56
Speed up Jsons writing
ConnectDIY Mar 11, 2024
d920963
th2-5176 - Add to_th2_timestamp (#286)
davitmamrikishvili Mar 19, 2024
a9ff41e
Rename `to_jsons` to `to_json_lines`
ConnectDIY Apr 11, 2024
680254a
Refactoring
ConnectDIY Apr 11, 2024
e24876c
Add performance tests
ConnectDIY Apr 11, 2024
334ae40
TH2-5081 - Added new iteration logic and updated map functions (#276)
Turikotura Apr 16, 2024
cb22aa0
Merge remote-tracking branch 'origin/dev_2.0.0' into dev_2.0.0
ConnectDIY Apr 16, 2024
234231f
Upd release notes
ConnectDIY Apr 16, 2024
2ececdb
Refactoring
ConnectDIY Apr 22, 2024
bda4100
TH2-5190 - Fix Data.to_json (#288)
davitmamrikishvili Apr 25, 2024
1d7082b
Fix Data.show with n == -1
ConnectDIY Apr 25, 2024
dede507
Raise up `orjson` lib and python version to 3.8
ConnectDIY May 3, 2024
f8ee47b
Fix CI
ConnectDIY May 3, 2024
ad0e711
Fix FreqCategoryTable header sorting
ConnectDIY May 3, 2024
81c9118
Add the function `read_all_pickle_files_from_the_folder` [TH2-5197]
ConnectDIY May 3, 2024
26d8eaa
Apply Ruff check
ConnectDIY May 6, 2024
553a382
Bug fix
ConnectDIY May 6, 2024
b111bff
Add `transform_filepath_to_valid` function
ConnectDIY May 7, 2024
5f0f6a5
Add `to_seconds` method to converters
ConnectDIY May 9, 2024
d2d4e89
Bug fixes
ConnectDIY May 9, 2024
2525f59
Improve Data repr
ConnectDIY May 9, 2024
3bc6991
TH2-5201 - Fix DatetimeStringConverter.to_th2_timestamp() (#289)
davitmamrikishvili May 16, 2024
a8722fa
TH2-5202 - Fix cache file removal bug (#290)
davitmamrikishvili May 20, 2024
6b811a5
Improve `check_if_file_exists` output if error
ConnectDIY May 20, 2024
e391301
Improve data object warnings
ConnectDIY Jun 17, 2024
7866fdd
Fix typing
ConnectDIY Jun 17, 2024
61779cb
Add metadata to Data obj returned by `read_all_pickle_files_from_the_…
ConnectDIY Jun 19, 2024
e2a25cb
Improve typing
ConnectDIY Jun 24, 2024
2714be6
Extend the test to use csv (#291)
davitmamrikishvili Jul 8, 2024
5815cda
Fix bug in Data.metadata() (#292)
davitmamrikishvili Jul 12, 2024
46a56b2
Add vulnerability check for unpinned dependencies (#293)
ConnectDIY Jul 17, 2024
e805f32
Data.metadata bug fixes (#278)
Turikotura Aug 1, 2024
2a8fec3
Update __add__, __iadd__ (#294)
davitmamrikishvili Aug 5, 2024
90b3225
Added build-snapshot (#297)
Nikita-Smirnov-Exactpro Sep 17, 2024
55ccedc
Refactoring and improvements
ConnectDIY Oct 21, 2024
2ac8a76
Merge remote-tracking branch 'origin/dev_2.0.0' into dev_2.0.0
ConnectDIY Oct 21, 2024
c467928
Add Data.sort() (#296)
davitmamrikishvili Nov 11, 2024
34e793a
Fix tests in CI
ConnectDIY Nov 11, 2024
fd5755b
Improve comments, copyright + tests
ConnectDIY Feb 7, 2025
ea89965
TH2-5099 FIx big-performance-degradation when-we-have-many-data-files…
davitmamrikishvili Feb 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
24 changes: 24 additions & 0 deletions .github/workflows/ci-test-dependecies.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: CI Dependencies Test

on:
pull_request:
branches:
- master
- release_*

jobs:
test:
strategy:
matrix:
# providers: [ rdp, rdp5, rdp6, lwdp, lwdp1 ]
providers: [ lwdp, lwdp1 ]
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
pip install th2-data-services[${{ matrix.providers }}]
- name: Test dependencies
run: |
pip install pytest -q
pytest tests/tests_unit/test_dependencies/ --provider=${{ matrix.providers }}
27 changes: 27 additions & 0 deletions .github/workflows/ci-test-dev-dependecies.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: CI Dev Dependencies Test

on:
pull_request:
branches:
- dev_*
- TH2-*
- th2-*
- pypi_*

jobs:
test:
strategy:
matrix:
# providers: [ rdp, rdp5, rdp6, lwdp, lwdp1 ]
providers: [ lwdp, lwdp1 ]
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
# Install Package From Local Directory
pip install --pre -e .[${{ matrix.providers }}]
- name: Test dependencies
run: |
pip install pytest -q
pytest tests/tests_unit/test_dependencies/ --provider=${{ matrix.providers }}
36 changes: 36 additions & 0 deletions .github/workflows/ci-tests-py310.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CI tests Py 3.10 (for master only)

on:
push:
branches:
- master

jobs:
test:
name: Run tests
runs-on: ubuntu-20.04

strategy:
matrix:
py_version: [ '3.10' ]

steps:
- uses: actions/checkout@v2

- name: Set up Python ${{ matrix.py_version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.py_version }}
architecture: x64

- name: Install dependencies
run: |
pip install -r requirements.txt
pip install pytest
pip install pytest-xdist
pip install th2-data-services-lwdp==2.0.2.0 # To test utils. Utils imports resolvers

- name: Test with pytest
run: |
export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python
bash run_unit_tests.sh
38 changes: 26 additions & 12 deletions .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,38 @@
name: CI tests

on:
pull_request:
# pull_request: # It duplicates push in PRs
push:

jobs:
test:
runs-on: ubuntu-20.04
name: Run tests

strategy:
matrix:
py_version: [ '3.8', '3.9' ]
os: [ ubuntu-20.04, windows-latest ]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v1

- name: Set up Python ${{ matrix.py_version }}
uses: actions/setup-python@v4
with:
python-version: 3.7
python-version: ${{ matrix.py_version }}
architecture: x64

- name: Install dependencies
run: |
pip install -r requirements.txt
pip install importlib importlib-metadata
- name: Test with pytest
run: |
pip install --pre -e . -q
pip install pytest
cd tests
python unittestV5.py
python unittestV6.py
pip install pytest-xdist
pip install th2-data-services-lwdp==2.0.3.0 # To test utils. Utils imports resolvers

- name: unit tests
run: |

pip list
pytest tests/tests_unit -n auto --ignore tests/tests_unit/test_dependencies/
30 changes: 15 additions & 15 deletions .github/workflows/ci-unwelcome-words.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
name: CI Unwelcome words

on:
pull_request:
push:

jobs:
test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.sha }}
- name: Checkout tool
uses: actions/checkout@v2
with:
repository: exactpro-th2/ci-github-action
ref: master
token: ${{ secrets.PAT_CI_ACTION }}
path: ci-github-action
- name: Run CI action
uses: ./ci-github-action
with:
ref: ${{ github.sha }}
- uses: actions/checkout@v4
with:
ref: ${{ github.sha }}
- name: Checkout tool
uses: actions/checkout@v4
with:
repository: exactpro-th2/ci-github-action
ref: master
token: ${{ secrets.PAT_CI_ACTION }}
path: ci-github-action
- name: Run CI action
uses: ./ci-github-action
with:
ref: ${{ github.sha }}
57 changes: 0 additions & 57 deletions .github/workflows/dev-build-to-pypi.yml

This file was deleted.

20 changes: 20 additions & 0 deletions .github/workflows/publish-release-candidate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: check and publish release candidate Python tarball to PyPi

on: workflow_dispatch

jobs:
build-job:
name: Check and publish snapshot tarball to PyPi
uses: th2-net/.github/.github/workflows/compound-python.yml@main
with:
release-type: release-candidate
style-check-enabled: false
strict-style-check: false
python-check-versions: "['3.8', '3.9', '3.10', '3.11', '3.12']"
test-dir: tests/tests_unit
test-ignore-dir: tests/tests_unit/test_dependencies/
test-requirements-files: requirements_dev.txt, requirements.txt
create-tag: true

secrets:
pypi-password: ${{ secrets.PYPI_PASSWORD }}
20 changes: 20 additions & 0 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: check and publish release Python tarball to PyPi

on: workflow_dispatch

jobs:
build-job:
name: Check and publish snapshot tarball to PyPi
uses: th2-net/.github/.github/workflows/compound-python.yml@main
with:
release-type: release
style-check-enabled: false
strict-style-check: false
python-check-versions: "['3.8', '3.9', '3.10', '3.11', '3.12']"
test-dir: tests/tests_unit
test-ignore-dir: tests/tests_unit/test_dependencies/
test-requirements-files: requirements_dev.txt, requirements.txt
create-tag: true

secrets:
pypi-password: ${{ secrets.PYPI_PASSWORD }}
25 changes: 25 additions & 0 deletions .github/workflows/publish-snapshot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: check and publish snapshot Python tarball to PyPi

on:
push:
branches:
- dev_*
- pypi_*
paths-ignore:
- README.md

jobs:
build-job:
name: Check and publish snapshot tarball to PyPi
uses: th2-net/.github/.github/workflows/compound-python.yml@main
with:
release-type: development
style-check-enabled: false
strict-style-check: false
python-check-versions: "['3.8', '3.9', '3.10', '3.11', '3.12']"
test-dir: tests/tests_unit
test-ignore-dir: tests/tests_unit/test_dependencies/
test-requirements-files: requirements_dev.txt, requirements.txt

secrets:
pypi-password: ${{ secrets.PYPI_PASSWORD }}
37 changes: 0 additions & 37 deletions .github/workflows/pypi-publish.yaml

This file was deleted.

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
th2/data_services/utils/__init__.py
th2/data_services/utils/json.py

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand Down
Loading
Loading