You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
-1Lines changed: 0 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,5 @@ A Rust-Python project template
9
9
10
10
## Overview
11
11
12
-
13
12
> [!NOTE]
14
13
> This library was generated using [copier](https://copier.readthedocs.io/en/stable/) from the [Base Python Project Template repository](https://github.com/python-project-templates/base).
_This wiki is autogenerated. To made updates, open a PR against the original source file in [`docs/wiki`](https://github.com/python-project-templates/python-template-rust/tree/main/docs/wiki)._
`python-template-rust` is written in Python and Rust. While prebuilt wheels are provided for end users, it is also straightforward to build `python-template-rust` from either the Python [source distribution](https://packaging.python.org/en/latest/specifications/source-distribution-format/) or the GitHub repository.
As a convenience, `python-template-rust` uses a `Makefile` for commonly used commands. You can print the main available commands by running `make` with no arguments
14
+
15
+
```bash
16
+
> make
17
+
18
+
build build the library
19
+
clean clean the repository
20
+
fix run autofixers
21
+
install install library
22
+
lint run lints
23
+
test run the tests
24
+
```
25
+
26
+
## Prerequisites
27
+
28
+
`python-template-rust` has a few system-level dependencies which you can install from your machine package manager. Other package managers like `conda`, `nix`, etc, should also work fine.
Follow the instructions for [installing Rust](https://rustup.rs) for your system.
42
+
43
+
## Install Python dependencies
44
+
45
+
Python build and develop dependencies are specified in the `pyproject.toml`, but you can manually install them:
46
+
47
+
```bash
48
+
make requirements
49
+
```
50
+
51
+
Note that these dependencies would otherwise be installed normally as part of [PEP517](https://peps.python.org/pep-0517/) / [PEP518](https://peps.python.org/pep-0518/).
52
+
53
+
## Build
54
+
55
+
Build the python project in the usual manner:
56
+
57
+
```bash
58
+
make build
59
+
```
60
+
61
+
## Lint and Autoformat
62
+
63
+
`python-template-rust` has linting and auto formatting.
64
+
65
+
| Language | Linter | Autoformatter | Description |
`python-template-rust` has both Python and JavaScript tests. The bulk of the functionality is tested in Python, which can be run via `pytest`. First, install the Python development dependencies with
Contributions are welcome on this project. We distribute under the terms of the [Apache 2.0 license](https://github.com/python-project-templates/python-template-rust/blob/main/LICENSE).
2
+
3
+
> [!NOTE]
4
+
>
5
+
> `python-template-rust` requires [Developer Certificate of Origin](https://en.wikipedia.org/wiki/Developer_Certificate_of_Origin) for all contributions.
6
+
> This is enforced by a [Probot GitHub App](https://probot.github.io/apps/dco/), which checks that commits are "signed".
7
+
> Read [instructions to configure commit signing](Local-Development-Setup#configure-commit-signing).
8
+
9
+
For **bug reports** or **small feature requests**, please open an issue on our [issues page](https://github.com/python-project-templates/python-template-rust/issues).
10
+
11
+
For **questions** or to discuss **larger changes or features**, please use our [discussions page](https://github.com/python-project-templates/python-template-rust/discussions).
12
+
13
+
For **contributions**, please see our [developer documentation](Local-Development-Setup). We have `help wanted` and `good first issue` tags on our issues page, so these are a great place to start.
14
+
15
+
For **documentation updates**, make PRs that update the pages in `/docs/wiki`. The documentation is pushed to the GitHub wiki automatically through a GitHub workflow. Note that direct updates to this wiki will be overwritten.
0 commit comments