mirror of
https://github.com/jtesta/ssh-audit.git
synced 2024-11-22 02:21:40 +01:00
Updated PyPI packaging instructions & Makefile.pypi.
This commit is contained in:
parent
240b705d61
commit
f893a8031f
@ -1,11 +1,15 @@
|
|||||||
all:
|
all:
|
||||||
python3 setup.py sdist bdist_wheel
|
rm -rf /tmp/pypi_upload
|
||||||
|
virtualenv -p /usr/bin/python3 /tmp/pypi_upload/
|
||||||
|
cp -R src /tmp/pypi_upload/
|
||||||
|
cp setup.py setup.cfg README.md LICENSE /tmp/pypi_upload/
|
||||||
|
/bin/bash -c "pushd /tmp/pypi_upload/; source bin/activate; pip3 install setuptools twine; python3 setup.py sdist bdist_wheel"
|
||||||
|
|
||||||
uploadtest:
|
uploadtest:
|
||||||
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
|
/bin/bash -c "pushd /tmp/pypi_upload; source bin/activate; twine upload --repository-url https://test.pypi.org/legacy/ /tmp/pypi_upload/dist/*"
|
||||||
|
|
||||||
uploadprod:
|
uploadprod:
|
||||||
twine upload dist/*
|
/bin/bash -c "pushd /tmp/pypi_upload; source bin/activate; twine upload /tmp/pypi_upload/dist/*"
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf build/ dist/ src/*.egg-info/
|
rm -rf /tmp/pypi_upload/
|
||||||
|
11
PACKAGING
11
PACKAGING
@ -2,12 +2,7 @@
|
|||||||
|
|
||||||
To create package and upload to test server:
|
To create package and upload to test server:
|
||||||
|
|
||||||
# apt install virtualenv
|
$ sudo apt install python3-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
|
|
||||||
$ make -f Makefile.pypi
|
$ make -f Makefile.pypi
|
||||||
$ make -f Makefile.pypi uploadtest
|
$ make -f Makefile.pypi uploadtest
|
||||||
|
|
||||||
@ -19,10 +14,8 @@ $ cd /tmp/pypi_test; source bin/activate
|
|||||||
$ pip3 install --index-url https://test.pypi.org/simple ssh-audit
|
$ pip3 install --index-url https://test.pypi.org/simple ssh-audit
|
||||||
|
|
||||||
|
|
||||||
To upload to production server:
|
To upload to production server (hint: use username '__token__' and API token):
|
||||||
|
|
||||||
$ cd /tmp/pypi_upload; source bin/activate
|
|
||||||
$ cd ssh-audit
|
|
||||||
$ make -f Makefile.pypi uploadprod
|
$ make -f Makefile.pypi uploadprod
|
||||||
|
|
||||||
|
|
||||||
|
@ -22,6 +22,7 @@ classifiers =
|
|||||||
Programming Language :: Python :: 3.6
|
Programming Language :: Python :: 3.6
|
||||||
Programming Language :: Python :: 3.7
|
Programming Language :: Python :: 3.7
|
||||||
Programming Language :: Python :: 3.8
|
Programming Language :: Python :: 3.8
|
||||||
|
Programming Language :: Python :: 3.9
|
||||||
Programming Language :: Python :: Implementation :: CPython
|
Programming Language :: Python :: Implementation :: CPython
|
||||||
Programming Language :: Python :: Implementation :: PyPy
|
Programming Language :: Python :: Implementation :: PyPy
|
||||||
Topic :: Security
|
Topic :: Security
|
||||||
|
Loading…
Reference in New Issue
Block a user