Browse Source

Bump version number to 0.5.0

Clara Hobbs 6 years ago
parent
commit
713db76486
2 changed files with 9 additions and 7 deletions
  1. 6
    4
      README.rst
  2. 3
    3
      setup.py

+ 6
- 4
README.rst View File

13
    device with one method call
13
    device with one method call
14
 -  Allows control of whether or not the output is enabled
14
 -  Allows control of whether or not the output is enabled
15
 -  Provides a Pythonic interface for reading advertised PDOs
15
 -  Provides a Pythonic interface for reading advertised PDOs
16
+-  Provides functions for testing if the power supply follows the Power Rules
17
+-  Includes a script for testing if a PD Buddy Sink is correctly functioning
16
 
18
 
17
 Examples
19
 Examples
18
 --------
20
 --------
25
     >>> import pdbuddy
27
     >>> import pdbuddy
26
     >>> pdbs = pdbuddy.Sink(list(pdbuddy.Sink.get_devices())[0])
28
     >>> pdbs = pdbuddy.Sink(list(pdbuddy.Sink.get_devices())[0])
27
     >>> pdbs.get_cfg()
29
     >>> pdbs.get_cfg()
28
-    SinkConfig(status=<SinkStatus.VALID: 2>, flags=<SinkFlags.NONE: 0>, v=5000, i=3000)
30
+    SinkConfig(status=<SinkStatus.VALID: 2>, flags=<SinkFlags.NONE: 0>, v=5000, vmin=None, vmax=None, i=3000, idim=<SinkDimension.CURRENT: 1>)
29
     >>> print(pdbs.get_cfg())
31
     >>> print(pdbs.get_cfg())
30
     status: valid
32
     status: valid
31
     flags: (none)
33
     flags: (none)
32
-    v: 5.00 V
34
+    v: 5.000 V
33
     i: 3.00 A
35
     i: 3.00 A
34
 
36
 
35
 Locally manipulate a SinkConfig object
37
 Locally manipulate a SinkConfig object
41
     >>> cfg = cfg._replace(v=20000, i=2250)
43
     >>> cfg = cfg._replace(v=20000, i=2250)
42
     >>> cfg = cfg._replace(flags=cfg.flags | pdbuddy.SinkFlags.GIVEBACK)
44
     >>> cfg = cfg._replace(flags=cfg.flags | pdbuddy.SinkFlags.GIVEBACK)
43
     >>> cfg
45
     >>> cfg
44
-    SinkConfig(status=<SinkStatus.VALID: 2>, flags=<SinkFlags.GIVEBACK: 1>, v=20000, i=2250)
46
+    SinkConfig(status=<SinkStatus.VALID: 2>, flags=<SinkFlags.GIVEBACK: 1>, v=20000, vmin=None, vmax=None, i=2250, idim=<SinkDimension.CURRENT: 1>)
45
 
47
 
46
 Write the SinkConfig object to flash
48
 Write the SinkConfig object to flash
47
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
49
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
51
     >>> pdbs.set_tmpcfg(cfg)
53
     >>> pdbs.set_tmpcfg(cfg)
52
     >>> pdbs.write()
54
     >>> pdbs.write()
53
     >>> pdbs.get_cfg()
55
     >>> pdbs.get_cfg()
54
-    SinkConfig(status=<SinkStatus.VALID: 2>, flags=<SinkFlags.GIVEBACK: 1>, v=20000, i=2250)
56
+    SinkConfig(status=<SinkStatus.VALID: 2>, flags=<SinkFlags.GIVEBACK: 1>, v=20000, vmin=None, vmax=None, i=2250, idim=<SinkDimension.CURRENT: 1>)
55
 
57
 
56
 Requirements
58
 Requirements
57
 ------------
59
 ------------

+ 3
- 3
setup.py View File

5
 
5
 
6
 setup(
6
 setup(
7
     name = "pd-buddy-python",
7
     name = "pd-buddy-python",
8
-    version = "0.4.2",
8
+    version = "0.5.0",
9
     author = "Clayton G. Hobbs",
9
     author = "Clayton G. Hobbs",
10
     author_email = "clay@lakeserv.net",
10
     author_email = "clay@lakeserv.net",
11
     description = ("Python library for configuring PD Buddy Sink devices"),
11
     description = ("Python library for configuring PD Buddy Sink devices"),
12
     license = "GPLv3+",
12
     license = "GPLv3+",
13
     keywords = "usb serial pd-buddy configuration",
13
     keywords = "usb serial pd-buddy configuration",
14
     url = "https://git.clayhobbs.com/pd-buddy/pd-buddy-python",
14
     url = "https://git.clayhobbs.com/pd-buddy/pd-buddy-python",
15
-    packages = ['pdbuddy'],
15
+    packages = ['pdbuddy', 'pdbuddy.tools'],
16
     long_description = long_description,
16
     long_description = long_description,
17
     classifiers = [
17
     classifiers = [
18
-        "Development Status :: 3 - Alpha",
18
+        "Development Status :: 4 - Beta",
19
         "Intended Audience :: Developers",
19
         "Intended Audience :: Developers",
20
         "License :: OSI Approved :: GNU General Public License v3 or later "
20
         "License :: OSI Approved :: GNU General Public License v3 or later "
21
             "(GPLv3+)",
21
             "(GPLv3+)",

Loading…
Cancel
Save