Skip to content

Commit 6fe5ea7

Browse files
committed
Fix setup.py to include the missing packages
1 parent 503f25c commit 6fe5ea7

9 files changed

Lines changed: 9 additions & 9 deletions

File tree

Usage.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Cortex4py 2 has the following structure:
4040
```plain
4141
├── cortex4py
4242
│   ├── api
43-
│   ├── controller
43+
│   ├── controllers
4444
│   │   ├── abstract
4545
│   │   ├── analyzers
4646
│   │   ├── jobs
@@ -59,7 +59,7 @@ Cortex4py 2 has the following structure:
5959
```
6060

6161
- The **model** classes represent the data objects and extend the `cortex4py.models.Model` that provides `json()` methods returning a JSON `dict` from every model object.
62-
- The **controller** classes wrap the available methods that call Cortex APIs.
62+
- The **controllers** classes wrap the available methods that call Cortex APIs.
6363
- The **api** class is the main class giving access to the different controllers.
6464
- **query.*** are utility methods that allow building search queries.
6565
- **exceptions.*** are supported exceptions

cortex4py/api.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
import warnings
77

88
from .exceptions import *
9-
from .controller.organizations import OrganizationsController
10-
from .controller.users import UsersController
11-
from .controller.jobs import JobsController
12-
from .controller.analyzers import AnalyzersController
9+
from .controllers.organizations import OrganizationsController
10+
from .controllers.users import UsersController
11+
from .controllers.jobs import JobsController
12+
from .controllers.analyzers import AnalyzersController
1313

1414

1515
class Api(object):

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@
1111

1212
setup(
1313
name='cortex4py',
14-
version='2.0.0',
14+
version='2.0.1',
1515
description='Python API client for Cortex.',
1616
long_description=read_md('README.md'),
1717
author='TheHive-Project',
1818
author_email='support@thehive-project.org',
1919
maintainer='TheHive-Project',
2020
url='https://github.com/Thehive-Project/Cortex4py',
2121
license='AGPL-V3',
22-
packages=['cortex4py'],
22+
packages=['cortex4py', 'cortex4py.models', 'cortex4py.controllers'],
2323
classifiers=[
2424
'Development Status :: 4 - Beta',
2525
'Intended Audience :: Developers',
@@ -33,5 +33,5 @@
3333
'Topic :: Software Development :: Libraries :: Python Modules'
3434
],
3535
include_package_data=True,
36-
install_requires=['future', 'requests', 'python-magic']
36+
install_requires=['typing', 'requests', 'python-magic']
3737
)

0 commit comments

Comments
 (0)