-
Notifications
You must be signed in to change notification settings - Fork 0
docs: 📝 update README #129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 2 commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,69 @@ | ||
|
||
|
||
# Template for Seedcase Python packages | ||
# Template Python Package: An opinionated setup for making Python packages | ||
|
||
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: | ||
<!-- [![DOI]()]() --> | ||
|
||
``` bash | ||
# NAME is the name to give the new repository | ||
gh repo create NAME --template seedcase-project/template-python-project | ||
``` | ||
[](https://github.com/copier-org/copier) | ||
[](https://github.com/seedcase-project/template-python-package/blob/main/LICENSE.md) | ||
[](https://github.com/seedcase-project/template-python-package/releases/latest) | ||
[](https://github.com/seedcase-project/template-python-package/actions/workflows/build-website.yml) | ||
[](https://github.com/seedcase-project/template-python-package/actions/workflows/github-code-scanning/codeql) | ||
[](https://results.pre-commit.ci/latest/github/seedcase-project/template-python-package/main) | ||
[](https://lifecycle.r-lib.org/articles/stages.html#experimental) | ||
[](https://www.repostatus.org/#active) | ||
|
||
## Setting things up after cloning | ||
This repository contains a [copier](https://copier.readthedocs.io/) | ||
template for setting up a new repository for a Python package. Along | ||
with a structured directory layout, this template includes configured | ||
development tools, CI configuration, and supporting files for package | ||
setup, publishing, and maintenance. | ||
|
||
Search for `NAME` and `REPO` and replace them with the name of your | ||
project and the repository name. Then look for any `TODO` items. | ||
Check out our | ||
[website](https://template-python-package.seedcase-project.org/) for | ||
more information, such as the features it provides and a | ||
[guide](https://template-python-package.seedcase-project.org/docs/guide/) | ||
to using the template. For a list of changes, see our | ||
[changelog](https://template-python-package.seedcase-project.org/docs/releases/) | ||
page. | ||
|
||
## Setting things up | ||
## Contributing | ||
|
||
Use the commands found in | ||
[`spaid`](https://github.com/seedcase-project/spaid) repo to run the | ||
next setup steps. | ||
Check out our [contributing | ||
page](https://template-python-package.seedcase-project.org/contributing/) | ||
for information on how to contribute to the project, including how to | ||
set up your development environment. | ||
|
||
Need to install these packages after: | ||
Please note that this project is released with a [Contributor Code of | ||
Conduct](https://github.com/seedcase-project/.github/blob/main/CODE_OF_CONDUCT.md). | ||
By participating in this project you agree to abide by its terms. | ||
|
||
``` bash | ||
uv add --dev pre-commit ruff typos pytest bandit commitizen \ | ||
genbadge jupyter pytest-cov quartodoc | ||
``` | ||
## Licensing | ||
|
||
This project is licensed under the [MIT | ||
License](https://github.com/seedcase-project/template-python-package/blob/main/LICENSE.md). | ||
|
||
## Citing | ||
|
||
This project is part of the Seedcase Project, which is a collaborative | ||
effort to create a framework for data management and analysis in | ||
research. If you use this project in your work, please cite it as | ||
follows: | ||
|
||
Johnston L.W., Brødbæk S.K., Beicher K., Vago M. Template Python | ||
Package: An opinionated setup for making Python packages URL: | ||
https://template-python-package.seedcase-project.org | ||
|
||
Or as a BibTeX entry: | ||
|
||
@misc{YourReferenceHere, | ||
author = {Johnston, Luke William and Brødbæk, Signe Kirk and Beicher, Kristiane and Vago, Marton}, | ||
title = {Template Python Package: An opinionated setup for making Python packages}, | ||
url = {https://template-python-package.seedcase-project.org} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,68 @@ | ||
# Template for Seedcase Python packages | ||
--- | ||
format: gfm | ||
execute: | ||
echo: false | ||
jupyter: python3 | ||
metadata-files: | ||
- _metadata.yml | ||
--- | ||
|
||
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: | ||
# {{< meta titles.full >}} | ||
|
||
``` bash | ||
# NAME is the name to give the new repository | ||
gh repo create NAME --template seedcase-project/template-python-project | ||
``` | ||
{{< include /docs/includes/_badges.qmd >}} | ||
|
||
This repository contains a [copier](https://copier.readthedocs.io/) | ||
template for setting up a new repository for a Python package. Along | ||
with a structured directory layout, this template includes configured | ||
development tools, CI configuration, and supporting files for package | ||
setup, publishing, and maintenance. | ||
martonvago marked this conversation as resolved.
Show resolved
Hide resolved
martonvago marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
Check out our | ||
[website](https://{{< meta gh.repo >}}.{{< meta gh.org >}}.org/) for | ||
more information, such as the features it provides and a | ||
[guide](https://{{< meta gh.repo >}}.{{< meta gh.org >}}.org/docs/guide/) | ||
to using the template. For a list of changes, see our | ||
[changelog](https://{{< meta gh.repo >}}.{{< meta gh.org >}}.org/docs/releases/) | ||
page. | ||
|
||
## Contributing | ||
|
||
Check out our [contributing | ||
page](https://{{< meta gh.repo >}}.{{< meta gh.org >}}.org/contributing/) | ||
for information on how to contribute to the project, including how to | ||
set up your development environment. | ||
|
||
Please note that this project is released with a [Contributor Code of | ||
Conduct](https://github.com/{{< meta gh.org >}}/.github/blob/main/CODE_OF_CONDUCT.md). | ||
By participating in this project you agree to abide by its terms. | ||
|
||
## Setting things up after cloning | ||
::: content-hidden | ||
<!-- TODO: Unhide after more contributors --> | ||
|
||
Search for `NAME` and `REPO` and replace them with the name of your project and the repository name. Then look for any `TODO` items. | ||
### Contributors | ||
|
||
## Setting things up | ||
{{< include /_contributors.qmd >}} | ||
::: | ||
|
||
Use the commands found in [`spaid`](https://github.com/seedcase-project/spaid) repo to run the next setup steps. | ||
## Licensing | ||
|
||
This project is licensed under the [MIT | ||
License](https://github.com/{{< meta gh.org >}}/{{< meta gh.repo >}}/blob/main/LICENSE.md). | ||
|
||
## Citing | ||
|
||
This project is part of the Seedcase Project, which is a collaborative | ||
effort to create a framework for data management and analysis in | ||
research. If you use this project in your work, please cite it as | ||
follows: | ||
|
||
```{python} | ||
#| output: asis | ||
!uvx --quiet cffconvert --format apalike | ||
``` | ||
|
||
Need to install these packages after: | ||
Or as a BibTeX entry: | ||
|
||
``` bash | ||
uv add --dev pre-commit ruff typos pytest bandit commitizen \ | ||
genbadge jupyter pytest-cov quartodoc | ||
```{python} | ||
!uvx --quiet cffconvert --format bibtex | ||
``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
These are the people who have contributed by submitting changes through pull requests :tada: | ||
|
||
|
||
[\@lwjohnst86](https://github.com/lwjohnst86), [\@signekb](https://github.com/signekb), [\@martonvago](https://github.com/martonvago) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Get a list of contributors to this repository and save it to | ||
# _contributors.qmd.tmp file. It also: | ||
# _contributors.qmd file (overwritten if it exists). It also: | ||
# | ||
# - Formats users into Markdown links to their GitHub profiles. | ||
# - Removes any usernames with the word "bot" in them. | ||
# - Removes the trailing comma from the list. | ||
repo_spec=${1} | ||
echo "These are the people who have contributed by submitting changes through pull requests :tada:\n\n" > _contributors.qmd.tmp | ||
echo "These are the people who have contributed by submitting changes through pull requests :tada:\n\n" > _contributors.qmd | ||
gh api \ | ||
-H "Accept: application/vnd.github+json" \ | ||
-H "X-GitHub-Api-Version: 2022-11-28" \ | ||
/repos/$repo_spec/contributors \ | ||
--template '{{range .}} [\@{{.login}}]({{.html_url}}){{"\n"}}{{end}}' | \ | ||
grep -v "\[bot\]" | \ | ||
tr '\n' ', ' | \ | ||
sed -e 's/,$//' >> _contributors.qmd.tmp | ||
sed -e 's/,$//' >> _contributors.qmd |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bit of a word salad, feel free to change 🥗