Просмотр исходного кода

Version 0.5.14, released on 15 december 2020

New features:

- Added support for a status callback to the server.add_raw_event method, just like the server.add_event method.

API changes:

- Removed the stale server.run() method and replaced it with a coroutine that does the same as server.run_async().

Bug fixes:

- Removed a naming inconsistency in the objects.ActivePeriod object.
- Silently cancel running tasks when stopping the client or server.
- Implemented the full duration regex for parsing timedeltas.
- Various improvements to the test suite and some stale code cleanup.

Other changes:

- Changed the way openleadr is packaged, dropped the setup-time inclusion of the VERSION file.
- OpenLEADR is now also available under the previous name pyopenadr. A new version of pyopenadr will be released in lockstep with new versions of openleadr. pyopenadr only contains an __init__ file that does from openleadr import *.
Stan Janssen 3 лет назад
Родитель
Сommit
f29f2dba42
3 измененных файлов с 3 добавлено и 8 удалено
  1. 1 2
      MANIFEST.in
  2. 1 1
      VERSION
  3. 1 5
      setup.py

+ 1 - 2
MANIFEST.in

@@ -2,5 +2,4 @@ include openleadr/templates/*.xml
 include openleadr/templates/parts/*.xml
 include openleadr/schema/*.xsd
 include openleadr/schema/LICENSES.txt
-include VERSION
-exclude test/*
+exclude test/*

+ 1 - 1
VERSION

@@ -1 +1 @@
-0.5.13
+0.5.14

+ 1 - 5
setup.py

@@ -15,16 +15,12 @@
 # limitations under the License.
 
 from setuptools import setup
-import os
 
 with open('README.md', 'r') as fh:
     long_description = fh.read()
 
-with open(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'VERSION')) as file:
-    VERSION = file.read().strip()
-
 setup(name='openleadr',
-      version=VERSION,
+      version='0.5.14',
       description='Python library for dealing with OpenADR',
       long_description=long_description,
       long_description_content_type='text/markdown',