python-package-template icon indicating copy to clipboard operation
python-package-template copied to clipboard

Support GitLab as an alternative to GitHub

Open pksol opened this issue 3 years ago • 3 comments

🚀 Feature Request

Allow the user to specify the "flavor" of the git repository (and CI) as one of the parameters.

🔈 Motivation

Many Python developers use GitLab (or other git repositories like BitBucket for that matter). Using the template as is, requires several manual changes to be applied later:

  1. Delete the GitHub actions and create and populate the .gitlab-ci.yml
  2. Update links in the readme and other documentation

pksol avatar Feb 16 '21 05:02 pksol

Hi! Sorry for the late response.

The idea looks nice! I wouldn't want to remove GitHub entirely, we should keep it too.

Can you contribute the updates? That would be another choice when creating a repository – "Which hosting to use?". With the options of GitHub and GitLab.

TezRomacH avatar Feb 26 '21 10:02 TezRomacH

Hi! I supported GitLab CI in my own fork of the template.

You can take a look at it here: https://github.com/a1d4r/python-package-template/blob/master/%7B%7B%20cookiecutter.project_name.lower().replace('%20'%2C%20'-')%20%7D%7D/.gitlab-ci.yml

I won't make a PR to this repo because I changed the fork drastically for my own needs. There is no more Github templates, bots, and badges because I prefer to keep the template simple. In addition, you can have a look at updated Dockerfile and Python 3.11 support.

a1d4r avatar Sep 20 '23 11:09 a1d4r

Thanks @a1d4r ! Looks promising

pksol avatar Sep 20 '23 23:09 pksol