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
- name
- Update the docker file:
- add your contact info to the
MAINTAINERline CMDto whatever command starts your app
- add your contact info to the
- Create a Repository on GitHub with the same name as your OneDev project
- In OneDev:
- Edit step templates in the
.onedev-buildspec.yamlfile::- 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 Secretsadd- 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
- your DockerHub password as
- If there isn't already, make a 'Server Docker Executor' called
docker-executorunderAdministration > Job Executors
- Edit step templates in the
- fill in your
README.mdand 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
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file onedev-python-project-boilerplate-0.1.2.tar.gz.
File metadata
- Download URL: onedev-python-project-boilerplate-0.1.2.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bee110f376a4f7fc2707a17910f1826ab86fc1bb73b2052aa8f02f216922bdc8
|
|
| MD5 |
1aac08c73634c45d57976afbf9308dd1
|
|
| BLAKE2b-256 |
361497fbe0dc4ac444d36184ccf5de818fbbcd696a51e72a43cd377d49704fe8
|
File details
Details for the file onedev_python_project_boilerplate-0.1.2-py3-none-any.whl.
File metadata
- Download URL: onedev_python_project_boilerplate-0.1.2-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de36dcb709a1074d0b5bfa64d179791691ecb6ceaae44d1665e4dadd9db29584
|
|
| MD5 |
cc2946ec22e6a7fbe50f7e7f5ba4d988
|
|
| BLAKE2b-256 |
f86e6edf4a3eee184a36fcb96bfec38b240e820065d396a2850ac9db92332931
|