wd-fw-update 1.0.0__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 (36) hide show
  1. wd_fw_update-1.0.0/.coveragerc +28 -0
  2. wd_fw_update-1.0.0/.github/workflows/ci.yml +14 -0
  3. wd_fw_update-1.0.0/.github/workflows/python-publish.yml +36 -0
  4. wd_fw_update-1.0.0/.gitignore +54 -0
  5. wd_fw_update-1.0.0/.isort.cfg +3 -0
  6. wd_fw_update-1.0.0/.pre-commit-config.yaml +68 -0
  7. wd_fw_update-1.0.0/.readthedocs.yml +27 -0
  8. wd_fw_update-1.0.0/AUTHORS.md +3 -0
  9. wd_fw_update-1.0.0/CHANGELOG.md +5 -0
  10. wd_fw_update-1.0.0/CONTRIBUTING.md +237 -0
  11. wd_fw_update-1.0.0/LICENSE +621 -0
  12. wd_fw_update-1.0.0/PKG-INFO +103 -0
  13. wd_fw_update-1.0.0/README.md +78 -0
  14. wd_fw_update-1.0.0/docs/Makefile +29 -0
  15. wd_fw_update-1.0.0/docs/_static/.gitignore +1 -0
  16. wd_fw_update-1.0.0/docs/authors.md +4 -0
  17. wd_fw_update-1.0.0/docs/changelog.md +4 -0
  18. wd_fw_update-1.0.0/docs/conf.py +304 -0
  19. wd_fw_update-1.0.0/docs/contributing.md +4 -0
  20. wd_fw_update-1.0.0/docs/index.md +32 -0
  21. wd_fw_update-1.0.0/docs/license.md +5 -0
  22. wd_fw_update-1.0.0/docs/readme.md +4 -0
  23. wd_fw_update-1.0.0/docs/requirements.txt +6 -0
  24. wd_fw_update-1.0.0/logo.png +0 -0
  25. wd_fw_update-1.0.0/pyproject.toml +9 -0
  26. wd_fw_update-1.0.0/setup.cfg +72 -0
  27. wd_fw_update-1.0.0/setup.py +22 -0
  28. wd_fw_update-1.0.0/src/wd_fw_update/__init__.py +16 -0
  29. wd_fw_update-1.0.0/src/wd_fw_update/main.py +487 -0
  30. wd_fw_update-1.0.0/src/wd_fw_update.egg-info/PKG-INFO +103 -0
  31. wd_fw_update-1.0.0/src/wd_fw_update.egg-info/SOURCES.txt +35 -0
  32. wd_fw_update-1.0.0/src/wd_fw_update.egg-info/dependency_links.txt +1 -0
  33. wd_fw_update-1.0.0/src/wd_fw_update.egg-info/entry_points.txt +2 -0
  34. wd_fw_update-1.0.0/src/wd_fw_update.egg-info/not-zip-safe +1 -0
  35. wd_fw_update-1.0.0/src/wd_fw_update.egg-info/requires.txt +9 -0
  36. wd_fw_update-1.0.0/src/wd_fw_update.egg-info/top_level.txt +1 -0
