Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python package for badactors #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

4383
Copy link

@4383 4383 commented Jul 13, 2018

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

  • manage more properly releases
  • install anishot from pypi with pip
  • install dependencies automaticaly
  • deploy automaticaly your releases

Do not hesitate to ask questions to me :)

I hope it's can be usefull to you.

Automatic deployment on PyPi with travis and install with pip.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant