ssh-audit/PACKAGING

53 lines
992 B
Plaintext
Raw Normal View History

2020-03-13 02:56:23 +01:00
= PyPI =
2019-11-14 17:06:05 +01:00
To create package and upload to test server:
$ sudo apt install python3-virtualenv
2020-03-13 02:56:23 +01:00
$ make -f Makefile.pypi
$ make -f Makefile.pypi uploadtest
2019-11-14 17:06:05 +01:00
To download from test server and verify:
2019-11-26 18:12:47 +01:00
$ virtualenv -p /usr/bin/python3 /tmp/pypi_test
$ cd /tmp/pypi_test; source bin/activate
2019-11-14 17:06:05 +01:00
$ pip3 install --index-url https://test.pypi.org/simple ssh-audit
2020-03-11 17:45:28 +01:00
To upload to production server (hint: use username '__token__' and API token):
2020-03-11 17:45:28 +01:00
2020-03-13 02:56:23 +01:00
$ make -f Makefile.pypi uploadprod
2020-03-11 17:45:28 +01:00
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
2020-03-13 02:56:23 +01:00
----
= Snap =
To create the snap package, run a fully-updated Ubuntu Server 20.04 VM.
2020-03-13 02:56:23 +01:00
As root, run:
# lxd init
Leave all options default. Bump the version number in snapcraft.yaml. Then run:
# make -f Makefile.snap
----
= Docker =
Build image with:
$ make -f Makefile.docker
Then upload them to Dockerhub with:
$ make -f Makefile.docker upload