A short description of your project
Project description
Python project boiler plate
This project aims to make the building, and deployment of python packages and docker containers using OneDev as simple as possible.
Features
- publish to docker hub
- publish to pypi
- sync with github
TODO
- add shields.io
- branch protection settings setup
How to Setup
- Make a copy/fork of this repository
- Update the following values in setup.py:
- name
- version
- description
- author
- license
- classifiers
- install requires
- extras_require
- Update the docker file:
- add your contact info to the
MAINTAINER
line CMD
to whatever command starts your app
- add your contact info to the
- In OneDev:
- Edit step templates in the
.onedev-buildspec.yaml
file::- Execute tests:Run Pytest:
- add command to run test suite(s) if not pytest
- Publish Docker Container to Dockerhub: publish to dockerhub:
- update username to your dockerhub username
- Execute tests:Run Pytest:
- Under
Settings > Build > Job Secrets
add- your docker hub password as
docker_hub_password
- your docker hub password as
docker_hub_user
- your pypi password as
pypi_password
- your pypi user as
pypi_user
- your docker hub password as
- If there isn't already, make a 'Server Docker Executor' called
docker-executor
underAdministration > Job Executors
- Edit step templates in the
- fill in your
README.md
and remove this section
My Project
Describe what your package is about
Package Distribution
Installation
pip install my-project
Use
python ./src/main.py
Docker Distibution
Installation
docker pull docker_user/project_name:latest
Use
docker run -p 5000:5000 project_name
or for detached mode:
docker run -d -p 5000:5000 project_name
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for onedev-python-project-boilerplate-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 886897dc46776dff5e4404e44d6026a122c2c8f483cad403ce6132ba1c735718 |
|
MD5 | 3e1dcc4c07475440208af29857e2cb09 |
|
BLAKE2b-256 | 7ccd6812736a6e05f6e03dd034dc5e94d2fc6f04633b49ec1ba64429e40f11c7 |
Close
Hashes for onedev_python_project_boilerplate-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b470baaf2962ef2f4bc72364ce86c52fe33c54f749fa51aa4161c750f025d80 |
|
MD5 | 246f5495c8a924c718b5c43aa644cc20 |
|
BLAKE2b-256 | f5bbf237a2a5c67416ddee252fb767ff8a3475ac78ceec5e27e82387682ac804 |