protontypes / LibreSelery

Continuous distribution of funding to your project contributors and dependencies. Integrated into GitHub Actions
GNU Affero General Public License v3.0
124 stars 18 forks source link

CDE (Contribution Distribution Engine) Upgrades #187

Closed kikass13 closed 3 years ago

kikass13 commented 4 years ago

General

This is the PR relating to everything happening in #164 you have to read my changelogs in there to get the full feature list :)

System Overview

CDE_Architecture

How to install it

cd libreselery
sudo python setup.py develop ## proper package install, should install deps as well

How to start it

Libreselery

cd ~/libreselery
source ~/.libreselery/tokens.env
selery run -c ~/libreselery/selery.yml -d ~/libreselery -r ~/libreselery/results/

Plugin (testcase)

cd libreselery/libreselery/contribution_activity_plugins
python3 hello_world_activity_plugin.py ## start plugin for hello world
python3 git_file_contributors.py ## start plugin for file contributors
python3 github_remote_contributors.py ## start plugin for remote contributors using github api
kikass13 commented 4 years ago

@Ly0n @fdietze @cornerman

Ly0n commented 4 years ago

Thanks @kikass13 for amazing Sunday coding together. The new architecture works perfectly.

kikass13 commented 4 years ago

We added a plugin which uses awesomelists to pick a single random contributor from 5 random projects and pay them out. We also tested the payout mechanism, which works fine for now.

Ly0n commented 3 years ago

New architecture works with awesome-list integration plugins as example implementation. Branch tested with:

docker build -t libreselery . && env $(cat ~/.libreselery/tokens.env | xargs) ~/libreselery/run.sh ~/awesome-sustainable-technology

Native install with:

pip3 install . 
Ly0n commented 3 years ago

For runing on the host machine use the following command:

env $(cat ~/.libreselery/tokens.env | xargs) selery run -c ~/awesome-sustainable-technology/selery.yml -d ~/awesome-sustainable-technology -r ~/.libreselery/results/