Commit Graph

1910 Commits (78c2c3dd37b28446a1e43a699f61675d52fde5f8)

Author SHA1 Message Date
Alexandre Dulaunoy 78c2c3dd37
chg: [doc] why the fuck did OASIS choose RST markup format
YES I WILL CHANGE IT MARKDOWN VERY SOON!
2022-08-24 16:28:19 +02:00
Alexandre Dulaunoy 2a0078e4f3
chg: [doc] module reference added 2022-08-24 16:27:17 +02:00
Alexandre Dulaunoy fe28f355dc
Merge branch 'main' of github.com:MISP/cti-python-stix2 into main 2022-08-24 16:26:11 +02:00
Alexandre Dulaunoy 8079b4218d
chg: [CONTRIBUTING] updated 2022-08-24 16:25:57 +02:00
Christian Studer 5190f9de5f
Merge pull request #2 from Kagee/patch-2
Don't make python2-wheel
2022-08-24 11:50:38 +02:00
Anders Einar Hilden ed57acf391
Don't make python2-wheel
https://buildmedia.readthedocs.org/media/pdf/wheel/stable/wheel.pdf:
````
If you want to make universal (Python 2/3 compatible, pure Python) wheels, add the following section to your setup.
cfg:
[bdist_wheel]
universal = 1
````
2022-08-24 11:48:46 +02:00
Christian Studer f09b4bf50b
fix: [package] Bumped latest package version 2022-08-24 10:52:51 +02:00
Christian Studer 7baa967aee
fix: [doc] Updated Python requirements 2022-08-24 09:39:43 +02:00
Alexandre Dulaunoy 2be2e749bc
chg: [doc] fix RST markup 2022-08-24 09:32:42 +02:00
Alexandre Dulaunoy 0f29ae5fd5
chg: [doc] updated to reference the MISP fork 2022-08-24 09:30:31 +02:00
Christian Studer bf827bb6eb
Merge pull request #1 from Kagee/patch-1 2022-08-24 01:03:13 +02:00
Anders Einar Hilden 57d4a24ac0
Mansonry is not the same as Masonry
mansonry, British English, noun, mansions or dwelling places collectively.
masonry, uncountable noun, masonry is bricks or pieces of stone which have been stuck together with cement as part of a wall or building.
2022-08-23 21:04:41 +02:00
Christian Studer 9da397f163
chg: [package] Updated the classifiers and package name 2022-08-23 11:58:58 +02:00
Christian Studer 75a281dfe4
add: [poetry] Added poetry to facilitate the package management 2022-08-22 22:24:32 +02:00
Christian Studer f6a53d1524 Merge branch 'master' of github.com:oasis-open/cti-python-stix2 2022-08-22 14:49:45 +02:00
Emily Ratliff 20bef319a2
Merge pull request #553 from jweissm/test_harness
Test harness update
2022-08-02 10:54:59 -05:00
Emily Ratliff 56396119e6
Merge pull request #542 from chisholm/fix_detect_spec_version
Fix detect_spec_version() with respect to 2.0 bundles
2022-08-02 10:54:10 -05:00
Emily Ratliff dd3a3a0315
Merge pull request #551 from oasis-open/update-maintainers
Update maintainers list
2022-08-01 11:19:04 -05:00
Joshua Weiss aab27b6559
Update python-ci-tests.yml 2022-08-01 09:48:21 -04:00
jweissm 07dddd1ac1 added python 3.10 to test harness removed 3.6 2022-07-29 07:22:46 -07:00
Chris Lenk 3ab3a9c33f Update maintainers list 2022-07-13 15:10:48 -04:00
Christian Studer 625576622f
fix: [interoperability] Added missing `interoperability` param to Property classes that need it 2022-05-23 14:48:11 +02:00
Christian Studer 276410537d
chg: [interoperability] The interoperability is managed directly within the needed properties 2022-05-23 11:54:41 +02:00
Christian Studer 9a966f45c3
chg: [interoperability] Removed changes on interoperability parameters
- Since the code changed a lot, there is no longer
  need to deal with it in the classes defined in
  the files concerned here
2022-05-23 11:46:54 +02:00
Christian Studer d229bd3cd1 Merge branch 'master' of github.com:oasis-open/cti-python-stix2 2022-05-16 10:35:51 +02:00
Chris Lenk aac27374b3
Merge pull request #545 from chisholm/complete_pattern_visitor
Complete pattern visitor
2022-05-02 11:00:34 -04:00
Michael Chisholm 3dba3f74f9 Fix more pre-commit style issues. 2022-04-28 21:39:59 -04:00
Michael Chisholm 724122db65 pre-commit styling changes 2022-04-28 21:23:05 -04:00
Michael Chisholm e534e41865 Complete the addition of AST node class override support which
was begun by frank7y.  Added some unit tests.

