forked from jaraco/skeleton
-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Pablo Prietz edited this page Sep 2, 2022
·
7 revisions
Welcome to the python-module-skeleton instructions!
This repository is meant to be used as a template for new Python modules at Pupil Labs. It is based on https://blog.jaraco.com/skeleton/
In order to create a new repo from the template follow these steps:
# create a folder `project-name` and initializes it as an empty git repository
git init project-name
cd project-name
# clones the template contents into the new repo
git pull https://github.com/pupil-labs/python-module-skeleton.git- Open
setup.cfgand edit the package's meta data accordingly - Rename
project_nameaccordingly in the following files:src/pupil_labs/project_name/__init__.py-
tests/test_api.py(seeimportstatement)
- Rename the
src/pupil_labs/project_namefolder accordingly. Keep it in thepupil_labsfolder to let your module be part of the Pupil Labs namespace (import pupil_labs.project_name) - Rename
skeletonindocs/index.rstto the appropriate module name
To make your package available to others, create a new, empty Github or Gitlab repository, copy its URL, and add it as a git remote. Then push the main branch. (Note: The command below assumes that your current branch is called main and that you have committed the changes from above.)
git remote add origin <copied url>
git push origin mainTo learn more about the template, go and read https://blog.jaraco.com/skeleton/