Python library to configure Fortinet's FortiMail devices (REST API)
To generate new version in PyPi do the following:
-
Submit all your changes including version update of ./setup.py to remote repo
-
Create a tag in the repo for this last commit
-
Push new tag into repo:
git push --tags
-
Create new package:
python setup.py sdist
-
Upload package:
twine upload dist/fortimailapi-0.x.x.tar.gz
Note: Ensure there is ~/.pypirc file with chmod 600 permissions and the following content:
[distutils]
index-servers =
pypi
pypitest
[pypi]
repository=https://upload.pypi.org/legacy/
username=your_user
password=your_password
[pypitest]
repository=https://testpypi.python.org/pypi
username=your_user
password=your_password