-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update dependencies and test configuration.
- Loading branch information
Showing
10 changed files
with
99 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
include *.md | ||
include requirements.txt | ||
include .isort.cfg | ||
include .pre-commit-config.yaml | ||
include CHANGELOG | ||
include CONTRIBUTING.md | ||
include dev-requirements.txt | ||
include LICENSE | ||
include tox.ini | ||
include stix2patterns/test/spec_examples.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -223,15 +223,15 @@ repositories/maintainers-guide#additionalMaintainers>`__. | |
.. _currentMaintainers: | ||
|
||
Current Maintainers of this TC Open Repository | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
- `Greg Back <mailto:[email protected]>`__; GitHub ID: | ||
https://github.com/gtback; WWW: `MITRE <https://www.mitre.org>`__ | ||
- `Ivan Kirillov <mailto:[email protected]>`__; GitHub ID: | ||
https://github.com/ikiril01; WWW: `MITRE <https://www.mitre.org>`__ | ||
|
||
About OASIS TC Open Repositories | ||
----------------------------- | ||
-------------------------------- | ||
|
||
- `TC Open Repositories: Overview and | ||
Resources <https://www.oasis-open.org/resources/open- | ||
|
@@ -269,4 +269,3 @@ to [email protected]. | |
:target: https://codecov.io/gh/oasis-open/cti-pattern-validator | ||
.. |Version| image:: https://img.shields.io/pypi/v/stix2-patterns.svg?maxAge=3600 | ||
:target: https://pypi.python.org/pypi/stix2-patterns/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
-e .[dev] |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,17 +15,42 @@ def get_version(): | |
raise AttributeError("Package does not have a __version__") | ||
|
||
|
||
doc_requires = [ | ||
'sphinx', | ||
] | ||
|
||
test_requires = [ | ||
'coverage', | ||
'pytest', | ||
'pytest-cov', | ||
] | ||
|
||
dev_requires = doc_requires + test_requires + [ | ||
'bumpversion', | ||
'check-manifest', | ||
'pre-commit', | ||
'readme_renderer', | ||
# test_requires are installed into every tox environemnt, so we don't | ||
# want to include tox there. | ||
'tox', | ||
] | ||
|
||
setup( | ||
name='stix2-patterns', | ||
version=get_version(), | ||
packages=find_packages(), | ||
description='Validate STIX 2 Patterns.', | ||
long_description=readme, | ||
url="https://github.com/oasis-open/cti-pattern-validator", | ||
author='OASIS Cyber Threat Intelligence Technical Committee', | ||
author_email='[email protected]', | ||
maintainer='Greg Back', | ||
maintainer_email='[email protected]', | ||
packages=find_packages(), | ||
install_requires=[ | ||
'antlr4-python2-runtime==4.7 ; python_version<"3"', | ||
'antlr4-python3-runtime==4.7 ; python_version>="3"', | ||
'antlr4-python2-runtime>=4.7 ; python_version<"3"', | ||
'antlr4-python3-runtime>=4.7 ; python_version>="3"', | ||
'six', | ||
'typing ; python_version<"3.5" and python_version>="3"' | ||
'typing ; python_version<"3.5" and python_version>="3"', | ||
], | ||
entry_points={ | ||
'console_scripts': [ | ||
|
@@ -42,4 +67,9 @@ def get_version(): | |
'Programming Language :: Python :: 3.5', | ||
'Programming Language :: Python :: 3.6', | ||
], | ||
extras_require={ | ||
'dev': dev_requires, | ||
'docs': doc_requires, | ||
'test': test_requires, | ||
}, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
import pytest | ||
|
||
from stix2patterns.inspector import INDEX_STAR | ||
from stix2patterns.pattern import Pattern | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters