otoolbox 0.1.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. otoolbox-0.1.1/.coveragerc +28 -0
  2. otoolbox-0.1.1/.github/workflows/python-package.yml +40 -0
  3. otoolbox-0.1.1/.github/workflows/python-publish.yml +70 -0
  4. otoolbox-0.1.1/.gitignore +54 -0
  5. otoolbox-0.1.1/.readthedocs.yml +27 -0
  6. otoolbox-0.1.1/AUTHORS.rst +5 -0
  7. otoolbox-0.1.1/CHANGELOG.rst +10 -0
  8. otoolbox-0.1.1/CONTRIBUTING.rst +353 -0
  9. otoolbox-0.1.1/LICENSE +674 -0
  10. otoolbox-0.1.1/LICENSE.txt +21 -0
  11. otoolbox-0.1.1/PKG-INFO +78 -0
  12. otoolbox-0.1.1/README.md +47 -0
  13. otoolbox-0.1.1/README.rst +49 -0
  14. otoolbox-0.1.1/docs/Makefile +29 -0
  15. otoolbox-0.1.1/docs/_static/.gitignore +1 -0
  16. otoolbox-0.1.1/docs/authors.rst +2 -0
  17. otoolbox-0.1.1/docs/changelog.rst +2 -0
  18. otoolbox-0.1.1/docs/conf.py +286 -0
  19. otoolbox-0.1.1/docs/contributing.rst +1 -0
  20. otoolbox-0.1.1/docs/help-repo.txt +12 -0
  21. otoolbox-0.1.1/docs/index.rst +61 -0
  22. otoolbox-0.1.1/docs/license.rst +7 -0
  23. otoolbox-0.1.1/docs/readme.rst +2 -0
  24. otoolbox-0.1.1/docs/requirements.txt +5 -0
  25. otoolbox-0.1.1/pyproject.toml +9 -0
  26. otoolbox-0.1.1/setup.cfg +84 -0
  27. otoolbox-0.1.1/setup.py +22 -0
  28. otoolbox-0.1.1/src/otoolbox/__init__.py +146 -0
  29. otoolbox-0.1.1/src/otoolbox/addons/__init__.py +0 -0
  30. otoolbox-0.1.1/src/otoolbox/addons/help/__init__.py +37 -0
  31. otoolbox-0.1.1/src/otoolbox/addons/repositories/__init__.py +98 -0
  32. otoolbox-0.1.1/src/otoolbox/addons/repositories/admin.py +64 -0
  33. otoolbox-0.1.1/src/otoolbox/addons/repositories/data/repositories.json +307 -0
  34. otoolbox-0.1.1/src/otoolbox/addons/repositories/develop.py +40 -0
  35. otoolbox-0.1.1/src/otoolbox/addons/repositories/git.py +67 -0
  36. otoolbox-0.1.1/src/otoolbox/addons/repositories/linux.py +90 -0
  37. otoolbox-0.1.1/src/otoolbox/addons/repositories/repo.py +98 -0
  38. otoolbox-0.1.1/src/otoolbox/addons/ubuntu/__init__.py +37 -0
  39. otoolbox-0.1.1/src/otoolbox/addons/vscode/__init__.py +34 -0
  40. otoolbox-0.1.1/src/otoolbox/addons/workspace/__init__.py +42 -0
  41. otoolbox-0.1.1/src/otoolbox/base.py +157 -0
  42. otoolbox-0.1.1/src/otoolbox/constants.py +11 -0
  43. otoolbox-0.1.1/src/otoolbox/data/WORKSPACE_README.md +3 -0
  44. otoolbox-0.1.1/src/otoolbox/data/banner.txt +29 -0
  45. otoolbox-0.1.1/src/otoolbox/data/docker-compose.yml +30 -0
  46. otoolbox-0.1.1/src/otoolbox/data/ubuntu-install-apps.sh +70 -0
  47. otoolbox-0.1.1/src/otoolbox/data/ubuntu-office-conf.sh +71 -0
  48. otoolbox-0.1.1/src/otoolbox/data/vscode-inputs.json +20 -0
  49. otoolbox-0.1.1/src/otoolbox/data/vscode-launch.json +51 -0
  50. otoolbox-0.1.1/src/otoolbox/data/vscode-settings.json +4 -0
  51. otoolbox-0.1.1/src/otoolbox/data/vscode-tasks.json +28 -0
  52. otoolbox-0.1.1/src/otoolbox/data/vscode-workspace.json +128 -0
  53. otoolbox-0.1.1/src/otoolbox/developer.py +104 -0
  54. otoolbox-0.1.1/src/otoolbox/env.py +65 -0
  55. otoolbox-0.1.1/src/otoolbox/repositories.py +102 -0
  56. otoolbox-0.1.1/src/otoolbox/utils.py +113 -0
  57. otoolbox-0.1.1/src/otoolbox/workspace.py +86 -0
  58. otoolbox-0.1.1/src/otoolbox.egg-info/PKG-INFO +78 -0
  59. otoolbox-0.1.1/src/otoolbox.egg-info/SOURCES.txt +65 -0
  60. otoolbox-0.1.1/src/otoolbox.egg-info/dependency_links.txt +1 -0
  61. otoolbox-0.1.1/src/otoolbox.egg-info/entry_points.txt +2 -0
  62. otoolbox-0.1.1/src/otoolbox.egg-info/not-zip-safe +1 -0
  63. otoolbox-0.1.1/src/otoolbox.egg-info/requires.txt +12 -0
  64. otoolbox-0.1.1/src/otoolbox.egg-info/top_level.txt +1 -0
  65. otoolbox-0.1.1/tests/test_conftest.py +56 -0
  66. otoolbox-0.1.1/tox.ini +93 -0
