Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi!
Automatic deployment on PyPi with travis and install with pip.
Overview
Package badactors with openstack-pbr define badactors as a python package.
Introduce dependencies management via requirements.txt.
You can now install badactors by using
pip install badactors
CI/CD process with travis
During the CI/CD process travis build this package and deploy automaticaly on pypi and also execute some checks like bandit who is a security linter who analyze your source code to detect security problems based on the abstract syntax tree of your application.
What's next?
If you accept these changes now you need to create and connect you travis-ci account with this project.
Pbr release project from git tags, if you want to autodeploy a new release on pypi from travis-ci job you need to create a git tag (
git tag 0.1.0
) and to push it (git push --tags
) to your github repository. Travis CI react on github events and make the job.You also need to create and configure a pypi account and to modify the
.travis.yml
file with your account informations (username, password), I recommand to you to encrypt your password with the travis CLI command.I've defined
jgamblin
as your username on pypi but feel free to update this :)More informations available on travis documentation.
I recommend to you to create your travis and pypi account first, merge this pull request, and update your configuration after.
Benefits
Do not hesitate to ask questions to me :)
I hope it's can be usefull to you.