Skip to content

Commit a57c53f

Browse files
authored
Merge branch 'main' into pkg-deps
2 parents 9a52db1 + 0f33652 commit a57c53f

17 files changed

+646
-69
lines changed

.all-contributorsrc

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,36 @@
314314
"code",
315315
"review"
316316
]
317+
},
318+
{
319+
"login": "Zeitsperre",
320+
"name": "Trevor James Smith",
321+
"avatar_url": "https://avatars.githubusercontent.com/u/10819524?v=4",
322+
"profile": "https://github.com/Zeitsperre",
323+
"contributions": [
324+
"code",
325+
"review"
326+
]
327+
},
328+
{
329+
"login": "merwok",
330+
"name": "Éric",
331+
"avatar_url": "https://avatars.githubusercontent.com/u/635179?v=4",
332+
"profile": "https://github.com/merwok",
333+
"contributions": [
334+
"code",
335+
"review"
336+
]
337+
},
338+
{
339+
"login": "kcranston",
340+
"name": "Karen Cranston",
341+
"avatar_url": "https://avatars.githubusercontent.com/u/312034?v=4",
342+
"profile": "https://karencranston.ca/",
343+
"contributions": [
344+
"code",
345+
"review"
346+
]
317347
}
318348
],
319349
"contributorsPerLine": 7,

.github/workflows/build-book.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: build-test-deploy-book
22

33
# Only build PRs, the main branch, and releases. Pushes to branches will only
4-
# be built when a PR is opened. This avoids duplicated buids in PRs coming
4+
# be built when a PR is opened. This avoids duplicated builds in PRs coming
55
# from branches in the origin repository (1 for PR and 1 for push).
66
# This came from Leo's work with fatiando
77
on:

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ repos:
1515

1616
# Misc commit checks
1717
- repo: https://github.com/pre-commit/pre-commit-hooks
18-
rev: v4.4.0
18+
rev: v4.5.0
1919
# ref: https://github.com/pre-commit/pre-commit-hooks#hooks-available
2020
hooks:
2121
# Autoformat: Makes sure files end in a newline and only a newline.
@@ -26,7 +26,7 @@ repos:
2626
- id: trailing-whitespace
2727

