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
@@ -180,3 +180,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
180
180
<!-- ALL-CONTRIBUTORS-LIST:END -->
181
181
182
182
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
+
[](https://star-history.com/#pyOpenSci/python-package-guide&Date)
Copy file name to clipboardExpand all lines: TRANSLATING.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -265,7 +265,7 @@ When you submit a PR for a translation, you should only include changes to one l
265
265
266
266
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'.
267
267
268
-
TODO: This tagging could be automated with a GitHub action.
268
+
TODO: This tagging could be automated with a GitHub Actions.
269
269
270
270
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.)
271
271
@@ -340,7 +340,7 @@ TODO: There are many approaches here, some projects release a translation as soo
340
340
341
341
### How can I get help with my translation?
342
342
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.
344
344
345
345
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?
Copy file name to clipboardExpand all lines: package-structure-code/python-package-distribution-files-sdist-wheel.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
@@ -78,7 +78,7 @@ Project metadata used to be stored in either a setup.py file or a setup.cfg file
78
78
79
79
### An example - xclim
80
80
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.
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 andprint it out on their website.
Copy file name to clipboardExpand all lines: tests/write-tests.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
@@ -18,7 +18,7 @@ Writing tests for your Python package is important because:
18
18
-**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.
19
19
-**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.
20
20
-**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.
Copy file name to clipboardExpand all lines: tutorials/installable-code.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -80,7 +80,7 @@ To make your Python code installable you need to create a specific directory str
80
80
- Some code.
81
81
- An `__init__.py` file in your code directory.
82
82
83
-
The directory structure you’ll create in this lesson will look like this:
83
+
The directory structure you'll create in this lesson will look like this:
84
84
85
85
```bash
86
86
pyospackage/ # Your project directory
@@ -118,7 +118,7 @@ import pyospackage
118
118
119
119
The **pyproject.toml** file is:
120
120
121
-
- Where you define your project’s metadata (including its name, authors, license, etc)
121
+
- Where you define your project's metadata (including its name, authors, license, etc)
122
122
- Where you define dependencies (the packages that it depends on)
123
123
- 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).
124
124
@@ -279,7 +279,7 @@ Python can support many different docstrings formats depending on the documentat
279
279
280
280
**pyOpenSci recommends using the NumPy Docstring convention.**
281
281
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.
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.
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.
481
481
482
482
Once you have your project metadata in the pyproject.toml file, you will
483
-
rarely update it. In the next lesson you’ll 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.
0 commit comments