Skip to content
This repository was archived by the owner on Dec 3, 2020. It is now read-only.

Conversation

@dspruell-s01
Copy link

Hoping to slightly modernize and improve the python client API code incrementally here just to fix up that some of our scripts don't seem to run at all in the current incarnation. See commit logs for details. Tested in a Python 3 virtualenv with this setup and was able to properly update the netblocks in a customer after streamlining this module. Prior it seemed to be a dance to get in the proper directory to do some imports and even then I'm not convinced it would have been able to work. This should hopefully better fit current patterns in e.g. https://python-packaging.readthedocs.io/en/latest/.

One thing I'm hoping you can verify @josh-williams is that we're OK dropping the requirements.txt since those are now present in setup.py (install_requires).

@spdietz if this is clear I'd like to do another test and then update the user-facing doc in https://jasklabs.atlassian.net/wiki/spaces/CS1/pages/695730197/Importing+Network+Blocks+using+the+JASK+REST+API.

- Implement proper setuptools setup script and set required dependencies
  in script; drop requirements.txt
- Fix up imports in trident_client modules to do proper relative imports
  within the package.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants