Skip to main content

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 DockerHub
  • publish to pypi
  • sync with GitHub

TODO

  • add shields.io
  • branch protection settings setup

How to Setup

  • Make a new OneDev repository and copy the contents of this repository into it.
  • Update the following values in setup.py:
    • name
      • note: this sets the name used on DockerHub, PyPI, and GitHub
    • 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
  • Create a Repository on GitHub with the same name as your OneDev project
  • 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
    • Under Settings > Build > Job Secrets add
      • your DockerHub password as dockerhub_password
      • your DockerHub password as dockerhub_user
      • your PyPI password as pypi_password
      • your PyPI user as pypi_user
      • your GitHub user as github_user
      • your GitHub token as github_token
    • If there isn't already, make a 'Server Docker Executor' called docker-executor under Administration > Job Executors
  • fill in your README.md and remove this section

Contibuting

Contributions are welcome, this project is developed at dev.doze.dev where you can submit issues and open pull requests.


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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

onedev-python-project-boilerplate-0.1.2.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file onedev-python-project-boilerplate-0.1.2.tar.gz.

File metadata

File hashes

Hashes for onedev-python-project-boilerplate-0.1.2.tar.gz
Algorithm Hash digest
SHA256 bee110f376a4f7fc2707a17910f1826ab86fc1bb73b2052aa8f02f216922bdc8
MD5 1aac08c73634c45d57976afbf9308dd1
BLAKE2b-256 361497fbe0dc4ac444d36184ccf5de818fbbcd696a51e72a43cd377d49704fe8

See more details on using hashes here.

File details

Details for the file onedev_python_project_boilerplate-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for onedev_python_project_boilerplate-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 de36dcb709a1074d0b5bfa64d179791691ecb6ceaae44d1665e4dadd9db29584
MD5 cc2946ec22e6a7fbe50f7e7f5ba4d988
BLAKE2b-256 f86e6edf4a3eee184a36fcb96bfec38b240e820065d396a2850ac9db92332931

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page