Skip to content

Commit 0624a09

Browse files
authored
fix dependencies (#45)
1 parent 38067f2 commit 0624a09

File tree

5 files changed

+14
-5
lines changed

5 files changed

+14
-5
lines changed

CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88
The intended audience of this file is for py42 consumers -- as such, changes that don't affect
99
how a consumer would use the library (e.g. adding unit tests, updating documentation, etc) are not captured here.
1010

11+
## 0.5.1 - 2020-04-27
12+
13+
### Fixed
14+
15+
- Issue that prevented version 0.5.0 from updating its dependencies properly.
16+
17+
- Issue that prevented the `add` and `bulk add` functionality of `departing-employee` and `high-risk-employee` from successfully adding users to lists when specifying optional fields.
18+
1119
## 0.5.0 - 2020-04-24
1220

1321
### Changed

setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
package_dir={"": "src"},
2222
python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4",
2323
install_requires=[
24-
"c42eventextractor",
24+
"c42eventextractor==0.2.7",
2525
"keyring==18.0.1",
2626
"keyrings.alt==3.2.0",
27-
"py42",
27+
"py42>=1.0.0",
2828
],
2929
license="MIT",
3030
include_package_data=True,

src/code42cli/__version__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.5.0"
1+
__version__ = "0.5.1"

src/code42cli/cmds/detectionlists/departing_employee.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ def add_departing_employee(
3333
notes: (str): Notes about the employee.
3434
"""
3535
user_id = get_user_id(sdk, username)
36-
update_user(sdk, user_id, cloud_alias, notes=notes)
3736
sdk.detectionlists.departing_employee.add(user_id, departure_date)
37+
update_user(sdk, user_id, cloud_alias, notes=notes)
3838

3939

4040
def remove_departing_employee(sdk, profile, username):

src/code42cli/cmds/detectionlists/high_risk_employee.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ def add_risk_tags(sdk, profile, username, risk_tag):
4545
user_id = get_user_id(sdk, username)
4646
sdk.detectionlists.add_user_risk_tags(user_id, risk_tag)
4747

48+
4849
def remove_risk_tags(sdk, profile, username, risk_tag):
4950
risk_tag = _handle_list_args(risk_tag)
5051
user_id = get_user_id(sdk, username)
@@ -64,8 +65,8 @@ def add_high_risk_employee(sdk, profile, username, cloud_alias=None, risk_tag=No
6465
"""
6566
risk_tag = _handle_list_args(risk_tag)
6667
user_id = get_user_id(sdk, username)
67-
update_user(sdk, user_id, cloud_alias, risk_tag, notes)
6868
sdk.detectionlists.high_risk_employee.add(user_id)
69+
update_user(sdk, user_id, cloud_alias, risk_tag, notes)
6970

7071

7172
def remove_high_risk_employee(sdk, profile, username):

0 commit comments

Comments
 (0)