Skip to content

Commit 693425b

Browse files
Alex-1089eeisegn
andauthored
dt-url-markdown (#148)
* Updated version to 1.31.5. Added DT url to markdown summary. * updated protobuf api definitions * add missing grpc dependency * increase arg limit to 6 * update declared components --------- Co-authored-by: eeisegn <[email protected]>
1 parent e1320cc commit 693425b

30 files changed

+1581
-403
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99
### Added
1010
- Upcoming changes...
1111

12+
## [1.31.5] - 2025-08-27
13+
### Added
14+
- Added jira markdown option for DT
15+
- Added Dependency Track project link to markdown summary
16+
- Updated protobuf client definitions
17+
- Added date field to `scanoss-py comp versions` response
18+
1219
## [1.31.4] - 2025-08-20
1320
### Added
1421
- Added support for empty dependency track project policy checks
@@ -648,3 +655,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
648655
[1.31.2]: https://github.com/scanoss/scanoss.py/compare/v1.31.1...v1.31.2
649656
[1.31.3]: https://github.com/scanoss/scanoss.py/compare/v1.31.2...v1.31.3
650657
[1.31.4]: https://github.com/scanoss/scanoss.py/compare/v1.31.3...v1.31.4
658+
[1.31.5]: https://github.com/scanoss/scanoss.py/compare/v1.31.4...v1.31.5

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ line-ending = "auto"
2424
known-first-party = ["scanoss"]
2525

2626
[tool.ruff.lint.pylint]
27-
max-args = 5
27+
max-args = 6

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ packageurl-python
1313
pathspec
1414
jsonschema
1515
crc
16-
16+
protoc-gen-openapiv2
1717
cyclonedx-python-lib[validation]

scanoss.json

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
{
22
"settings": {
33
"skip": {
4-
"patterns": {},
4+
"patterns": {
5+
"scanning": [
6+
"src/protoc_gen_swagger/",
7+
"src/scanoss/api/",
8+
"docs/make.bat"
9+
]
10+
},
511
"sizes": {}
612
}
713
},
@@ -10,24 +16,6 @@
1016
{
1117
"purl": "pkg:github/scanoss/scanoss.py"
1218
}
13-
],
14-
"remove": [
15-
{
16-
"path": "docs/make.bat",
17-
"purl": "pkg:github/twilight-logic/ar488"
18-
},
19-
{
20-
"path": "src/protoc_gen_swagger/options/annotations_pb2_grpc.py",
21-
"purl": "pkg:pypi/bauplan"
22-
},
23-
{
24-
"path": "src/protoc_gen_swagger/options/openapiv2_pb2_grpc.py",
25-
"purl": "pkg:pypi/bauplan"
26-
},
27-
{
28-
"path": "src/scanoss/api/common/v2/scanoss_common_pb2_grpc.py",
29-
"purl": "pkg:pypi/bauplan"
30-
}
3119
]
3220
}
3321
}

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ install_requires =
3939
pathspec
4040
jsonschema
4141
crc
42+
protoc-gen-openapiv2
4243
cyclonedx-python-lib[validation]
4344

44-
4545
[options.extras_require]
4646
fast_winnowing =
4747
scanoss_winnowing>=0.5.0

src/scanoss/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@
2222
THE SOFTWARE.
2323
"""
2424

25-
__version__ = '1.31.4'
25+
__version__ = '1.31.5'

src/scanoss/api/common/v2/scanoss_common_pb2.py

Lines changed: 47 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,24 @@
11
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
22
"""Client and server classes corresponding to protobuf-defined services."""
33
import grpc
4+
import warnings
45

6+
7+
GRPC_GENERATED_VERSION = '1.73.1'
8+
GRPC_VERSION = grpc.__version__
9+
_version_not_supported = False
10+
11+
try:
12+
from grpc._utilities import first_version_is_lower
13+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
14+
except ImportError:
15+
_version_not_supported = True
16+
17+
if _version_not_supported:
18+
raise RuntimeError(
19+
f'The grpc package installed is at version {GRPC_VERSION},'
20+
+ f' but the generated code in scanoss/api/common/v2/scanoss_common_pb2_grpc.py depends on'
21+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
22+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
23+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
24+
)

0 commit comments

Comments
 (0)