Skip to content

Commit cf13f27

Browse files
authored
Merge branch 'main' into patch-9
2 parents 02e8b0f + 1d93ade commit cf13f27

File tree

12 files changed

+54
-36
lines changed

12 files changed

+54
-36
lines changed

.all-contributorsrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,8 @@
730730
"profile": "https://www.linkedin.com/in/ncclementi/",
731731
"contributions": [
732732
"code",
733-
"review"
733+
"review",
734+
"translation"
734735
]
735736
},
736737
{

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ pyOpenSci is devoted to building diverse, supportive community around
1414
the Python open source tools that drive open science. We do this through:
1515

1616
* open peer review
17-
* mentorship and
18-
* training.
17+
* mentorship
18+
* training
1919

2020
pyOpenSci is an independent organization, fiscally sponsored by Community
2121
Initiatives.
@@ -164,7 +164,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
164164
<td align="center" valign="top" width="14.28%"><a href="https://github.com/hpodzorski-USGS"><img src="https://avatars.githubusercontent.com/u/159824971?v=4?s=100" width="100px;" alt="hpodzorski-USGS"/><br /><sub><b>hpodzorski-USGS</b></sub></a><br /><a href="https://github.com/pyOpenSci/python-package-guide/commits?author=hpodzorski-USGS" title="Code">💻</a> <a href="https://github.com/pyOpenSci/python-package-guide/pulls?q=is%3Apr+reviewed-by%3Ahpodzorski-USGS" title="Reviewed Pull Requests">👀</a></td>
165165
</tr>
166166
<tr>
167-
<td align="center" valign="top" width="14.28%"><a href="https://www.linkedin.com/in/ncclementi/"><img src="https://avatars.githubusercontent.com/u/7526622?v=4?s=100" width="100px;" alt="Naty Clementi"/><br /><sub><b>Naty Clementi</b></sub></a><br /><a href="https://github.com/pyOpenSci/python-package-guide/commits?author=ncclementi" title="Code">💻</a> <a href="https://github.com/pyOpenSci/python-package-guide/pulls?q=is%3Apr+reviewed-by%3Ancclementi" title="Reviewed Pull Requests">👀</a></td>
167+
<td align="center" valign="top" width="14.28%"><a href="https://www.linkedin.com/in/ncclementi/"><img src="https://avatars.githubusercontent.com/u/7526622?v=4?s=100" width="100px;" alt="Naty Clementi"/><br /><sub><b>Naty Clementi</b></sub></a><br /><a href="https://github.com/pyOpenSci/python-package-guide/commits?author=ncclementi" title="Code">💻</a> <a href="https://github.com/pyOpenSci/python-package-guide/pulls?q=is%3Apr+reviewed-by%3Ancclementi" title="Reviewed Pull Requests">👀</a> <a href="#translation-ncclementi" title="Translation">🌍</a></td>
168168
<td align="center" valign="top" width="14.28%"><a href="https://github.com/John-Drake"><img src="https://avatars.githubusercontent.com/u/22374979?v=4?s=100" width="100px;" alt="John Drake"/><br /><sub><b>John Drake</b></sub></a><br /><a href="https://github.com/pyOpenSci/python-package-guide/commits?author=John-Drake" title="Code">💻</a> <a href="https://github.com/pyOpenSci/python-package-guide/pulls?q=is%3Apr+reviewed-by%3AJohn-Drake" title="Reviewed Pull Requests">👀</a></td>
169169
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Revathyvenugopal162"><img src="https://avatars.githubusercontent.com/u/104772255?v=4?s=100" width="100px;" alt="Revathy Venugopal"/><br /><sub><b>Revathy Venugopal</b></sub></a><br /><a href="https://github.com/pyOpenSci/python-package-guide/commits?author=Revathyvenugopal162" title="Code">💻</a> <a href="https://github.com/pyOpenSci/python-package-guide/pulls?q=is%3Apr+reviewed-by%3ARevathyvenugopal162" title="Reviewed Pull Requests">👀</a> <a href="https://github.com/pyOpenSci/python-package-guide/commits?author=Revathyvenugopal162" title="Documentation">📖</a></td>
170170
<td align="center" valign="top" width="14.28%"><a href="https://github.com/tkoyama010"><img src="https://avatars.githubusercontent.com/u/7513610?v=4?s=100" width="100px;" alt="Tetsuo Koyama"/><br /><sub><b>Tetsuo Koyama</b></sub></a><br /><a href="https://github.com/pyOpenSci/python-package-guide/commits?author=tkoyama010" title="Code">💻</a> <a href="https://github.com/pyOpenSci/python-package-guide/pulls?q=is%3Apr+reviewed-by%3Atkoyama010" title="Reviewed Pull Requests">👀</a> <a href="https://github.com/pyOpenSci/python-package-guide/commits?author=tkoyama010" title="Documentation">📖</a> <a href="#translation-tkoyama010" title="Translation">🌍</a></td>
@@ -180,3 +180,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
180180
<!-- ALL-CONTRIBUTORS-LIST:END -->
181181

182182
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
183+
184+
## Star History
185+
186+
[![Star History Chart](https://api.star-history.com/svg?repos=pyOpenSci/python-package-guide&type=Date)](https://star-history.com/#pyOpenSci/python-package-guide&Date)

TRANSLATING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ When you submit a PR for a translation, you should only include changes to one l
265265

266266
Translations PRs will be tagged with a label indicating the language to make them easier to identify and review. For example, contributions to the Spanish translation will be tagged with 'lang-es'.
267267

268-
TODO: This tagging could be automated with a GitHub action.
268+
TODO: This tagging could be automated with a GitHub Actions.
269269

270270
When you submit the PR, make sure to include a short description of the changes you made and any context that might be helpful for the reviewer (e.g., you translated new strings, you reviewed fuzzy entries, you fixed typos, etc.)
271271

@@ -340,7 +340,7 @@ TODO: There are many approaches here, some projects release a translation as soo
340340

341341
### How can I get help with my translation?
342342

343-
If you have any questions or need help with your translation, you can create an issue in the repository if you encounter any problems or need assistance.
343+
If you have any questions or need help with your translation, you can create an issue in the repository.
344344

345345
TODO: Maybe [Discourse](https://pyopensci.discourse.group/) could be used as a way for contributors to ask for help with translations or the translation workflow?
346346

locales/es/LC_MESSAGES/tutorials.po

Lines changed: 30 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -22,94 +22,107 @@ msgstr ""
2222

2323
#: ../../tutorials/add-license-coc.md:1
2424
msgid "Add a `LICENSE` & `CODE_OF_CONDUCT` to your Python package"
25-
msgstr ""
25+
msgstr "Agrega `LICENSE` y `CODE_OF_CONDUCT` a tu paquete de Python"
2626

2727
#: ../../tutorials/add-license-coc.md:3
2828
msgid "In the [previous lesson](add-readme) you:"
29-
msgstr ""
29+
msgstr "En la [sección anterior](add-readme) tu:"
3030

3131
#: ../../tutorials/add-license-coc.md:5
3232
msgid ""
3333
"<i class=\"fa-solid fa-circle-check\" style=\"color: #703c87;\"></i> "
3434
"Created a basic `README.md` file for your scientific Python package"
35-
msgstr ""
35+
msgstr "Creaste un archivo `README.md` para tu paquete the Python científico"
3636

3737
#: ../../tutorials/add-license-coc.md:7
3838
msgid ""
3939
"<i class=\"fa-solid fa-circle-check\" style=\"color: #703c87;\"></i> "
4040
"Learned about the core components that are useful to have in a `README` "
4141
"file."
42-
msgstr ""
42+
msgstr "Aprendiste acerca de los componentes principales que son útiles de tener en "
43+
"un archivo `README`."
4344

4445
#: ../../tutorials/add-license-coc.md:9 ../../tutorials/add-readme.md:10
4546
msgid "Learning objectives"
46-
msgstr ""
47+
msgstr "Objetivos de aprendizaje"
4748

4849
#: ../../tutorials/add-license-coc.md:12 ../../tutorials/add-readme.md:12
4950
#: ../../tutorials/installable-code.md:41 ../../tutorials/pyproject-toml.md:22
5051
#: ../../tutorials/setup-py-to-pyproject-toml.md:15
5152
msgid "In this lesson you will learn:"
52-
msgstr ""
53+
msgstr "En esta lección aprenderas:"
5354

5455
#: ../../tutorials/add-license-coc.md:14
5556
msgid ""
5657
"How to select a license and add a `LICENSE` file to your package "
5758
"repository, with a focus on the GitHub interface."
58-
msgstr ""
59+
msgstr "Como seleccionar una licencia y agregar un archivo `LICENSE` al "
60+
"repositorio de tu paquete, con enfoque en la interface de Github"
5961

6062
#: ../../tutorials/add-license-coc.md:15
6163
msgid "How to add a `CODE_OF_CONDUCT` file to your package repository."
62-
msgstr ""
64+
msgstr "Como agregar un archivo `CODE_OF_CONDUCT` al repositorio de tu paquete"
6365

6466
#: ../../tutorials/add-license-coc.md:16
6567
msgid ""
6668
"How you can use the Contributors Covenant website to add generic language"
6769
" as a starting place for your `CODE_OF_CONDUCT`."
68-
msgstr ""
70+
msgstr "Como usar el sitio web de Contributors Covenant para agregar lenguage"
71+
" genérico como punto de partida para tu `CODE_OF_CONDUCT`"
6972

7073
#: ../../tutorials/add-license-coc.md:19
7174
msgid "What is a license?"
72-
msgstr ""
75+
msgstr "¿Qué es una licencia?"
7376

7477
#: ../../tutorials/add-license-coc.md:21
7578
msgid ""
7679
"A license contains legal language about how users can use and reuse your "
7780
"software. To set the `LICENSE` for your project, you:"
78-
msgstr ""
81+
msgstr "Una licencia contiene lenguaje legal acerca de como los usuarios pueden "
82+
"usar y reusar tu software. Para establecer un archivo `LICENSE` para tu"
83+
" projecto, tu: "
7984

8085
#: ../../tutorials/add-license-coc.md:23
8186
msgid ""
8287
"create a `LICENSE` file in your project directory that specifies the "
8388
"license that you choose for your package and"
84-
msgstr ""
89+
msgstr "creas un archivo `LICENSE` en el directorio de tu proyecto que "
90+
"especifique la licencia que que elejiste para tu paquete y"
8591

8692
#: ../../tutorials/add-license-coc.md:24
8793
msgid "reference that file in your `pyproject.toml` data where metadata are set."
88-
msgstr ""
94+
msgstr "haces referencia a ese archivo en el `pyproject.toml` donde la metadata"
95+
" es especificada"
8996

9097
#: ../../tutorials/add-license-coc.md:26
9198
msgid ""
9299
"By adding the `LICENSE` file to your `pyproject.toml` file, the `LICENSE`"
93100
" will be included in your package's metadata which is used to populate "
94101
"your package's PyPI landing page. The `LICENSE` is also used in your "
95102
"GitHub repository's landing page interface."
96-
msgstr ""
103+
msgstr "Al incluir el archivo `LICENSE` en tu archivo `pyproject.toml`, la "
104+
"`LICENSE` sera incluída en la metadata de tu paquete y esta es utilizada para"
105+
" rellenar la página de entrada de tu paquete en PyPI. La `LICENSE` también es "
106+
" utilizada en la página de entrada de tu repositorio de GitHub"
97107

98108
#: ../../tutorials/add-license-coc.md:28
99109
msgid "What license should you use?"
100-
msgstr ""
110+
msgstr "¿Qué licencia deberías elegir?"
101111

102112
#: ../../tutorials/add-license-coc.md:30
103113
msgid ""
104114
"We suggest that you use a permissive license that accommodates the other "
105115
"most commonly used licenses in the scientific Python ecosystem (MIT[^mit]"
106116
" and BSD-3[^bsd3]). If you are unsure, use MIT given it's the generally "
107117
"recommended license on [choosealicense.com](https://choosealicense.com/)."
108-
msgstr ""
118+
msgstr "Nosotros sugerimos que uses una licencia permissiva que acomode otras"
119+
" licencias comúnmente usadas en el ecosistema de Python científico (MIT[^mit]"
120+
" and BSD-3[^bsd3]). Si tienes dudas, usa MIT dado que es la licencia"
121+
" generalmente recomendada en [choosealicense.com](https://choosealicense.com/)"
109122

110123
#: ../../tutorials/add-license-coc.md:33
111124
msgid "Licenses for the scientific Python ecosystem"
112-
msgstr ""
125+
msgstr "Licencias para el ecosistema de Python científico"
113126

114127
#: ../../tutorials/add-license-coc.md:34
115128
msgid ""

package-structure-code/python-package-distribution-files-sdist-wheel.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Project metadata used to be stored in either a setup.py file or a setup.cfg file
7878

7979
### An example - xclim
8080

81-
When you publish to PyPI, you will notice that each package has metadata listed. Lets have a look at [xclim](https://pypi.org/project/xclim/), one of our [pyOpenSci packages](https://www.pyopensci.org/python-packages.html). Notice that on the PyPI landing page you see some metadata about the package including python, maintainer information and more. PyPI is able to populate this metadata because it was defined using correct syntax and classifiers by Xclim's maintainers, [pyproject.toml file](https://github.com/Ouranosinc/xclim/blob/master/pyproject.toml). This metadata when the xclim package is built, is translated into a distribution file that allows PyPI to read the metadata and print it out on their website.
81+
When you publish to PyPI, you will notice that each package has metadata listed. Let's have a look at [xclim](https://pypi.org/project/xclim/), one of our [pyOpenSci packages](https://www.pyopensci.org/python-packages.html). Notice that on the PyPI landing page you see some metadata about the package including python, maintainer information and more. PyPI is able to populate this metadata because it was defined using correct syntax and classifiers by Xclim's maintainers, [pyproject.toml file](https://github.com/Ouranosinc/xclim/blob/master/pyproject.toml). This metadata when the xclim package is built, is translated into a distribution file that allows PyPI to read the metadata and print it out on their website.
8282

8383
```{figure} ../images/python-build-package/pypi-metadata-classifiers.png
8484
:scale: 50 %

package-structure-code/python-package-versions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ package versions:
105105
### Semantic release, vs version control based vs manual version bumping
106106

107107
Generally semantic release and version control system tools
108-
can be setup to run automatically on GitHub using GitHub actions.
108+
can be setup to run automatically on GitHub using GitHub Actions.
109109
This means that you can create a workflow where a GitHub release
110110
and associated new version tag is used to trigger an automated
111111
build that:

tests/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ of Python, then using an automation tool such as nox to run your tests is useful
5353
:link-type: doc
5454
:class-card: left-aligned
5555

56-
Continuous integration platforms such as GitHub actions can be
56+
Continuous integration platforms such as GitHub Actions can be
5757
useful for running your tests across both different Python versions
5858
and different operating systems. Learn about setting up tests to run in Continuous Integration here.
5959
:::

tests/tests-ci.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ It allows users to contribute code, documentation fixes and more without
1919
having to create development environments, run tests and build documentation
2020
locally.
2121

22-
## Example GitHub action that runs tests
22+
## Example GitHub Actions that runs tests
2323

24-
Below is an example GitHub action that runs tests using nox
24+
Below is an example GitHub Actions that runs tests using nox
2525
across both Windows, Mac and Linux and on Python versions
2626
3.9-3.11.
2727

tests/write-tests.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Writing tests for your Python package is important because:
1818
- **Fearless Refactoring:** Refactoring means making improvements to your code structure without changing its behavior. Tests empower you to make these changes as if you break something, test failures will let you know.
1919
- **Documentation:** Tests serve as technical examples of how to use your package. This can be helpful for a new technical contributor that wants to contribute code to your package. They can look at your tests to understand how parts of your code functionality fits together.
2020
- **Long-Term ease of maintenance:** As your package evolves, tests ensure that your code continues to behave as expected, even as you make changes over time. Thus you are helping your future self when writing tests.
21-
- **Easier pull request reviews:** By running your tests in a CI framework such as GitHub actions, each time you or a contributor makes a change to your code-base, you can catch issues and things that may have changed in your code base. This ensures that your software behaves the way you expect it to.
21+
- **Easier pull request reviews:** By running your tests in a CI framework such as GitHub Actions, each time you or a contributor makes a change to your code-base, you can catch issues and things that may have changed in your code base. This ensures that your software behaves the way you expect it to.
2222

2323
### Tests for user edge cases
2424

tutorials/installable-code.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ To make your Python code installable you need to create a specific directory str
8080
- Some code.
8181
- An `__init__.py` file in your code directory.
8282

83-
The directory structure youll create in this lesson will look like this:
83+
The directory structure you'll create in this lesson will look like this:
8484

8585
```bash
8686
pyospackage/ # Your project directory
@@ -118,7 +118,7 @@ import pyospackage
118118

119119
The **pyproject.toml** file is:
120120

121-
- Where you define your projects metadata (including its name, authors, license, etc)
121+
- Where you define your project's metadata (including its name, authors, license, etc)
122122
- Where you define dependencies (the packages that it depends on)
123123
- Used to specify and configure what build backend you want to use to [build your package](../package-structure-code/python-package-distribution-files-sdist-wheel).
124124

@@ -279,7 +279,7 @@ Python can support many different docstrings formats depending on the documentat
279279

280280
**pyOpenSci recommends using the NumPy Docstring convention.**
281281

282-
If you arent familiar with docstrings or typing yet, that is ok. You can review [this page in the pyOpenSci packaging guide](https://www.pyopensci.org/python-package-guide/documentation/write-user-documentation/document-your-code-api-docstrings.html) for an overview of both topics.
282+
If you aren't familiar with docstrings or typing yet, that is ok. You can review [this page in the pyOpenSci packaging guide](https://www.pyopensci.org/python-package-guide/documentation/write-user-documentation/document-your-code-api-docstrings.html) for an overview of both topics.
283283

284284
```python
285285
def add_num(a: int, b: int) -> int:
@@ -480,7 +480,7 @@ Source = "https://github.com/unknown/pyospackage"
480480
The core information that you need in a `pyproject.toml` file in order to publish on PyPI is your **package's name** and the **version**. However, we suggest that you flesh out your metadata early on in the `pyproject.toml` file.
481481

482482
Once you have your project metadata in the pyproject.toml file, you will
483-
rarely update it. In the next lesson youll add more metadata and structure to this file.
483+
rarely update it. In the next lesson you'll add more metadata and structure to this file.
484484
:::
485485

486486
## Step 5: Install your package locally

tutorials/publish-pypi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ to TestPyPI. You need to:
5858
1. **Publish to TestPyPI using `hatch publish`**
5959

6060
In a future lesson, you will learn how to create an automated
61-
GitHub action workflow that publishes an updated
61+
GitHub Actions workflow that publishes an updated
6262
version of your package to PyPI every time you create a GitHub release.
6363

6464
:::{admonition} Learn more about building Python packages in our guide
@@ -360,7 +360,7 @@ For long run maintenance of your package, you have two options
360360
related to PyPI publication.
361361

362362
1. You can create a package-specific token which you will use to publish your package (manually) to PyPI. This is a great option if you don't wish to automate your PyPI publication workflow.
363-
2. You can also create an automated publication workflow on GitHub using GitHub actions. This is a great way to make the publication process easier and it also supports a growing maintainer team. In this case we suggest you don't worry about the token and instead setup a specific GitHub action that publishes your package when you make a release. You can then create a "trusted publisher" workflow on PyPI.
363+
2. You can also create an automated publication workflow on GitHub using GitHub Actions. This is a great way to make the publication process easier and it also supports a growing maintainer team. In this case we suggest you don't worry about the token and instead setup a specific GitHub Actions that publishes your package when you make a release. You can then create a "trusted publisher" workflow on PyPI.
364364

365365
You will learn how to create the automated trusted publisher workflow in a followup lesson.
366366

tutorials/pyproject-toml.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ When creating your pyproject.toml file, consider the following:
4040
* **name=**
4141
* **version=**
4242
3. You should add more metadata to the `[project]` table as it will make it easier for users to find your project on PyPI. And it will also make it easier for installers to understand how to install your package.
43-
3. When you are adding classifiers to the **[project]** table, only use valid values from [PyPIs classifier page](https://PyPI.org/classifiers/). An invalid value here will raise an error when you build and publish your package on PyPI.
43+
3. When you are adding classifiers to the **[project]** table, only use valid values from [PyPI's classifier page](https://PyPI.org/classifiers/). An invalid value here will raise an error when you build and publish your package on PyPI.
4444
4. There is no specific order for tables in the `pyproject.toml` file. However, fields need to be placed within the correct tables. For example `requires =` always need to be in the **[build-system]** table.
4545
5. We suggest that you include your **[build-system]** table at the top of your `pyproject.toml` file.
4646
:::

0 commit comments

Comments
 (0)