-
Install
pip3 install h_art_cli -i https://alexeybeley.jfrog.io/artifactory/api/pypi/pypi-local/simple
pip3 install requests==2.23.0
-
Create a runner for example: chmod +x on it (e.g. `touch ./art_cli_runner.py && chmod +x ./art_cli_runner.py')
cat ./art_cli_runner.py
#!/python3 from art_cli.artifactory_cli import main main()
-
First thing - you have to configure it. See the example .json file for configuration run
./art_cli_runner.py configure -f <file_path>
-
run
./art_cli_runner.py system ping
-
As an option you can put it as
+x
under/usr/bin
and run it from console directly
build, test and upload the package
build the package under _build
delete all _build data
run this command to test your package before uploading.
- Make it interactive (while loop)
- Add option to interactive user input (e.g. user-create should accept json from stdin).
- Function to upload the package. So the
make upload
will use it. - Add version under packages init.py
- Remove insert to sys.path in init.
- Remove
pip3 install requests
- switch to packages' requirements. - Change /tmp/configs.json to something adequate.