summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2021-03-02Build package as noarchHEADobsapi-0.2.1masterScott Bahling1-0/+1
2021-03-02Fix extracting vendor from project configScott Bahling1-1/+1
2020-09-07Update versioneer and packaging build configsobsapi-0.2.0Scott Bahling5-532/+1440
2020-09-03Pass None in stead of emptystringScott Bahling1-1/+1
To make sure we don't trigger a binary get
2020-09-03Add install requirementsScott Bahling1-4/+6
2020-09-03Add job history wrappersScott Bahling3-0/+87
2020-09-03Update READMEScott Bahling1-0/+205
2020-09-03Add license headerScott Bahling1-1/+24
2020-03-27Remove debug printScott Bahling1-1/+0
2020-02-14Start adding docstringsScott Bahling2-8/+138
2020-02-13Make sure build api arguments match order of OBS api path items.Scott Bahling3-6/+6
This of course breaks the API, but hopefully we stay consistent from this point forward
2020-02-13Cleanup sourceapiScott Bahling3-9/+9
2020-02-13Use 'path' name when working with URI pathsScott Bahling1-7/+7
2020-02-13Implement general exception handlingScott Bahling3-36/+72
We trap the low level OBS api calls via a callback and check for success. If error returned, parse the OBS error response and raise an exception.
2020-02-12Implement sub-api callbacksoScott Bahling3-3/+62
When an api object makes an API request to the OBS server, in addition to returning the results, it sends a reference to itself to the registered callback function (if set). We use this to track the last api object called so we can access the last raw request response.
2020-02-12Remove unused assignmentScott Bahling1-1/+1
2020-02-12Simplify retry codeScott Bahling1-5/+2
2020-02-11Set retries to 0Scott Bahling1-2/+2
2020-02-10Fix get_package_source_versionScott Bahling2-4/+3
2020-02-07Add get_package_source_version()Scott Bahling3-3/+64
2020-02-06Fix get_package_versionScott Bahling2-12/+26
2020-02-06Handle passing bytes to the FileInfo classScott Bahling7-127/+207
Move class to own file and enhance tests
2020-02-04Fix invalid callScott Bahling1-1/+1
2020-02-03Re-architect the RepoFlags classScott Bahling4-168/+53
We don't need to create flags - just read and parse them from the project meta config. Remove the unneeded functionality and enhance the structure. All flags from a project and package are accessible via a single RepoFlags object.
2020-02-03Use status instead of setting to be consistent with the apiScott Bahling2-12/+12
2020-02-03Use repository attribute instead of "repo" to be consistent with the apiScott Bahling2-7/+7
2020-02-03Reorder arguments to be consistent with get_repo_flagsScott Bahling2-24/+18
2020-02-03Do not default to flag status of enable. We error if no status provided.Scott Bahling1-1/+1
2020-02-03Add pytest.iniobsapi-0.1.0Scott Bahling2-0/+4
2020-02-03Disable retries for nowScott Bahling2-1/+2
Probably should make this a configurable setting
2020-02-03Fix python 3 compatibilityScott Bahling1-0/+4
2020-02-03Add remove_flag methodScott Bahling2-24/+102
2020-02-01Add set_flag methodScott Bahling2-0/+55
2020-02-01Python2 fixScott Bahling1-1/+1
2020-01-31Fix repoflagsScott Bahling1-3/+7
2020-01-31Finish updating unit tests to use requests_mockScott Bahling8-111/+657
2020-01-31No need to check if already locked or unlockedScott Bahling1-6/+0
That's the job of the build service
2020-01-31use re for finding vendor macroScott Bahling1-6/+6
2020-01-31Enhance lock and unlock commandsScott Bahling1-17/+9
Use api 'cmd=lock' post parameter for locking.
2020-01-28Use requests_mock for unit testsScott Bahling2-53/+148
2020-01-28Enable calling /source/ root api (project argument optional)Scott Bahling1-2/+4
Also enable the binary_get flag when retrieving file objects
2020-01-27Update tests to use requests_mock pytest pluginScott Bahling1-135/+125
2020-01-27Use unittest mocks for test casesScott Bahling2-39/+178
We simply test that the url and params are correct for the HTTP requests and that the result is returned to use properly
2020-01-26Pass extra optional arguments to get_logScott Bahling1-2/+2
2020-01-26Add RepoFlags class and api.get_repo_flags methodScott Bahling4-0/+239
2020-01-25Enhance binaries_ls method to return project level binary listsScott Bahling2-1/+15
2020-01-25Better get_meta testsScott Bahling1-5/+9
2020-01-25Fix get_repository call for retrieving binary objectsScott Bahling2-5/+14
Enhance test case
2020-01-21PEP8Scott Bahling2-32/+32
2020-01-21Fix some python3 incompatibilitiesScott Bahling3-8/+5