2828
- repo: https://github.com/codespell-project/codespell
29-
rev: v2.2.5
29+
rev: v2.2.6
3030
hooks:
3131
- id: codespell
3232
additional_dependencies:

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# <img src="images/logo/logo.png" width=40 /> pyOpenSci Scientific Python Open Source Packaging Guide
1+
# <img src="images/logo/logo.png" width=40 /> pyOpenSci scientific Python Packaging Guide
22
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
3-
[![All Contributors](https://img.shields.io/badge/all_contributors-30-orange.svg?style=flat-square)](#contributors-)
3+
[![All Contributors](https://img.shields.io/badge/all_contributors-33-orange.svg?style=flat-square)](#contributors-)
44
<!-- ALL-CONTRIBUTORS-BADGE:END -->
55

66
![GitHub release (latest by date)](https://img.shields.io/github/v/release/pyopensci/python-package-guide?color=purple&display_name=tag&style=plastic)
@@ -115,6 +115,9 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
115115
<tr>
116116
<td align="center" valign="top" width="14.28%"><a href="https://github.com/isabelizimm"><img src="https://avatars.githubusercontent.com/u/54685329?v=4?s=100" width="100px;" alt="Isabel Zimmerman"/><br /><sub><b>Isabel Zimmerman</b></sub></a><br /><a href="https://github.com/pyOpenSci/python-package-guide/commits?author=isabelizimm" title="Code">💻</a> <a href="https://github.com/pyOpenSci/python-package-guide/pulls?q=is%3Apr+reviewed-by%3Aisabelizimm" title="Reviewed Pull Requests">👀</a></td>
117117
<td align="center" valign="top" width="14.28%"><a href="https://orcid.org/0000-0001-6628-8033"><img src="https://avatars.githubusercontent.com/u/8931994?v=4?s=100" width="100px;" alt="Nick Murphy"/><br /><sub><b>Nick Murphy</b></sub></a><br /><a href="https://github.com/pyOpenSci/python-package-guide/commits?author=namurphy" title="Code">💻</a> <a href="https://github.com/pyOpenSci/python-package-guide/pulls?q=is%3Apr+reviewed-by%3Anamurphy" title="Reviewed Pull Requests">👀</a></td>
118+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Zeitsperre"><img src="https://avatars.githubusercontent.com/u/10819524?v=4?s=100" width="100px;" alt="Trevor James Smith"/><br /><sub><b>Trevor James Smith</b></sub></a><br /><a href="https://github.com/pyOpenSci/python-package-guide/commits?author=Zeitsperre" title="Code">💻</a> <a href="https://github.com/pyOpenSci/python-package-guide/pulls?q=is%3Apr+reviewed-by%3AZeitsperre" title="Reviewed Pull Requests">👀</a></td>
119+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/merwok"><img src="https://avatars.githubusercontent.com/u/635179?v=4?s=100" width="100px;" alt="Éric"/><br /><sub><b>Éric</b></sub></a><br /><a href="https://github.com/pyOpenSci/python-package-guide/commits?author=merwok" title="Code">💻</a> <a href="https://github.com/pyOpenSci/python-package-guide/pulls?q=is%3Apr+reviewed-by%3Amerwok" title="Reviewed Pull Requests">👀</a></td>
120+
<td align="center" valign="top" width="14.28%"><a href="https://karencranston.ca/"><img src="https://avatars.githubusercontent.com/u/312034?v=4?s=100" width="100px;" alt="Karen Cranston"/><br /><sub><b>Karen Cranston</b></sub></a><br /><a href="https://github.com/pyOpenSci/python-package-guide/commits?author=kcranston" title="Code">💻</a> <a href="https://github.com/pyOpenSci/python-package-guide/pulls?q=is%3Apr+reviewed-by%3Akcranston" title="Reviewed Pull Requests">👀</a></td>
118121
</tr>
119122
</tbody>
120123
</table>

_static/pyos.css

Lines changed: 132 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,51 @@
1+
html, body {
2+
font-size: 1.0rem;
3+
}
4+
5+
/* Allow the center content to expand to wide on wide screens */
6+
@media (min-width: 960px){
7+
.bd-page-width {
8+
max-width: min(100%, 1600px)!important;
9+
}
10+
}
11+
12+
/* Make sure the header nav is centered - not sure why it's not overriding*/
13+
.navbar-header-items .me-auto, .me-auto .navbar-header-items__center {
14+
margin-left: auto!important;
15+
margin-right: auto!important;
16+
}
17+
18+
/* custom fonts */
19+
120
html, body {
221
font-size: 1.02rem;
22+
font-family: 'Poppins', sans-serif!important;
323
}
424

525
body p {
626
}
727

828
.admonition {
9-
margin-top: 40px;
10-
margin-bottom: 40px;
29+
margin-top: 60px!important;
30+
margin-bottom: 70px!important;
1131
}
1232

13-
h1, h2, h3, h4 {
33+
h2, h3, h4 {
34+
font-family: 'Poppins', sans-serif!important;
1435
}
1536

1637
h1 {
17-
margin-top: 50px;
38+
margin-top: 10px;
1839
margin-bottom: 40px;
40+
font-family: 'Itim'!important;
41+
color: #542568;
1942
}
2043
h2 {
21-
margin-top: 60px;
44+
margin-top: 80px;
2245
}
2346

2447
h3 {
25-
margin-top: 40px}
48+
margin-top: 60px}
2649

2750
figcaption .caption-text {
2851
text-align: left!important;
@@ -40,5 +63,107 @@ figcaption {
4063

4164

4265
.admonition p {
43-
font-size: 1em;
66+
font-size: .9em;
67+
}
68+
69+
70+
/* Tutorial block page */
71+
.left-div {
72+
background-color: #3498db;
73+
color: #fff;
74+
text-align: center;
75+
padding: 20px;
76+
width: 35%;
77+
border-radius: 10px;
78+
}
79+
80+
.right-div {
81+
margin-top: 10px;
82+
}
83+
84+
.lesson-div {
85+
cursor: pointer;
86+
transition: background-color 0.3s;
87+
margin-bottom: 10px;
88+
padding: 10px;
89+
border-radius: 5px;
90+
text-align: center;
91+
color: #333;
92+
}
93+
94+
.lesson-div a {
95+
color: inherit;
96+
text-decoration: none;
97+
display: block;
98+
height: 100%;
99+
width: 100%;
100+
}
101+
102+
.lesson-div:hover {
103+
background-color: #ccc;
104+
}
105+
106+
/* Different colors and their shades */
107+
.lesson-div:nth-child(1) {
108+
background-color: #216A6B;
109+
color: #fff;
110+
}
111+
112+
.lesson-div:nth-child(2) {
113+
background-color: #6D597A;
114+
color: #fff;
115+
}
116+
117+
.lesson-div:nth-child(3) {
118+
background-color: #B56576;
119+
color: #fff;
120+
}
121+
122+
.lesson-div:nth-child(4) {
123+
background-color: #3A8C8E; /* Shade of #216A6B */
124+
}
125+
126+
.lesson-div:nth-child(5) {
127+
background-color: #8F7B8D; /* Shade of #6D597A */
128+
}
129+
130+
.lesson-div:nth-child(6) {
131+
background-color: #D78287; /* Shade of #B56576 */
132+
}
133+
134+
.lesson-div:nth-child(7) {
135+
background-color: #185355; /* Darker shade of #216A6B */
136+
color: #fff;
137+
}
138+
139+
140+
141+
html[data-theme=light] {
142+
--pst-color-primary: #703c87;
143+
--pst-color-primary-text: #fff;
144+
--pst-color-primary-highlight: #053f49;
145+
--sd-color-primary: var(--pst-color-primary);
146+
--sd-color-primary-text: var(--pst-color-primary-text);
147+
--sd-color-primary-highlight: var(--pst-color-primary-highlight);
148+
--sd-color-primary-bg: #d0ecf1;
149+
--sd-color-primary-bg-text: #14181e;
150+
--pst-color-secondary: #8045e5;
151+
--pst-color-secondary-text: #fff;
152+
--pst-color-secondary-highlight: #591bc2;
153+
--sd-color-secondary: var(--pst-color-secondary);
154+
--sd-color-secondary-text: var(--pst-color-secondary-text);
155+
--sd-color-secondary-highlight: var(--pst-color-secondary-highlight);
156+
--sd-color-secondary-bg: #e0c7ff;
157+
--sd-color-secondary-bg-text: #14181e;
158+
--pst-color-success: #00843f;
159+
--pst-color-success-text: #fff;
160+
--pst-color-success-highlight: #00381a;
161+
--sd-color-success: var(--pst-color-success);
162+
--sd-color-success-text: var(--pst-color-success-text);
163+
--sd-color-success-highlight: var(--pst-color-success-highlight);
164+
--sd-color-success-bg: #d6ece1;
165+
--sd-color-success-bg-text: #14181e;
166+
--pst-color-info: #A66C98; /* general admonition */
167+
--pst-color-info-bg: #eac8e2;
168+
--pst-heading-color: #542568;
44169
}

_templates/header.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!-- custom head content-->
2-
3-
<!-- <link rel="preconnect" href="https://fonts.googleapis.com">
2+
<link rel="preconnect" href="https://fonts.googleapis.com">
43
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
5-
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&family=Raleway:wght@200;300;400;600&display=swap" rel="stylesheet"> -->
4+
<link href="https://fonts.googleapis.com/css2?family=Itim&family=Poppins:wght@300;400;600&display=swap" rel="stylesheet">
5+
66
<!-- END custom head content -->

conf.py

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,15 @@
5151

5252
# Link to our repo for easy PR/ editing
5353
html_theme_options = {
54+
"favicons": [
55+
{
56+
"rel": "icon",
57+
"sizes": "16x16",
58+
"href": "https://www.pyopensci.org/images/favicon.ico",
59+
},
60+
],
5461
"announcement": "<p><a href='https://www.pyopensci.org/software-peer-review/about/intro.html'>Submit Your Python Package for Peer Review - Learn More!</a></p>🚧 This guide is currently being developed! 🚧 ",
62+
#"navbar_center": ["nav"], this can be a way to override the default navigation structure
5563
"external_links": [
5664
{
5765
"url": "https://www.pyopensci.org",
@@ -74,17 +82,19 @@
7482
},
7583
],
7684
"logo": {
77-
"text": "Python Package Guide",
85+
"text": "Python Packaging",
7886
"image_dark": "logo-dark-mode.png",
7987
"image_light": "logo-light-mode.png",
8088
"alt_text": "pyOpenSci Python Package Guide. The pyOpenSci logo is a purple flower with pyOpenSci under it. The o in open sci is the center of the flower",
8189
},
82-
"header_links_before_dropdown": 3,
90+
"header_links_before_dropdown": 4,
8391
"use_edit_page_button": True,
92+
"show_nav_level": 2,
93+
"navigation_depth": 3,
8494
"show_toc_level": 1,
8595
# "navbar_align": "left", # [left, content, right] For testing that the navbar items align properly
8696
"github_url": "https://github.com/pyopensci/python-package-guide",
87-
"twitter_url": "https://twitter.com/pyopensci",
97+
8898
"footer_items": ["copyright"],
8999
}
90100

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
# The CODE_OF_CONDUCT.md file In Your Python Open Source Package
1+
# The CODE_OF_CONDUCT file - Python Packaging
22

3-
```{admonition} Example Code of Conduct files
3+
```{admonition} Example CODE_OF_CONDUCT files
44
:class: tip
55
66
* [SciPy Code of Conduct file - notice they included theirs in their documentation](https://docs.scipy.org/doc/scipy/dev/conduct/code_of_conduct.html)
7-
* [fatiando code of conduct file](https://github.com/fatiando/community/blob/main/CODE_OF_CONDUCT.md)
7+
* [fatiando CODE_OF_CONDUCT.md file](https://github.com/fatiando/community/blob/main/CODE_OF_CONDUCT.md)
88
```
99

10-
Your package should have a **CODE_OF_CONDUCT.md** file located
10+
Your package should have a `CODE_OF_CONDUCT.md` file located
1111
the root of the repository. Once you have people using your
1212
package, you can consider the package itself as having a community
1313
around it. Some of this community uses your tool. These users
@@ -17,20 +17,20 @@ Others in the community might want to contribute to your tool.
1717
They might fix bugs, update documentation and engage with the
1818
maintainer team.
1919

20-
## Why you need a code of conduct
20+
## Why you need a CODE_OF_CONDUCT
2121

2222
In order to keep this community healthy and to protect yourself,
23-
your mainatianer team and your users from unhealthy behavior,
24-
it is important to have a [code of conduct](https://opensource.guide/code-of-conduct/).
23+
your maintainer team and your users from unhealthy behavior,
24+
it is important to have a [`CODE_OF_CONDUCT`](https://opensource.guide/code-of-conduct/).
2525

26-
The code of conduct is important
26+
The `CODE_OF_CONDUCT` is important
2727
as it establishes what you expect in terms of how users and
2828
contributors interact with maintainers and each other. It also
2929
establishes rules and expectations which can then be enforced
30-
if need be to protect others from harmful and/or negative behaviors.
30+
if need be to protect others from harmful and/or negative behaviors.
3131

3232
If you are not comfortable
33-
with creating your own code of conduct text, we encourage you to adopt the
34-
code of conduct language used in the [Contributor Covenant](https://www.contributor-covenant.org/version/2/1/code_of_conduct/).
35-
[Many other communities](https://www.contributor-covenant.org/adopters/) have adopted this code of conduct as
33+
with creating your own `CODE_OF_CONDUCT` text, we encourage you to adopt the
34+
`CODE_OF_CONDUCT` language used in the [Contributor Covenant](https://www.contributor-covenant.org/version/2/1/code_of_conduct/).
35+
[Many other communities](https://www.contributor-covenant.org/adopters/) have adopted this `CODE_OF_CONDUCT` as
3636
their own. See the [Fatiando a Terra Geoscience Python community's example here.](https://github.com/fatiando/community/blob/main/CODE_OF_CONDUCT.md)

0 commit comments

Comments
 (0)