Skip to content

Commit 0c5984a

Browse files
committed
Merge branch 'suggestion' into 'main'
Update Readme.md See merge request common/python-package-template!6
2 parents 96856c9 + 5d06b6e commit 0c5984a

1 file changed

Lines changed: 33 additions & 22 deletions

File tree

‎README.md‎

Lines changed: 33 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,28 @@
1-
# FORK
2-
> NOTICE: this is a fork of https://github.com/RISCSoftware/cookiecutter-python-package, containing risc specific changes (Dockerfile-base, Dockerfile-test, .gitlab-ci.yml, pyproject.toml, README.md).
3-
Use these to update it:
4-
```
5-
git remote add upstream git@github.com:RISCSoftware/cookiecutter-python-package.git
6-
git pull upstream main
7-
```
8-
91
# Poetry Cookiecutter
102

113
A simple [Cookiecutter](https://github.com/cookiecutter/cookiecutter) template for scaffolding Python packages and apps. The goal is to provide sane defaults for any application.
124

5+
## Usage
6+
7+
### Creating a new Python project
8+
9+
1. Install [Cruft](https://github.com/cruft/cruft) and [Cookiecutter](https://github.com/cookiecutter/cookiecutter)
10+
- Either install them using pipx
11+
- Or install them in some python environment of your choice (not the environment of your future project)
12+
2. `cd` to the desired parent directory of your new project
13+
3. Run this to start an interactive agent:
14+
```sh
15+
cruft create -f https://gitdma.risc-software.at/common/python-package-template
16+
# add for testing: --checkout <BRANCH_NAME>
17+
```
18+
This creates the directory for your new project. You can edit `<your_project>/cruft.json` to change your inputs.
19+
4. Ensure `poetry.lock` file is generated (by running poetry install)
20+
5. Install the environment with `poetry install` and create a container using
21+
```
22+
docker build -f Dockerfile-test .
23+
```
24+
6. [Optional] Update your project template by running `cruft update`
25+
1326
## Batteries Included
1427

1528
- **Packaging and dependency management** with [Poetry](https://github.com/python-poetry/poetry)
@@ -28,21 +41,8 @@ A simple [Cookiecutter](https://github.com/cookiecutter/cookiecutter) template f
2841
- Cross-platform support for Linux, macOS (Apple silicon and Intel), and Windows
2942

3043
### Planned
31-
- [ ] **Automatic dependency** updates with [RenovateBot]()
3244

33-
## Usage
34-
35-
### Creating a new Python project
36-
37-
1. Install [Cruft](https://github.com/cruft/cruft) and [Cookiecutter](https://github.com/cookiecutter/cookiecutter)
38-
2. Run:
39-
```sh
40-
cruft create -f https://gitdma.risc-software.at/common/python-package-template
41-
# add for testing: --checkout <BRANCH_NAME>
42-
```
43-
3. Ensure `poetry.lock` file is generated (by running poetry install)
44-
4. Install the environment with `poetry install` and create a container using `docker build -f Dockerfile-test .`
45-
5. [Optional] Update your project template by running `cruft update`
45+
- [ ] **Automatic dependency** updates with [RenovateBot]()
4646

4747
## Parameters
4848

@@ -62,3 +62,14 @@ A simple [Cookiecutter](https://github.com/cookiecutter/cookiecutter) template f
6262
- **check** Checks if formatting, linting and import sorting are corrcet
6363
- **test** Runs all unit tests and doctests
6464
- **docs** Serves documentation in the `docs` folder, also generates API docs from docstrings
65+
66+
# Maintaining this Repo
67+
68+
## FORK
69+
70+
> NOTICE: this is a fork of https://github.com/RISCSoftware/cookiecutter-python-package, containing risc specific changes (Dockerfile-base, Dockerfile-test, .gitlab-ci.yml, pyproject.toml, README.md).
71+
Use these to update it:
72+
```
73+
git remote add upstream git@github.com:RISCSoftware/cookiecutter-python-package.git
74+
git pull upstream main
75+
```

0 commit comments

Comments
 (0)