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
+14-10Lines changed: 14 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,6 @@ Initiatives.
24
24
25
25
## Contributing statement
26
26
27
-
28
27
## How to setup
29
28
30
29
This repository contains the source files for the [pyOpenSci Python packaging guide](https://pyopensci.org/python-package-guide).
@@ -44,44 +43,49 @@ To build, follow these steps:
44
43
1. Install `nox`
45
44
46
45
```console
47
-
$ python -m pip install nox
46
+
python -m pip install nox
48
47
```
48
+
49
49
2. Build the documentation:
50
50
51
51
```console
52
-
$ nox -s docs
52
+
nox -s docs
53
53
```
54
54
55
55
This should create a local environment in a `.nox` folder, build the documentation (as specified in the `noxfile.py` configuration), and the output will be in `_build/html`.
56
56
57
57
To build live documentation that updates when you update local files, run the following command:
58
58
59
59
```console
60
-
$ nox -s docs-live
60
+
nox -s docs-live
61
61
```
62
62
63
+
If you are a uv user, you can also skip installing `nox` and use `uvx` instead:
64
+
65
+
`uvx nox -s docs-live`
66
+
63
67
### Building for release
64
68
65
69
When building for release, the docs are built multiple times for each translation,
66
70
but translations are only included in the production version of the guide after some completion threshold.
67
71
68
72
The sphinx build environment is controlled by an environment variable `SPHINX_ENV`
69
73
70
-
- when `SPHINX_ENV=development` (default), sphinx assumes all languages are built,
74
+
* when `SPHINX_ENV=development` (default), sphinx assumes all languages are built,
71
75
and includes them in the language selector
72
-
- when `SPHINX_ENV=production`, only those languages in `release_languages` (set in `conf.py`)
76
+
* when `SPHINX_ENV=production`, only those languages in `release_languages` (set in `conf.py`)
73
77
are built and included in the language selector.
74
78
75
79
Most of the time you should not need to set `SPHINX_ENV`,
76
80
as it is forced by the primary nox sessions intended to be used for release or development:
77
81
78
82
`SPHINX_ENV=development`
79
-
-`docs-live` - autobuild english
80
-
-`docs-live-lang` - autobuild a single language
81
-
-`docs-live-langs` - autobuild all languages
83
+
*`docs-live` - autobuild english
84
+
*`docs-live-lang` - autobuild a single language
85
+
*`docs-live-langs` - autobuild all languages
82
86
83
87
`SPHINX_ENV=production`
84
-
-`build-test` - build all languages for production
88
+
*`build-test` - build all languages for production
Copy file name to clipboardExpand all lines: documentation/repository-files/license-files.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -132,6 +132,13 @@ This would not be true with a GPL licensed package. `GPL-3` packages can include
132
132
133
133
While many permissive licenses do not require citation, we strongly encourage that you cite all software that you use in papers, blogs, and other publications. You tell your users how to cite your package by using a [citation.cff file](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-citation-files).
134
134
135
+
:::{tip} Additional resources on software citation
136
+
The Turing Way has excellent guides on this topic:
137
+
138
+
-[CITATION.cff files](https://book.the-turing-way.org/communication/citable/citable-cff) — detailed guide on creating and maintaining citation files
139
+
-[Software citation pathways](https://book.the-turing-way.org/pathways/pathways-software-citation) — overview of how software citation works in practice
140
+
:::
141
+
135
142
### Citation.cff files: Making your software citable
136
143
137
144
A `CITATION.cff` file is a machine-readable file that provides citation information for your software package. The "cff" stands for "Citation File Format," which is a standardized format for software citation metadata.
The first round of our community-developed, how to create a Python package tutorial series for scientists is complete! Join our community review process or watch development of future tutorials in our [GitHub repo here](https://github.com/pyOpenSci/python-package-guide).
62
62
@@ -91,6 +91,7 @@ The first round of our community-developed, how to create a Python package tutor
91
91
:class-card: left-aligned
92
92
93
93
*[Introduction to Hatch](/tutorials/get-to-know-hatch)
94
+
*[Run Python scripts using Hatch](/tutorials/run-python-scripts-hatch)
94
95
95
96
:::
96
97
::::
@@ -193,7 +194,6 @@ Learn about best practices for:
193
194
194
195
## Tests
195
196
196
-
197
197
:::::{grid} 1 1 2 2
198
198
:class-container: text-center
199
199
:gutter: 3
@@ -212,7 +212,8 @@ Learn about best practices for:
:alt: xkcd comic showing a stick figure on the ground and one in the air. The one on the ground is saying. `You're flying! how?` The person in the air replies `Python!` Below is a 3 rectangle comic with the following text in each box. Box 1 - I learned it last night. Everything is so simple. Hello world is just print hello world. Box 2 - the person on the ground says - come join us programming is fun again. It's a whole new world. But how are you flying? box 3 - the person flying says - i just typed import antigravity. I also sampled everything in the medicine cabinet. But i think this is the python. The person on the ground is saying - that's it?
Copy file name to clipboardExpand all lines: package-structure-code/intro.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
This section covers everything you need to structure your Python package, configure metadata, choose build tools, and publish your package to PyPI and conda-forge.
0 commit comments