Google Summer of Code: Week 4

Mehant Kammakomati
SCoRe Lab
Published in
2 min readJun 6, 2020

Five weeks have been so much resourceful full of learning, research, and development. This document gives insights into my week 4 work as part of Google Summer of Code with Sustainable Computing Research Lab.

May 31: [meeting]

I had a discussion on fixing the setup.py file and other future goals of the two project Bassa and Bassa Client Libraries.

June 1: [code]

I have fixed the setup.py.

bug: AttributeError: ‘ParsedRequirement’ object has no attribute ‘req’

Link to the Pull request

Taken from my own stack overflow answer. [LINK]

I got the fix finally \o/ install_reqs = parse_requirements(requirements_path, session=False). At first, I inspected what install_reqs was on Travis by simply logging it and found that it was a list of ParsedRequirement objects. I also found that this class is defined in req_file.py. I have gone to check the source code for req_file.py on GitHub. I found that there was no such attribute called req but instead it is a requirement. So there were two versions of parse_requirements function so I handled this using a try and except block.

June 2: [code]

Add basic README and other small patches to Bassa python library Link to the PR

June 3: [research]

Read about unit testing in python and divided my work for writing unit tests in three days.

June 4: [code]

Written unit tests for some library functions (user)

June 5: [code]

Written unit tests for some library functions (download)

June 6: [code]

Written unit tests for some library functions (file)

Next week I will complete the tests for the Bassa Python Client Library and send a pull request with a Travis CI integration.

You can find as Mehant Kammakomati at GitHub, Twitter, LinkedIn

--

--