mirror of
https://github.com/jtesta/ssh-audit.git
synced 2024-11-25 12:01:40 +01:00
42 lines
880 B
Plaintext
42 lines
880 B
Plaintext
= PyPI =
|
|
|
|
To create package and upload to test server:
|
|
|
|
# apt install virtualenv
|
|
$ virtualenv -p /usr/bin/python3 /tmp/pypi_upload
|
|
$ cd /tmp/pypi_upload; source bin/activate
|
|
$ pip3 install twine
|
|
$ cp -R path/to/ssh-audit .
|
|
$ cd ssh-audit/pypi
|
|
$ make -f Makefile.pypi
|
|
$ make -f Makefile.pypi uploadtest
|
|
|
|
|
|
To download from test server and verify:
|
|
|
|
$ virtualenv -p /usr/bin/python3 /tmp/pypi_test
|
|
$ cd /tmp/pypi_test; source bin/activate
|
|
$ pip3 install --index-url https://test.pypi.org/simple ssh-audit
|
|
|
|
|
|
To upload to production server:
|
|
|
|
$ cd /tmp/pypi_upload; source bin/activate
|
|
$ cd ssh-audit/pypi
|
|
$ make -f Makefile.pypi uploadprod
|
|
|
|
|
|
To download from production server and verify:
|
|
|
|
$ virtualenv -p /usr/bin/python3 /tmp/pypi_prod
|
|
$ cd /tmp/pypi_prod; source bin/activate
|
|
$ pip3 install ssh-audit
|
|
|
|
----
|
|
|
|
= Snap =
|
|
|
|
To create the snap package, simply run:
|
|
|
|
$ make -f Makefile.snap
|