Skip to content
/ snaut Public

Artifact upload tool for Sonatype Nexus 3

License

Notifications You must be signed in to change notification settings

perewall/snaut

Repository files navigation

image image image image image

Snaut

Artifact upload tool for Sonatype Nexus 3

Alternative to curl -X POST -u user:pwd -F "pypi.asset=@mypackage.whl" ...

Supported asset types: pypi, rubygems, nuget, npm

See API docs

Installation

pip install snaut

Usage

snaut --help

snaut -r http://host/service/rest/v1/components?repository=myrepo -a pypi mypackage.whl

Environment variables or .env file can be useful in your CI/CD pipeline:

  • SNAUT_REPO
  • SNAUT_ASSET
  • SNAUT_DIRECTORY
  • SNAUT_USERNAME
  • SNAUT_PASSWORD
  • SNAUT_VERBOSE
  • SNAUT_TIMEOUT
  • SNAUT_NO_VERIFY

Example:

python setup.py sdist bdist_wheel
snaut dist/*

RAW asset type:

snaut -d /mypath dist/*
snaut -d / myfile.zip

Requirements