Skip to content

AlexeyBeley/artifactory_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

For users

  1. Install pip3 install h_art_cli -i https://alexeybeley.jfrog.io/artifactory/api/pypi/pypi-local/simple pip3 install requests==2.23.0

  2. 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()
  3. First thing - you have to configure it. See the example .json file for configuration run ./art_cli_runner.py configure -f <file_path>

  4. run ./art_cli_runner.py system ping

  5. As an option you can put it as +x under /usr/bin and run it from console directly

For developers how to use Makefile:

make upload

build, test and upload the package

make build

build the package under _build

make clear

delete all _build data

make test

run this command to test your package before uploading.

todo:

  1. Make it interactive (while loop)
  2. Add option to interactive user input (e.g. user-create should accept json from stdin).
  3. Function to upload the package. So the make upload will use it.
  4. Add version under packages init.py
  5. Remove insert to sys.path in init.
  6. Remove pip3 install requests - switch to packages' requirements.
  7. Change /tmp/configs.json to something adequate.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published