Also address a design flaw which prevented the AST builder
function create_pattern_object() from honoring module_suffix
and module_name parameters after the first call.
2022-04-28 21:10:12 -04:00
Michael Chisholm b5260c95f6 Fix utils.detect_spec_version() to use presence of the
spec_version property in a bundle to infer spec version, not
the property's value.  Update unit tests accordingly.
2022-02-18 21:33:13 -05:00
chrisr3d eea34ebbb5
fix: [interoperability] Avoiding validation issues with extensions properties 2022-02-10 20:41:57 +01:00
chrisr3d 6ec45d863c
fix: [interoperability] Added missing interoperability flag in Observable Objects v2.1 2022-02-10 20:41:06 +01:00
chrisr3d 7dda3375fd Merge branch 'master' of github.com:oasis-open/cti-python-stix2 into main 2022-02-09 21:10:13 +01:00
francescosettanni 1e4b6caf3f improved pattern visitor support of custom classes 2022-01-31 10:48:01 +01:00
Chris Lenk 17445a085c
Merge pull request #534 from chisholm/fix_comp_expr_dnf_sco_type_check
Fix pattern semantic equivalence comparison expression DNF transformer bug
2021-12-23 16:36:26 -05:00
Michael Chisholm 3086b7ab5b Fix pattern semantic equivalence bug: comparison expression
DNF transform could trigger an error from the AST code which
does the SCO type checks on comparison expression ANDs.  The
transform had been ignoring SCO types.  Now, it will catch
the exception and drop the AND from the pattern.  Added a
couple new unit tests for this.
2021-12-23 00:59:41 -05:00
chrisr3d 519a5cb8fa Merge branch 'master' of github.com:oasis-open/cti-python-stix2 into main 2021-10-07 01:01:26 +02:00
Chris Lenk 81550cab92 Bump version: 3.0.0 → 3.0.1 2021-09-24 09:34:37 -04:00
Chris Lenk f5ea1396a1 Update CHANGELOG for v3.0.1 2021-09-24 09:33:40 -04:00
Rich Piazza 34128d17b8
Merge pull request #528 from chisholm/fix_taxii_filters
Fix transformation from Filter object to TAXII filter
2021-09-10 09:14:16 -04:00
Rich Piazza 585e76e909
Merge pull request #529 from emmanvg/documentation-update
Minor documentation update
2021-09-09 16:33:33 -04:00
chrisr3d 8ab39f75f7 Merge branch 'master' of github.com:oasis-open/cti-python-stix2 into main 2021-08-31 19:02:36 +02:00
Emmanuelle Vargas-Gonzalez 87d79445dc update maintainers 2021-08-30 20:59:08 -04:00
Emmanuelle Vargas-Gonzalez 66535bb550 update README.rst 2021-08-30 20:58:21 -04:00
Michael Chisholm 659e1fd90d Fix transform from Filter object to TAXII filter to look at
the filter operator; TAXII filters only support equals.
2021-08-26 20:55:35 -04:00
Rich Piazza e64d23d1dd
Merge pull request #526 from chisholm/fix_taxii20_datasource
Fix TAXIICollectionSource.query() to propagate HTTPErrors
2021-08-24 15:07:53 -04:00
Michael Chisholm a4ce0222bf Move and edit a comment about HTTP status code 416 to reduce
confusion.
2021-08-24 15:04:05 -04:00
Michael Chisholm a3d1056122 Fix TAXIICollectionSource.query() to propagate HTTPErrors
instead of ignoring them.  Special-cased 416, since that can
occur naturally while paging with TAXII 2.0.
2021-08-24 00:15:50 -04:00
chisholm 6e7e9dd832
Merge pull request #513 from maybe-sybr/fix/all-refs-are-identifiers-or-quack-alike
improv: Check reference prop types for all customs
2021-07-22 19:09:57 -04:00
maybe-sybr bd897c9848 improv: Check reference prop types for all customs
Previously the requirement that properties ending in `_ref(s)` were
instances of an appropriate type capable of containing a STIX
`identifier` (the current interpretation of section 3.1 of the STIX 2.1
spec) was only enforced for custom observables. This change refactors
the property checks for custom objects to enforce this and the STIX 2.1
property name requirement (also from section 3.1) in a common helper,
therefore extending the enforcement of both requirements to all custom
object types created by downstream projects.

There is a special case carved out for STIX 2.0 observables which are
required to contain "object references" rather than identifiers. This
special logic is encoded in the reference property validation helper and
enabled by a kwarg which is passed exclusively by the custom observable
registration helper.
2021-07-22 14:55:14 +10:00