Refactor the build_manage command to import git_upstream main function
to access the argparser only when the build_manage command is run
instead of when it is being constructed. This removes the need for
GitPython to be available for setuptools to parse the setup.py and
instead is only needed when the command is executed.
Change-Id: I16a7d18ad7e4cac87feb3204489727cc99c60ab5
During build, setuptools generates the man page automatically using a
custom class. This in turn uses importing of the project files to allow
argcomplete to construct the command line help. Since import requires
the GitPython project, make sure that setuptools pulls it into the
current workspace for build and install.
* rename hpgit to git-upstream
* rename import-upstream commadn to import
* change all occurrences of hpgit and import-upstream in code,
comments and tests
* code cleanup (remove some typos, improve PEP8 compliance)
* change license from "HP propietary" to "Apache License v2.0"
Change-Id: Ia4f00d662d79ac9725316027a65f4d23ebbd0f02
JIRA:CICD-1319
JIRA:CICD-1318
This patch adds the code to autogenerate the man page for the main command and each of the sub commands by using a custom HelpFormatter.
Change-Id: I9cac24c6a740a1fce4f11a4463241161d6945b3f
JIRA: CICD-307
Add bash autocomplete code based on the argcomplete package.
The file 'bash_completion/hpgit' should be copied in
'/etc/bash_completion.d/' but this require root priviledges.
Change-Id: I2c6133a0d9677d6f91fd6c96ceb4e84eda3c75ac
JIRA: CICD-261
When building the project using setuptools, support writing out the
version based on git tags and allow for this file to be used to retrieve
the version subsequently when installed on a system by a package
manager.
Change-Id: I4c58a61faf834d37adc78345740bb2cad9503d8c
JIRA: OPSAUTO-598
Update copyright and licenses to note that code is HP proprietary and
has not been approved by the OSRB. Add comments noting where code has
been included from other projects and include the appropriate license
terms in the file header.
Change-Id: I2ce8c2d48e6f73d18d95fa073e5f962805121d1a
Reformat lines where possible to adhere to the <80 characters line
length. Use the same format for all function descriptions and switch to
using the print function statement. Fix all flake8 errors while allowing
for line length to reach 100 characters.
Change-Id: I444d610d31b1f49678abd27581653f320913acfe
JIRA: CICD-260