Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ feat(usergroup): adds attribute for user group role in projects #65

Merged
merged 2 commits into from
Sep 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [ '3.7', '3.8', '3.9', '3.10' ]
python-version: [ '3.8', '3.9', '3.10' ]
pallabpain marked this conversation as resolved.
Show resolved Hide resolved
steps:
- name: Checkout Code
uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Rapyuta.io Python SDK enables you to access platform services and resources in
your python applications.

The SDK supports Python 3.7+. For older Python 2.x support, you can use the
The SDK supports Python 3.8+. For older Python 2.x support, you can use the
0.x.x [releases](https://pypi.org/project/rapyuta-io/#history) from Pypi.

## Install
Expand Down
7 changes: 5 additions & 2 deletions rapyuta_io/clients/user_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def __int__(self, guid=None, name=None, description=None,
self.members = members
self.admins = admins
self.projects = projects
self.role_in_projects = []

@staticmethod
def validate(self, guid, name, description, creator, members, admins, projects):
Expand All @@ -58,7 +59,8 @@ def get_serialize_map(self):
'creator': 'creator',
'members': 'members',
'admins': 'admins',
'projects': 'projects'
'projects': 'projects',
'userGroupRoleInProjects': 'role_in_projects',
}

def get_deserialize_map(self):
Expand All @@ -69,5 +71,6 @@ def get_deserialize_map(self):
'creator': 'creator',
'members': list_field('members', User),
'admins': list_field('admins', User),
'projects': list_field('projects', Project)
'projects': list_field('projects', Project),
'role_in_projects': 'userGroupRoleInProjects'
}
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@
author="Rapyuta Robotics",
author_email="[email protected]",
packages=find_packages(include=["rapyuta_io*"]),
python_requires=">=3.7",
python_requires=">=3.8",
license="Apache 2.0",
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
Expand Down