TezRomacH / python-package-template

🚀 Your next Python package needs a bleeding-edge project structure.
MIT License
1.09k stars 124 forks source link

Support GitLab as an alternative to GitHub #249

Open pksol opened 3 years ago

pksol commented 3 years ago

🚀 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
TezRomacH commented 3 years ago

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.

a1d4r commented 1 year ago

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.

pksol commented 1 year ago

Thanks @a1d4r ! Looks promising