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
# Print the date and time in ISO8601 format: 2023-04-18T21:14:22
185
+
print("Today is {:04d}-{:02d}-{:02d}T{:02d}:{:02d}:{:02d}".format(
186
+
ds1307.year, ds1307.month, ds1307.day,
187
+
ds1307.hour, ds1307.minute, ds1307.second))
220
188
```
221
189
222
190
## Contributing
@@ -231,7 +199,7 @@ package in a virtual environment
231
199
nose2 --config tests/unittest.cfg
232
200
233
201
# run only one specific tests
234
-
nose2 tests.test_blink.TestBlink.test_flash_led
202
+
nose2 tests.test_ds1307.TestDS1307.test_addr
235
203
```
236
204
237
205
Generate the coverage files with
@@ -243,37 +211,17 @@ coverage html
243
211
244
212
The coverage report is placed at `reports/coverage/html/index.html`
245
213
246
-
## Steps after using this template
247
-
248
-
In order to use this template for a new MicroPython package to following steps
249
-
should be done and changes to these file being made
250
-
251
-
| File | Changes | More details |
252
-
| ---- | ------- | -------------|
253
-
|`.coveragerc`| Path to `version.py` file | Omit version file from coverage |
254
-
|`.coveragerc`| Path to `include` folder | Include the package folder for coverage |
255
-
|`.github/workflows/release.yml`| Path to `version.py` file | Use package version file to set changelog based version |
256
-
|`.github/workflows/test-release.yml`| Path to `version.py` file | Use package version file to set changelog based version |
257
-
|`.github/workflows/test.yml`| Path to `version.py` file | Use package version file to set changelog based version |
258
-
|`README.md`| Links in header section and installation instructions ||
259
-
|`changelog.md`| Cleanup changelog from informations of template | Keep usage of SemVer |
260
-
|`docs/DOCUMENTATION.md`| Kink to ReadTheDocs ||
261
-
|`docs/conf.py`| List to modules to be mocked, package import, path to `version.py` file, update `author`, `project` and `linkcheck_ignore`||
262
-
|`docs/index.rst`| Header name and included modules | Replace `be_upy_blink` with new `.rst` file of new package |
263
-
|`docs/NEW_MODULE_NAME.rst`| Create a new `.rst` file named as the package | Use `docs/be_upy_blink.rst` as template |
264
-
|`package.json`| Files and paths to new package and repo | Used by `mip`|
265
-
|`setup.py`| Path to `version.py` file, `name`, `description`, `url`, `author`, `author_email`, `keywords`, `project_urls`, `packages`, `install_requires`| Used to create the package and its informations published at e.g. PyPI |
266
-
267
214
## Credits
268
215
269
-
Based on the [PyPa sample project][ref-pypa-sample].
- Add `MicoPython` as `Implementation` in setup `classifiers`, see [#16](https://github.com/brainelectronics/micropython-package-template/issues/16)
23
-
- Verify `package.json` against latest changelog and setup in test workflow, see [#17](https://github.com/brainelectronics/micropython-package-template/issues/17)
24
-
25
-
## [0.7.0] - 2023-03-17
26
-
### Added
27
-
- Set settings for JSON files to use an indentation of 4 in `.editorconfig`
28
-
-`package.json` for `mip` installation with MicroPython v1.19.1 or newer
29
-
- Instructions for installation with `mip` on MicroPython v1.19.1 or newer in `README`
30
-
- Instructions to be performed after using this template package in `README`
31
-
- Example files for `boot` and `main`
22
+
-`ds1307.py` in `ds1307` module
23
+
- Examples and documentation
32
24
33
25
### Changed
34
-
- Omit package version file from coverage calculation in `.coveragerc`
35
-
- Run test workflow also on pull requests
36
-
- Update date of license to 2023
26
+
- Several updates on setup and config files different than the template repo
37
27
38
28
### Removed
39
-
- No longer used `update_version.py` file removed from flake8 exclude list
40
-
41
-
### Fixed
42
-
- Path to documentation build output folder is only highlighted to avoid broken links errors
43
-
- Mock commonly used MicroPython specific modules in docs config file
44
-
45
-
## [0.6.0] - 2023-02-22
46
-
### Added
47
-
-`.editorconfig` for common editor settings, see #12
48
-
-`.yamllint` to lint all used YAML files, see #12
49
-
-`codecov.yaml` to specify further settings and limits for the coverage
50
-
-`yamllint` package to the `requirements-test.txt` file
51
-
- Run YAML linter on test workflow
52
-
53
-
### Changed
54
-
- Fixed uncovered YAML syntax issues in all workflow files
55
-
- Removed unused files from `.gitignore` file
56
-
57
-
## [0.5.0] - 2023-02-20
58
-
### Added
59
-
-`.readthedocs.yaml` definition file for ReadTheDocs, see #10
60
-
-`docs` folder containing example files and configurations, see #10
61
-
62
-
## [0.4.0] - 2023-02-20
63
-
### Added
64
-
-`test-release` and `release` workflows create changelog based (pre-)releases, see #2
65
-
- Documentation for manually creating a package and uploading it to PyPi in root README
66
-
67
-
### Fixed
68
-
- All workflows use checkout v3 instead of v2
69
-
70
-
## [0.3.0] - 2022-11-03
71
-
### Added
72
-
- Lint package with `flake8` with [test workflow](.github/workflows/test.yaml)
73
-
- CI upload status badge added to [`README`](README.md)
74
-
75
-
### Fixed
76
-
- Remove not required packages `setuptools`, `wheel` and `build` from release
77
-
and test-release workflow files
78
-
- Show download of this package on badge instead of `be-modbus-wrapper`
79
-
- Show `MicroPython Ok` badge instead of `Python3 Ok` in [`README`](README.md)
80
-
81
-
## [0.2.0] - 2022-10-22
82
-
### Added
83
-
- Deploy to [Test Python Package Index](https://test.pypi.org/) on every PR
84
-
build with a [PEP440][ref-pep440] compliant `-rc<BUILDNUMBER>.dev<PR_NUMBER>`
85
-
meta data extension, see [#5][ref-issue-5]
86
-
-[Test release workflow](.github/workflows/test-release.yaml) running only on
0 commit comments