@@ -0,0 +1,28 @@
1
+ # .coveragerc to control coverage.py
2
+ [run]
3
+ branch = True
4
+ source = wd_fw_update
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,14 @@
1
+ name: pre-commit
2
+
3
+ on:
4
+ pull_request:
5
+ push:
6
+ branches: [main]
7
+
8
+ jobs:
9
+ pre-commit:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v3
13
+ - uses: actions/setup-python@v3
14
+ - uses: pre-commit/action@v3.0.1
@@ -0,0 +1,36 @@
1
+ # This workflow will upload a Python Package using Twine when a release is created
2
+ # For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#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
+ jobs:
16
+ deploy:
17
+
18
+ runs-on: ubuntu-latest
19
+
20
+ steps:
21
+ - uses: actions/checkout@v3
22
+ - name: Set up Python
23
+ uses: actions/setup-python@v4
24
+ with:
25
+ python-version: '3.x'
26
+ - name: Install dependencies
27
+ run: |
28
+ python -m pip install --upgrade pip
29
+ pip install build
30
+ - name: Build package
31
+ run: python -m build
32
+ - name: Publish package
33
+ uses: pypa/gh-action-pypi-publish@release/v1
34
+ with:
35
+ user: __token__
36
+ password: ${{ secrets.PYPI_API_TOKEN }}
@@ -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,3 @@
1
+ [settings]
2
+ profile = black
3
+ known_first_party = wd_fw_update
@@ -0,0 +1,68 @@
1
+ exclude: '^docs/conf.py'
2
+
3
+ repos:
4
+ - repo: https://github.com/pre-commit/pre-commit-hooks
5
+ rev: v4.5.0
6
+ hooks:
7
+ - id: trailing-whitespace
8
+ - id: check-added-large-files
9
+ - id: check-ast
10
+ - id: check-json
11
+ - id: check-merge-conflict
12
+ - id: check-xml
13
+ - id: check-yaml
14
+ - id: debug-statements
15
+ - id: end-of-file-fixer
16
+ - id: requirements-txt-fixer
17
+ - id: mixed-line-ending
18
+ args: ['--fix=auto'] # replace 'auto' with 'lf' to enforce Linux/Mac line endings or 'crlf' for Windows
19
+
20
+ ## If you want to automatically "modernize" your Python code:
21
+ # - repo: https://github.com/asottile/pyupgrade
22
+ # rev: v3.7.0
23
+ # hooks:
24
+ # - id: pyupgrade
25
+ # args: ['--py37-plus']
26
+
27
+ ## If you want to avoid flake8 errors due to unused vars or imports:
28
+ # - repo: https://github.com/PyCQA/autoflake
29
+ # rev: v2.1.1
30
+ # hooks:
31
+ # - id: autoflake
32
+ # args: [
33
+ # --in-place,
34
+ # --remove-all-unused-imports,
35
+ # --remove-unused-variables,
36
+ # ]
37
+
38
+ - repo: https://github.com/PyCQA/isort
39
+ rev: 5.13.2
40
+ hooks:
41
+ - id: isort
42
+
43
+ - repo: https://github.com/psf/black
44
+ rev: 24.2.0
45
+ hooks:
46
+ - id: black
47
+ language_version: python3
48
+ args: ['-l 100']
49
+
50
+ ## If like to embrace black styles even in the docs:
51
+ # - repo: https://github.com/asottile/blacken-docs
52
+ # rev: v1.13.0
53
+ # hooks:
54
+ # - id: blacken-docs
55
+ # additional_dependencies: [black]
56
+
57
+ - repo: https://github.com/PyCQA/flake8
58
+ rev: 7.0.0
59
+ hooks:
60
+ - id: flake8
61
+ ## You can add flake8 plugins via `additional_dependencies`:
62
+ # additional_dependencies: [flake8-bugbear]
63
+
64
+ ## Check for misspells in documentation files:
65
+ # - repo: https://github.com/codespell-project/codespell
66
+ # rev: v2.2.5
67
+ # hooks:
68
+ # - id: codespell
@@ -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,3 @@
1
+ # Contributors
2
+
3
+ * Jules Kreuer [contact@juleskreuer.eu](mailto:contact@juleskreuer.eu)
@@ -0,0 +1,5 @@
1
+ # Changelog
2
+
3
+ ## Version 1.0 (initial release)
4
+
5
+ - Initial release
@@ -0,0 +1,237 @@
1
+
2
+ # Contributing
3
+
4
+ Welcome to `wd_fw_update` contributor's guide.
5
+
6
+ This document focuses on getting any potential contributor familiarized with
7
+ the development processes, but [other kinds of contributions] are also appreciated.
8
+
9
+ If you are new to using [git] or have never collaborated in a project previously,
10
+ please have a look at [contribution-guide.org]. Other resources are also
11
+ listed in the excellent [guide created by FreeCodeCamp] [^contrib1].
12
+
13
+ Please notice, all users and contributors are expected to be **open,
14
+ considerate, reasonable, and respectful**. When in doubt,
15
+ [Python Software Foundation's Code of Conduct] is a good reference in terms of
16
+ behavior guidelines.
17
+
18
+ ## Issue Reports
19
+
20
+ If you experience bugs or general issues with `wd_fw_update`, please have a look
21
+ on the [issue tracker].
22
+ If you don't see anything useful there, please feel free to fire an issue report.
23
+
24
+ :::{tip}
25
+ Please don't forget to include the closed issues in your search.
26
+ Sometimes a solution was already reported, and the problem is considered
27
+ **solved**.
28
+ :::
29
+
30
+ New issue reports should include information about your programming environment
31
+ (e.g., operating system, Python version) and steps to reproduce the problem.
32
+ Please try also to simplify the reproduction steps to a very minimal example
33
+ that still illustrates the problem you are facing. By removing other factors,
34
+ you help us to identify the root cause of the issue.
35
+
36
+ ## Documentation Improvements
37
+
38
+ You can help improve `wd_fw_update` docs by making them more readable and coherent, or
39
+ by adding missing information and correcting mistakes.
40
+
41
+ `wd_fw_update` documentation uses [Sphinx] as its main documentation compiler.
42
+ This means that the docs are kept in the same repository as the project code, and
43
+ that any documentation update is done in the same way was a code contribution.
44
+
45
+ :::{tip}
46
+ Please notice that the [GitHub web interface] provides a quick way of
47
+ propose changes in `wd_fw_update`'s files. While this mechanism can
48
+ be tricky for normal code contributions, it works perfectly fine for
49
+ contributing to the docs, and can be quite handy.
50
+
51
+ If you are interested in trying this method out, please navigate to
52
+ the `docs` folder in the source [repository], find which file you
53
+ would like to propose changes and click in the little pencil icon at the
54
+ top, to open [GitHub's code editor]. Once you finish editing the file,
55
+ please write a message in the form at the bottom of the page describing
56
+ which changes have you made and what are the motivations behind them and
57
+ submit your proposal.
58
+ :::
59
+
60
+ When working on documentation changes in your local machine, you can
61
+ compile them using `make`.
62
+
63
+ ```
64
+ cd docs
65
+ pip install -r requirements.txt
66
+
67
+ make html
68
+ ```
69
+
70
+
71
+ ### Submit an issue
72
+
73
+ Before you work on any non-trivial code contribution it's best to first create
74
+ a report in the [issue tracker] to start a discussion on the subject.
75
+ This often provides additional considerations and avoids unnecessary work.
76
+
77
+ ### Create an environment
78
+
79
+ Before you start coding, we recommend creating an isolated [virtual environment]
80
+ to avoid any problems with your installed Python packages.
81
+
82
+ ```
83
+ conda create -n wd_fw_update python=3 six virtualenv
84
+ conda activate wd_fw_update
85
+ ```
86
+
87
+ ### Clone the repository
88
+
89
+ 1. Create an user account on GitHub if you do not already have one.
90
+
91
+ 2. Fork the project [repository]: click on the *Fork* button near the top of the
92
+ page. This creates a copy of the code under your account on GitHub.
93
+
94
+ 3. Clone this copy to your local disk:
95
+
96
+ ```
97
+ git clone git@github.com:YourLogin/wd_fw_update.git
98
+ cd wd_fw_update
99
+ ```
100
+
101
+ 4. You should run:
102
+
103
+ ```
104
+ pip install -U pip setuptools -e .
105
+ ```
106
+
107
+ to be able to import the package under development in the Python REPL.
108
+
109
+
110
+ 5. Install [pre-commit]:
111
+
112
+ ```
113
+ pip install pre-commit
114
+ pre-commit install
115
+ ```
116
+
117
+ `wd_fw_update` comes with a lot of hooks configured to automatically help the
118
+ developer to check the code being written.
119
+
120
+ ### Implement your changes
121
+
122
+ 1. Create a branch to hold your changes:
123
+
124
+ ```
125
+ git checkout -b my-feature
126
+ ```
127
+
128
+ and start making changes. Never work on the main branch!
129
+
130
+ 2. Start your work on this branch. Don't forget to add [docstrings] to new
131
+ functions, modules and classes, especially if they are part of public APIs.
132
+
133
+ 3. Add yourself to the list of contributors in `AUTHORS.rst`.
134
+
135
+ 4. When you’re done editing, do:
136
+
137
+ ```
138
+ git add <MODIFIED FILES>
139
+ git commit
140
+ ```
141
+
142
+ to record your changes in [git].
143
+
144
+ Please make sure to see the validation messages from [pre-commit] and fix
145
+ any eventual issues.
146
+ This should automatically use [flake8]/[black] to check/fix the code style
147
+ in a way that is compatible with the project.
148
+
149
+ :::{important}
150
+ Don't forget to add documentation in case your
151
+ contribution adds an additional feature and is not just a bugfix.
152
+
153
+ Moreover, writing a [descriptive commit message] is highly recommended.
154
+ In case of doubt, you can check the commit history with:
155
+
156
+ ```
157
+ git log --graph --decorate --pretty=oneline --abbrev-commit --all
158
+ ```
159
+
160
+ to look for recurring communication patterns.
161
+ :::
162
+
163
+
164
+ ### Submit your contribution
165
+
166
+ 1. If everything works fine, push your local branch to the remote server with:
167
+
168
+ ```
169
+ git push -u origin my-feature
170
+ ```
171
+
172
+ 2. Go to the web page of your fork and click "Create pull request"
173
+ to send your changes for review.
174
+
175
+ Find more detailed information in [creating a PR]. You might also want to open
176
+ the PR as a draft first and mark it as ready for review after the feedbacks
177
+ from the continuous integration (CI) system or any required fixes.
178
+
179
+
180
+ ## Maintainer tasks
181
+
182
+ ### Releases
183
+
184
+
185
+ If you are part of the group of maintainers and have correct user permissions
186
+ on [PyPI], the following steps can be used to release a new version for
187
+ `wd_fw_update`:
188
+
189
+ 1. Make sure all unit tests are successful.
190
+ 2. Tag the current commit on the main branch with a release tag, e.g., `v1.2.3`.
191
+ 3. Push the new tag to the upstream [repository],
192
+ e.g., `git push upstream v1.2.3`
193
+ 4. Clean up the `dist` and `build` folders with `tox -e clean`
194
+ (or `rm -rf dist build`)
195
+ to avoid confusion with old builds and Sphinx docs.
196
+ 5. Run `tox -e build` and check that the files in `dist` have
197
+ the correct version (no `.dirty` or [git] hash) according to the [git] tag.
198
+ Also check the sizes of the distributions, if they are too big (e.g., >
199
+ 500KB), unwanted clutter may have been accidentally included.
200
+ 6. Run `tox -e publish -- --repository pypi` and check that everything was
201
+ uploaded to [PyPI] correctly.
202
+
203
+ [^contrib1]: Even though, these resources focus on open source projects and
204
+ communities, the general ideas behind collaborating with other developers
205
+ to collectively create software are general and can be applied to all sorts
206
+ of environments, including private companies and proprietary code bases.
207
+
208
+
209
+ [black]: https://pypi.org/project/black/
210
+ [commonmark]: https://commonmark.org/
211
+ [contribution-guide.org]: http://www.contribution-guide.org/
212
+ [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
213
+ [descriptive commit message]: https://chris.beams.io/posts/git-commit
214
+ [docstrings]: https://www.sphinx-doc.org/en/master/usage/extensions/napoleon.html
215
+ [first-contributions tutorial]: https://github.com/firstcontributions/first-contributions
216
+ [flake8]: https://flake8.pycqa.org/en/stable/
217
+ [git]: https://git-scm.com
218
+ [github web interface]: https://docs.github.com/en/github/managing-files-in-a-repository/managing-files-on-github/editing-files-in-your-repository
219
+ [github's code editor]: https://docs.github.com/en/github/managing-files-in-a-repository/managing-files-on-github/editing-files-in-your-repository
220
+ [github's fork and pull request workflow]: https://guides.github.com/activities/forking/
221
+ [guide created by freecodecamp]: https://github.com/freecodecamp/how-to-contribute-to-open-source
222
+ [miniconda]: https://docs.conda.io/en/latest/miniconda.html
223
+ [myst]: https://myst-parser.readthedocs.io/en/latest/syntax/syntax.html
224
+ [other kinds of contributions]: https://opensource.guide/how-to-contribute
225
+ [pre-commit]: https://pre-commit.com/
226
+ [pypi]: https://pypi.org/
227
+ [pyscaffold's contributor's guide]: https://pyscaffold.org/en/stable/contributing.html
228
+ [pytest can drop you]: https://docs.pytest.org/en/stable/usage.html#dropping-to-pdb-python-debugger-at-the-start-of-a-test
229
+ [python software foundation's code of conduct]: https://www.python.org/psf/conduct/
230
+ [restructuredtext]: https://www.sphinx-doc.org/en/master/usage/restructuredtext/
231
+ [sphinx]: https://www.sphinx-doc.org/en/master/
232
+ [tox]: https://tox.readthedocs.io/en/stable/
233
+ [virtual environment]: https://realpython.com/python-virtual-environments-a-primer/
234
+ [virtualenv]: https://virtualenv.pypa.io/en/stable/
235
+
236
+ [repository]: https://github.com/not_a_feature/wd_fw_update
237
+ [issue tracker]: https://github.com/not_a_feature/wd_fw_update/issues