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].
0 commit comments