@@ -0,0 +1,28 @@
1
+ # .coveragerc to control coverage.py
2
+ [run]
3
+ branch = True
4
+ source = otoolbox
5
+ # omit = bad_file.py
6
+
7
+ [paths]
8
+ source =
9
+ src/
10
+ */site-packages/
11
+
12
+ [report]
13
+ # Regexes for lines to exclude from consideration
14
+ exclude_lines =
15
+ # Have to re-enable the standard pragma
16
+ pragma: no cover
17
+
18
+ # Don't complain about missing debug-only code:
19
+ def __repr__
20
+ if self\.debug
21
+
22
+ # Don't complain if tests don't hit defensive assertion code:
23
+ raise AssertionError
24
+ raise NotImplementedError
25
+
26
+ # Don't complain if non-runnable code isn't run:
27
+ if 0:
28
+ if __name__ == .__main__.:
@@ -0,0 +1,40 @@
1
+ # This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2
+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3
+
4
+ name: Python package
5
+
6
+ on:
7
+ push:
8
+ branches: ["main"]
9
+ pull_request:
10
+ branches: ["main"]
11
+
12
+ jobs:
13
+ build:
14
+ runs-on: ubuntu-latest
15
+ strategy:
16
+ fail-fast: false
17
+ matrix:
18
+ python-version: ["3.9", "3.10", "3.11"]
19
+
20
+ steps:
21
+ - uses: actions/checkout@v4
22
+ - name: Set up Python ${{ matrix.python-version }}
23
+ uses: actions/setup-python@v3
24
+ with:
25
+ python-version: ${{ matrix.python-version }}
26
+ - name: Install dependencies
27
+ run: |
28
+ python -m pip install --upgrade pip
29
+ python -m pip install flake8 pytest pytest-cov
30
+ python -m pip install -e .
31
+ if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
32
+ - name: Lint with flake8
33
+ run: |
34
+ # stop the build if there are Python syntax errors or undefined names
35
+ flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
36
+ # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
37
+ flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
38
+ - name: Test with pytest
39
+ run: |
40
+ pytest
@@ -0,0 +1,70 @@
1
+ # This workflow will upload a Python Package to PyPI when a release is created
2
+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
3
+
4
+ # This workflow uses actions that are not certified by GitHub.
5
+ # They are provided by a third-party and are governed by
6
+ # separate terms of service, privacy policy, and support
7
+ # documentation.
8
+
9
+ name: Upload Python Package
10
+
11
+ on:
12
+ release:
13
+ types: [published]
14
+
15
+ permissions:
16
+ contents: read
17
+
18
+ jobs:
19
+ release-build:
20
+ runs-on: ubuntu-latest
21
+
22
+ steps:
23
+ - uses: actions/checkout@v4
24
+
25
+ - uses: actions/setup-python@v5
26
+ with:
27
+ python-version: "3.x"
28
+
29
+ - name: Build release distributions
30
+ run: |
31
+ # NOTE: put your own distribution build steps here.
32
+ python -m pip install build
33
+ python -m build
34
+
35
+ - name: Upload distributions
36
+ uses: actions/upload-artifact@v4
37
+ with:
38
+ name: release-dists
39
+ path: dist/
40
+
41
+ pypi-publish:
42
+ runs-on: ubuntu-latest
43
+ needs:
44
+ - release-build
45
+ permissions:
46
+ # IMPORTANT: this permission is mandatory for trusted publishing
47
+ id-token: write
48
+
49
+ # Dedicated environments with protections for publishing are strongly recommended.
50
+ # For more information, see: https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#deployment-protection-rules
51
+ environment:
52
+ name: pypi
53
+ # OPTIONAL: uncomment and update to include your PyPI project URL in the deployment status:
54
+ # url: https://pypi.org/p/YOURPROJECT
55
+ #
56
+ # ALTERNATIVE: if your GitHub Release name is the PyPI project version string
57
+ # ALTERNATIVE: exactly, uncomment the following line instead:
58
+ # url: https://pypi.org/project/YOURPROJECT/${{ github.event.release.name }}
59
+
60
+ steps:
61
+ - name: Retrieve release distributions
62
+ uses: actions/download-artifact@v4
63
+ with:
64
+ name: release-dists
65
+ path: dist/
66
+
67
+ - name: Publish release distributions to PyPI
68
+ uses: pypa/gh-action-pypi-publish@release/v1
69
+ with:
70
+ packages-dir: dist/
@@ -0,0 +1,54 @@
1
+ # Temporary and binary files
2
+ *~
3
+ *.py[cod]
4
+ *.so
5
+ *.cfg
6
+ !.isort.cfg
7
+ !setup.cfg
8
+ *.orig
9
+ *.log
10
+ *.pot
11
+ __pycache__/*
12
+ .cache/*
13
+ .*.swp
14
+ */.ipynb_checkpoints/*
15
+ .DS_Store
16
+
17
+ # Project files
18
+ .ropeproject
19
+ .project
20
+ .pydevproject
21
+ .settings
22
+ .idea
23
+ .vscode
24
+ tags
25
+
26
+ # Package files
27
+ *.egg
28
+ *.eggs/
29
+ .installed.cfg
30
+ *.egg-info
31
+
32
+ # Unittest and coverage
33
+ htmlcov/*
34
+ .coverage
35
+ .coverage.*
36
+ .tox
37
+ junit*.xml
38
+ coverage.xml
39
+ .pytest_cache/
40
+
41
+ # Build and docs folder/files
42
+ build/*
43
+ dist/*
44
+ sdist/*
45
+ docs/api/*
46
+ docs/_rst/*
47
+ docs/_build/*
48
+ cover/*
49
+ MANIFEST
50
+
51
+ # Per-project virtualenvs
52
+ .venv*/
53
+ .conda*/
54
+ .python-version
@@ -0,0 +1,27 @@
1
+ # Read the Docs configuration file
2
+ # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3
+
4
+ # Required
5
+ version: 2
6
+
7
+ # Build documentation in the docs/ directory with Sphinx
8
+ sphinx:
9
+ configuration: docs/conf.py
10
+
11
+ # Build documentation with MkDocs
12
+ #mkdocs:
13
+ # configuration: mkdocs.yml
14
+
15
+ # Optionally build your docs in additional formats such as PDF
16
+ formats:
17
+ - pdf
18
+
19
+ build:
20
+ os: ubuntu-22.04
21
+ tools:
22
+ python: "3.11"
23
+
24
+ python:
25
+ install:
26
+ - requirements: docs/requirements.txt
27
+ - {path: ., method: pip}
@@ -0,0 +1,5 @@
1
+ ============
2
+ Contributors
3
+ ============
4
+
5
+ * Odoonix <info@odoonix.com>
@@ -0,0 +1,10 @@
1
+ =========
2
+ Changelog
3
+ =========
4
+
5
+ Version 0.1
6
+ ===========
7
+
8
+ - Feature A added
9
+ - FIX: nasty bug #1729 fixed
10
+ - add your changes here!
@@ -0,0 +1,353 @@
1
+ .. todo:: THIS IS SUPPOSED TO BE AN EXAMPLE. MODIFY IT ACCORDING TO YOUR NEEDS!
2
+
3
+ The document assumes you are using a source repository service that promotes a
4
+ contribution model similar to `GitHub's fork and pull request workflow`_.
5
+ While this is true for the majority of services (like GitHub, GitLab,
6
+ BitBucket), it might not be the case for private repositories (e.g., when
7
+ using Gerrit).
8
+
9
+ Also notice that the code examples might refer to GitHub URLs or the text
10
+ might use GitHub specific terminology (e.g., *Pull Request* instead of *Merge
11
+ Request*).
12
+
13
+ Please make sure to check the document having these assumptions in mind
14
+ and update things accordingly.
15
+
16
+ .. todo:: Provide the correct links/replacements at the bottom of the document.
17
+
18
+ .. todo:: You might want to have a look on `PyScaffold's contributor's guide`_,
19
+
20
+ especially if your project is open source. The text should be very similar to
21
+ this template, but there are a few extra contents that you might decide to
22
+ also include, like mentioning labels of your issue tracker or automated
23
+ releases.
24
+
25
+
26
+ ============
27
+ Contributing
28
+ ============
29
+
30
+ Welcome to ``utils`` contributor's guide.
31
+
32
+ This document focuses on getting any potential contributor familiarized
33
+ with the development processes, but `other kinds of contributions`_ are also
34
+ appreciated.
35
+
36
+ If you are new to using git_ or have never collaborated in a project previously,
37
+ please have a look at `contribution-guide.org`_. Other resources are also
38
+ listed in the excellent `guide created by FreeCodeCamp`_ [#contrib1]_.
39
+
40
+ Please notice, all users and contributors are expected to be **open,
41
+ considerate, reasonable, and respectful**. When in doubt, `Python Software
42
+ Foundation's Code of Conduct`_ is a good reference in terms of behavior
43
+ guidelines.
44
+
45
+
46
+ Issue Reports
47
+ =============
48
+
49
+ If you experience bugs or general issues with ``utils``, please have a look
50
+ on the `issue tracker`_. If you don't see anything useful there, please feel
51
+ free to fire an issue report.
52
+
53
+ .. tip::
54
+ Please don't forget to include the closed issues in your search.
55
+ Sometimes a solution was already reported, and the problem is considered
56
+ **solved**.
57
+
58
+ New issue reports should include information about your programming environment
59
+ (e.g., operating system, Python version) and steps to reproduce the problem.
60
+ Please try also to simplify the reproduction steps to a very minimal example
61
+ that still illustrates the problem you are facing. By removing other factors,
62
+ you help us to identify the root cause of the issue.
63
+
64
+
65
+ Documentation Improvements
66
+ ==========================
67
+
68
+ You can help improve ``utils`` docs by making them more readable and coherent, or
69
+ by adding missing information and correcting mistakes.
70
+
71
+ ``utils`` documentation uses Sphinx_ as its main documentation compiler.
72
+ This means that the docs are kept in the same repository as the project code, and
73
+ that any documentation update is done in the same way was a code contribution.
74
+
75
+ .. todo:: Don't forget to mention which markup language you are using.
76
+
77
+ e.g., reStructuredText_ or CommonMark_ with MyST_ extensions.
78
+
79
+ .. todo:: If your project is hosted on GitHub, you can also mention the following tip:
80
+
81
+ .. tip::
82
+ Please notice that the `GitHub web interface`_ provides a quick way of
83
+ propose changes in ``utils``'s files. While this mechanism can
84
+ be tricky for normal code contributions, it works perfectly fine for
85
+ contributing to the docs, and can be quite handy.
86
+
87
+ If you are interested in trying this method out, please navigate to
88
+ the ``docs`` folder in the source repository_, find which file you
89
+ would like to propose changes and click in the little pencil icon at the
90
+ top, to open `GitHub's code editor`_. Once you finish editing the file,
91
+ please write a message in the form at the bottom of the page describing
92
+ which changes have you made and what are the motivations behind them and
93
+ submit your proposal.
94
+
95
+ When working on documentation changes in your local machine, you can
96
+ compile them using |tox|_::
97
+
98
+ tox -e docs
99
+
100
+ and use Python's built-in web server for a preview in your web browser
101
+ (``http://localhost:8000``)::
102
+
103
+ python3 -m http.server --directory 'docs/_build/html'
104
+
105
+
106
+ Code Contributions
107
+ ==================
108
+
109
+ .. todo:: Please include a reference or explanation about the internals of the project.
110
+
111
+ An architecture description, design principles or at least a summary of the
112
+ main concepts will make it easy for potential contributors to get started
113
+ quickly.
114
+
115
+ Submit an issue
116
+ ---------------
117
+
118
+ Before you work on any non-trivial code contribution it's best to first create
119
+ a report in the `issue tracker`_ to start a discussion on the subject.
120
+ This often provides additional considerations and avoids unnecessary work.
121
+
122
+ Create an environment
123
+ ---------------------
124
+
125
+ Before you start coding, we recommend creating an isolated `virtual
126
+ environment`_ to avoid any problems with your installed Python packages.
127
+ This can easily be done via either |virtualenv|_::
128
+
129
+ virtualenv <PATH TO VENV>
130
+ source <PATH TO VENV>/bin/activate
131
+
132
+ or Miniconda_::
133
+
134
+ conda create -n utils python=3 six virtualenv pytest pytest-cov
135
+ conda activate utils
136
+
137
+ Clone the repository
138
+ --------------------
139
+
140
+ #. Create an user account on |the repository service| if you do not already have one.
141
+ #. Fork the project repository_: click on the *Fork* button near the top of the
142
+ page. This creates a copy of the code under your account on |the repository service|.
143
+ #. Clone this copy to your local disk::
144
+
145
+ git clone git@github.com:YourLogin/utils.git
146
+ cd utils
147
+
148
+ #. You should run::
149
+
150
+ pip install -U pip setuptools -e .
151
+
152
+ to be able to import the package under development in the Python REPL.
153
+
154
+ .. todo:: if you are not using pre-commit, please remove the following item:
155
+
156
+ #. Install |pre-commit|_::
157
+
158
+ pip install pre-commit
159
+ pre-commit install
160
+
161
+ ``utils`` comes with a lot of hooks configured to automatically help the
162
+ developer to check the code being written.
163
+
164
+ Implement your changes
165
+ ----------------------
166
+
167
+ #. Create a branch to hold your changes::
168
+
169
+ git checkout -b my-feature
170
+
171
+ and start making changes. Never work on the main branch!
172
+
173
+ #. Start your work on this branch. Don't forget to add docstrings_ to new
174
+ functions, modules and classes, especially if they are part of public APIs.
175
+
176
+ #. Add yourself to the list of contributors in ``AUTHORS.rst``.
177
+
178
+ #. When you’re done editing, do::
179
+
180
+ git add <MODIFIED FILES>
181
+ git commit
182
+
183
+ to record your changes in git_.
184
+
185
+ .. todo:: if you are not using pre-commit, please remove the following item:
186
+
187
+ Please make sure to see the validation messages from |pre-commit|_ and fix
188
+ any eventual issues.
189
+ This should automatically use flake8_/black_ to check/fix the code style
190
+ in a way that is compatible with the project.
191
+
192
+ .. important:: Don't forget to add unit tests and documentation in case your
193
+ contribution adds an additional feature and is not just a bugfix.
194
+
195
+ Moreover, writing a `descriptive commit message`_ is highly recommended.
196
+ In case of doubt, you can check the commit history with::
197
+
198
+ git log --graph --decorate --pretty=oneline --abbrev-commit --all
199
+
200
+ to look for recurring communication patterns.
201
+
202
+ #. Please check that your changes don't break any unit tests with::
203
+
204
+ tox
205
+
206
+ (after having installed |tox|_ with ``pip install tox`` or ``pipx``).
207
+
208
+ You can also use |tox|_ to run several other pre-configured tasks in the
209
+ repository. Try ``tox -av`` to see a list of the available checks.
210
+
211
+ Submit your contribution
212
+ ------------------------
213
+
214
+ #. If everything works fine, push your local branch to |the repository service| with::
215
+
216
+ git push -u origin my-feature
217
+
218
+ #. Go to the web page of your fork and click |contribute button|
219
+ to send your changes for review.
220
+
221
+ .. todo:: if you are using GitHub, you can uncomment the following paragraph
222
+
223
+ Find more detailed information in `creating a PR`_. You might also want to open
224
+ the PR as a draft first and mark it as ready for review after the feedbacks
225
+ from the continuous integration (CI) system or any required fixes.
226
+
227
+
228
+ Troubleshooting
229
+ ---------------
230
+
231
+ The following tips can be used when facing problems to build or test the
232
+ package:
233
+
234
+ #. Make sure to fetch all the tags from the upstream repository_.
235
+ The command ``git describe --abbrev=0 --tags`` should return the version you
236
+ are expecting. If you are trying to run CI scripts in a fork repository,
237
+ make sure to push all the tags.
238
+ You can also try to remove all the egg files or the complete egg folder, i.e.,
239
+ ``.eggs``, as well as the ``*.egg-info`` folders in the ``src`` folder or
240
+ potentially in the root of your project.
241
+
242
+ #. Sometimes |tox|_ misses out when new dependencies are added, especially to
243
+ ``setup.cfg`` and ``docs/requirements.txt``. If you find any problems with
244
+ missing dependencies when running a command with |tox|_, try to recreate the
245
+ ``tox`` environment using the ``-r`` flag. For example, instead of::
246
+
247
+ tox -e docs
248
+
249
+ Try running::
250
+
251
+ tox -r -e docs
252
+
253
+ #. Make sure to have a reliable |tox|_ installation that uses the correct
254
+ Python version (e.g., 3.7+). When in doubt you can run::
255
+
256
+ tox --version
257
+ # OR
258
+ which tox
259
+
260
+ If you have trouble and are seeing weird errors upon running |tox|_, you can
261
+ also try to create a dedicated `virtual environment`_ with a |tox|_ binary
262
+ freshly installed. For example::
263
+
264
+ virtualenv .venv
265
+ source .venv/bin/activate
266
+ .venv/bin/pip install tox
267
+ .venv/bin/tox -e all
268
+
269
+ #. `Pytest can drop you`_ in an interactive session in the case an error occurs.
270
+ In order to do that you need to pass a ``--pdb`` option (for example by
271
+ running ``tox -- -k <NAME OF THE FALLING TEST> --pdb``).
272
+ You can also setup breakpoints manually instead of using the ``--pdb`` option.
273
+
274
+
275
+ Maintainer tasks
276
+ ================
277
+
278
+ Releases
279
+ --------
280
+
281
+ .. todo:: This section assumes you are using PyPI to publicly release your package.
282
+
283
+ If instead you are using a different/private package index, please update
284
+ the instructions accordingly.
285
+
286
+ If you are part of the group of maintainers and have correct user permissions
287
+ on PyPI_, the following steps can be used to release a new version for
288
+ ``utils``:
289
+
290
+ #. Make sure all unit tests are successful.
291
+ #. Tag the current commit on the main branch with a release tag, e.g., ``v1.2.3``.
292
+ #. Push the new tag to the upstream repository_, e.g., ``git push upstream v1.2.3``
293
+ #. Clean up the ``dist`` and ``build`` folders with ``tox -e clean``
294
+ (or ``rm -rf dist build``)
295
+ to avoid confusion with old builds and Sphinx docs.
296
+ #. Run ``tox -e build`` and check that the files in ``dist`` have
297
+ the correct version (no ``.dirty`` or git_ hash) according to the git_ tag.
298
+ Also check the sizes of the distributions, if they are too big (e.g., >
299
+ 500KB), unwanted clutter may have been accidentally included.
300
+ #. Run ``tox -e publish -- --repository pypi`` and check that everything was
301
+ uploaded to PyPI_ correctly.
302
+
303
+
304
+
305
+ .. [#contrib1] Even though, these resources focus on open source projects and
306
+ communities, the general ideas behind collaborating with other developers
307
+ to collectively create software are general and can be applied to all sorts
308
+ of environments, including private companies and proprietary code bases.
309
+
310
+
311
+ .. <-- start -->
312
+ .. todo:: Please review and change the following definitions:
313
+
314
+ .. |the repository service| replace:: GitHub
315
+ .. |contribute button| replace:: "Create pull request"
316
+
317
+ .. _repository: https://github.com/<USERNAME>/utils
318
+ .. _issue tracker: https://github.com/<USERNAME>/utils/issues
319
+ .. <-- end -->
320
+
321
+
322
+ .. |virtualenv| replace:: ``virtualenv``
323
+ .. |pre-commit| replace:: ``pre-commit``
324
+ .. |tox| replace:: ``tox``
325
+
326
+
327
+ .. _black: https://pypi.org/project/black/
328
+ .. _CommonMark: https://commonmark.org/
329
+ .. _contribution-guide.org: https://www.contribution-guide.org/
330
+ .. _creating a PR: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request
331
+ .. _descriptive commit message: https://chris.beams.io/posts/git-commit
332
+ .. _docstrings: https://www.sphinx-doc.org/en/master/usage/extensions/napoleon.html
333
+ .. _first-contributions tutorial: https://github.com/firstcontributions/first-contributions
334
+ .. _flake8: https://flake8.pycqa.org/en/stable/
335
+ .. _git: https://git-scm.com
336
+ .. _GitHub's fork and pull request workflow: https://guides.github.com/activities/forking/
337
+ .. _guide created by FreeCodeCamp: https://github.com/FreeCodeCamp/how-to-contribute-to-open-source
338
+ .. _Miniconda: https://docs.conda.io/en/latest/miniconda.html
339
+ .. _MyST: https://myst-parser.readthedocs.io/en/latest/syntax/syntax.html
340
+ .. _other kinds of contributions: https://opensource.guide/how-to-contribute
341
+ .. _pre-commit: https://pre-commit.com/
342
+ .. _PyPI: https://pypi.org/
343
+ .. _PyScaffold's contributor's guide: https://pyscaffold.org/en/stable/contributing.html
344
+ .. _Pytest can drop you: https://docs.pytest.org/en/stable/how-to/failures.html#using-python-library-pdb-with-pytest
345
+ .. _Python Software Foundation's Code of Conduct: https://www.python.org/psf/conduct/
346
+ .. _reStructuredText: https://www.sphinx-doc.org/en/master/usage/restructuredtext/
347
+ .. _Sphinx: https://www.sphinx-doc.org/en/master/
348
+ .. _tox: https://tox.wiki/en/stable/
349
+ .. _virtual environment: https://realpython.com/python-virtual-environments-a-primer/
350
+ .. _virtualenv: https://virtualenv.pypa.io/en/stable/
351
+
352
+ .. _GitHub web interface: https://docs.github.com/en/repositories/working-with-files/managing-files/editing-files
353
+ .. _GitHub's code editor: https://docs.github.com/en/repositories/working-with-files/managing-files/editing-files