Skip to content

Commit

Permalink
Merge pull request oasis-open#152 from emmanvg/remove-taxii-requirement
Browse files Browse the repository at this point in the history
Update stix2 setup configuration
  • Loading branch information
gtback authored Apr 2, 2018
2 parents 81e5fdd + 470b3ec commit 8fd9fa9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
11 changes: 7 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,20 @@

from setuptools import find_packages, setup

here = os.path.abspath(os.path.dirname(__file__))
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
VERSION_FILE = os.path.join(BASE_DIR, 'stix2', 'version.py')


def get_version():
with open('stix2/version.py', encoding="utf-8") as f:
with open(VERSION_FILE) as f:
for line in f.readlines():
if line.startswith("__version__"):
version = line.split()[-1].strip('"')
return version
raise AttributeError("Package does not have a __version__")


with open(os.path.join(here, 'README.rst'), encoding='utf-8') as f:
with open('README.rst') as f:
long_description = f.read()


Expand Down Expand Up @@ -52,6 +53,8 @@ def get_version():
'simplejson',
'six',
'stix2-patterns',
'taxii2-client',
],
extras_require={
'taxii': ['taxii2-client']
}
)
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ deps =
pytest
pytest-cov
coverage
taxii2-client
commands =
py.test --cov=stix2 stix2/test/ --cov-report term-missing

Expand Down

0 comments on commit 8fd9fa9

Please sign in to comment.