Skip to content

Commit 31e9b8a

Browse files
docs: 📝 update README (#129)
# Description This PR updates the (non-template) README to match the latest version. This PR needs a medium-depth review. ## Checklist - [x] Added or updated tests - [x] Updated documentation - [x] Ran `just run-all` --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent ec38631 commit 31e9b8a

File tree

5 files changed

+129
-38
lines changed

5 files changed

+129
-38
lines changed

README.md

Lines changed: 59 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,69 @@
11

22

3-
# Template for Seedcase Python packages
3+
# Template Python Package: An opinionated setup for making Python packages
44

5-
This repository contains a template for setting up new Python package
6-
projects in Seedcase. The first step is to create a new repository using
7-
this template. This can easily be done by clicking the “Use this
8-
template” button on the repository page or by using the GitHub CLI:
5+
<!-- [![DOI]()]() -->
96

10-
``` bash
11-
# NAME is the name to give the new repository
12-
gh repo create NAME --template seedcase-project/template-python-project
13-
```
7+
[![Copier](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/copier-org/copier/master/img/badge/badge-grayscale-inverted-border-teal.json?raw=true)](https://github.com/copier-org/copier)
8+
[![GitHub
9+
License](https://img.shields.io/github/license/seedcase-project/template-python-package.svg)](https://github.com/seedcase-project/template-python-package/blob/main/LICENSE.md)
10+
[![GitHub
11+
Release](https://img.shields.io/github/v/release/seedcase-project/template-python-package.svg)](https://github.com/seedcase-project/template-python-package/releases/latest)
12+
[![Build
13+
website](https://github.com/seedcase-project/template-python-package/actions/workflows/build-website.yml/badge.svg)](https://github.com/seedcase-project/template-python-package/actions/workflows/build-website.yml)
14+
[![CodeQL](https://github.com/seedcase-project/template-python-package/actions/workflows/github-code-scanning/codeql/badge.svg?branch=main)](https://github.com/seedcase-project/template-python-package/actions/workflows/github-code-scanning/codeql)
15+
[![pre-commit.ci
16+
status](https://results.pre-commit.ci/badge/github/seedcase-project/template-python-package/main.svg)](https://results.pre-commit.ci/latest/github/seedcase-project/template-python-package/main)
17+
[![lifecycle](https://lifecycle.r-lib.org/articles/figures/lifecycle-experimental.svg)](https://lifecycle.r-lib.org/articles/stages.html#experimental)
18+
[![Project Status: Active – The project has reached a stable, usable
19+
state and is being actively
20+
developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)
1421

15-
## Setting things up after cloning
22+
This repository contains a [copier](https://copier.readthedocs.io/)
23+
template for setting up a new repository for a Python package. Along
24+
with a structured directory layout, this template includes configured
25+
development tools, CI configuration, and supporting files for package
26+
setup, publishing, and maintenance.
1627

17-
Search for `NAME` and `REPO` and replace them with the name of your
18-
project and the repository name. Then look for any `TODO` items.
28+
Check out our
29+
[website](https://template-python-package.seedcase-project.org/) for
30+
more information, such as the features it provides and a
31+
[guide](https://template-python-package.seedcase-project.org/docs/guide/)
32+
to using the template. For a list of changes, see our
33+
[changelog](https://template-python-package.seedcase-project.org/docs/releases/)
34+
page.
1935

20-
## Setting things up
36+
## Contributing
2137

22-
Use the commands found in
23-
[`spaid`](https://github.com/seedcase-project/spaid) repo to run the
24-
next setup steps.
38+
Check out our [contributing
39+
page](https://template-python-package.seedcase-project.org/contributing/)
40+
for information on how to contribute to the project, including how to
41+
set up your development environment.
2542

26-
Need to install these packages after:
43+
Please note that this project is released with a [Contributor Code of
44+
Conduct](https://github.com/seedcase-project/.github/blob/main/CODE_OF_CONDUCT.md).
45+
By participating in this project you agree to abide by its terms.
2746

28-
``` bash
29-
uv add --dev pre-commit ruff typos pytest bandit commitizen \
30-
genbadge jupyter pytest-cov quartodoc
31-
```
47+
## Licensing
48+
49+
This project is licensed under the [MIT
50+
License](https://github.com/seedcase-project/template-python-package/blob/main/LICENSE.md).
51+
52+
## Citing
53+
54+
This project is part of the Seedcase Project, which is a collaborative
55+
effort to create a framework for data management and analysis in
56+
research. If you use this project in your work, please cite it as
57+
follows:
58+
59+
Johnston L.W., Brødbæk S.K., Beicher K., Vago M. Template Python
60+
Package: An opinionated setup for making Python packages URL:
61+
https://template-python-package.seedcase-project.org
62+
63+
Or as a BibTeX entry:
64+
65+
@misc{YourReferenceHere,
66+
author = {Johnston, Luke William and Brødbæk, Signe Kirk and Beicher, Kristiane and Vago, Marton},
67+
title = {Template Python Package: An opinionated setup for making Python packages},
68+
url = {https://template-python-package.seedcase-project.org}
69+
}

README.qmd

Lines changed: 59 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,68 @@
1-
# Template for Seedcase Python packages
1+
---
2+
format: gfm
3+
execute:
4+
echo: false
5+
jupyter: python3
6+
metadata-files:
7+
- _metadata.yml
8+
---
29

3-
This repository contains a template for setting up new Python package projects in Seedcase. The first step is to create a new repository using this template. This can easily be done by clicking the "Use this template" button on the repository page or by using the GitHub CLI:
10+
# {{< meta titles.full >}}
411

5-
``` bash
6-
# NAME is the name to give the new repository
7-
gh repo create NAME --template seedcase-project/template-python-project
8-
```
12+
{{< include /docs/includes/_badges.qmd >}}
13+
14+
This repository contains a [copier](https://copier.readthedocs.io/)
15+
template for setting up a new repository for a Python package. Along
16+
with a structured directory layout, this template includes configurations
17+
for tools that improve developer experience, continuous integration and
18+
delivery workflows, and supporting files for building robust Python packages.
19+
20+
Check out our
21+
[website](https://{{< meta gh.repo >}}.{{< meta gh.org >}}.org/) for
22+
more information, such as the features it provides and a
23+
[guide](https://{{< meta gh.repo >}}.{{< meta gh.org >}}.org/docs/guide/)
24+
to using the template. For a list of changes, see our
25+
[changelog](https://{{< meta gh.repo >}}.{{< meta gh.org >}}.org/docs/releases/)
26+
page.
27+
28+
## Contributing
29+
30+
Check out our [contributing
31+
page](https://{{< meta gh.repo >}}.{{< meta gh.org >}}.org/contributing/)
32+
for information on how to contribute to the project, including how to
33+
set up your development environment.
34+
35+
Please note that this project is released with a [Contributor Code of
36+
Conduct](https://github.com/{{< meta gh.org >}}/.github/blob/main/CODE_OF_CONDUCT.md).
37+
By participating in this project you agree to abide by its terms.
938

10-
## Setting things up after cloning
39+
::: content-hidden
40+
<!-- TODO: Unhide after more contributors -->
1141

12-
Search for `NAME` and `REPO` and replace them with the name of your project and the repository name. Then look for any `TODO` items.
42+
### Contributors
1343

14-
## Setting things up
44+
{{< include /_contributors.qmd >}}
45+
:::
1546

16-
Use the commands found in [`spaid`](https://github.com/seedcase-project/spaid) repo to run the next setup steps.
47+
## Licensing
48+
49+
This project is licensed under the [MIT
50+
License](https://github.com/{{< meta gh.org >}}/{{< meta gh.repo >}}/blob/main/LICENSE.md).
51+
52+
## Citing
53+
54+
This project is part of the Seedcase Project, which is a collaborative
55+
effort to create a framework for data management and analysis in
56+
research. If you use this project in your work, please cite it as
57+
follows:
58+
59+
```{python}
60+
#| output: asis
61+
!uvx --quiet cffconvert --format apalike
62+
```
1763

18-
Need to install these packages after:
64+
Or as a BibTeX entry:
1965

20-
``` bash
21-
uv add --dev pre-commit ruff typos pytest bandit commitizen \
22-
genbadge jupyter pytest-cov quartodoc
66+
```{python}
67+
!uvx --quiet cffconvert --format bibtex
2368
```

_contributors.qmd

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
These are the people who have contributed by submitting changes through pull requests :tada:
2+
3+
4+
[\@lwjohnst86](https://github.com/lwjohnst86), [\@signekb](https://github.com/signekb), [\@martonvago](https://github.com/martonvago)

_metadata.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,7 @@
22
gh:
33
org: "seedcase-project"
44
repo: "template-python-package"
5+
6+
titles:
7+
full: "Template Python Package: An opinionated setup for making Python packages"
8+
short: "Template Python Package"

tools/get-contributors.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
#!/usr/bin/env bash
22

33
# Get a list of contributors to this repository and save it to
4-
# _contributors.qmd.tmp file. It also:
4+
# _contributors.qmd file (overwritten if it exists). It also:
55
#
66
# - Formats users into Markdown links to their GitHub profiles.
77
# - Removes any usernames with the word "bot" in them.
88
# - Removes the trailing comma from the list.
99
repo_spec=${1}
10-
echo "These are the people who have contributed by submitting changes through pull requests :tada:\n\n" > _contributors.qmd.tmp
10+
echo "These are the people who have contributed by submitting changes through pull requests :tada:\n\n" > _contributors.qmd
1111
gh api \
1212
-H "Accept: application/vnd.github+json" \
1313
-H "X-GitHub-Api-Version: 2022-11-28" \
1414
/repos/$repo_spec/contributors \
1515
--template '{{range .}} [\@{{.login}}]({{.html_url}}){{"\n"}}{{end}}' | \
1616
grep -v "\[bot\]" | \
1717
tr '\n' ', ' | \
18-
sed -e 's/,$//' >> _contributors.qmd.tmp
18+
sed -e 's/,$//' >> _contributors.qmd

0 commit comments

Comments
 (0)