Skip to content

Commit 2c23e9c

Browse files
authored
Merge pull request #17 from highcharts-for-python/develop
PR for v.1.0.0
2 parents 3f0536e + 26ddcc7 commit 2c23e9c

File tree

7 files changed

+20
-10
lines changed

7 files changed

+20
-10
lines changed

CHANGES.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
Release 1.0.0
2+
=========================================
3+
4+
* **First official release!**
5+
* Fixed over-eager logical filtering on ``options.series.data.GanttData`` instantiation.
6+
7+
---------------
8+
19
Release 1.0.0-rc6
210
=========================================
311

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
# -- Options for todo extension ----------------------------------------------
111111

112112
# If true, `todo` and `todoList` produce output, else they produce nothing.
113-
todo_include_todos = True
113+
todo_include_todos = False
114114

115115
# Inheritance Diagram configuration
116116
inheritance_graph_attrs = {

docs/demos.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ by running all the cells in sequence.
119119
Running Demos Locally
120120
*******************************
121121

122-
.. info::
122+
.. note::
123123

124124
You can run the demos locally by following instructions in the
125125
`Highcharts for Python Demos <https://github.com/highcharts-for-python-demos>`__ Github repo's README.

highcharts_gantt/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.0.0-rc6'
1+
__version__ = '1.0.0'

highcharts_gantt/options/series/data/gantt.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def __init__(self, **kwargs):
8888
self._parent = None
8989
self._start = None
9090
self._y = None
91-
91+
9292
self.collapsed = kwargs.get('collapsed', None)
9393
self.completed = kwargs.get('completed', None)
9494
self.dependency = kwargs.get('dependency', None)
@@ -277,7 +277,7 @@ def start(self, value):
277277
self._start = None
278278
elif checkers.is_date(value):
279279
self._start = validators.date(value, allow_empty = True)
280-
elif checkers.is_datetime(value):
280+
else:
281281
self._start = validators.datetime(value, allow_empty = True, coerce_value = True)
282282

283283
@property

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ keywords = [
3131
]
3232

3333
classifiers = [
34-
"Development Status :: 4 - Beta",
34+
"Development Status :: 5 - Production/Stable",
3535
"Environment :: Web Environment",
3636
"Operating System :: OS Independent",
3737
"Intended Audience :: Developers",
@@ -73,8 +73,8 @@ path = "highcharts_gantt/__version__.py"
7373
"Source Code" = "https://github.com/highcharts-for-python/highcharts-gantt"
7474
"History" = "https://github.com/highcharts-for-python/highcharts-gantt/blob/master/CHANGES.rst"
7575
"Bug Tracker" = "https://github.com/highcharts-for-python/highcharts-gantt/issues"
76-
# TODO: Add a Sponsor section
77-
# "Sponsor" = "https://github.com/sponsors/highcharts-for-python"
76+
"Demo" = "https://github.com/highcharts-for-python/highcharts-for-python-demos"
77+
#"Sponsor" = "https://github.com/sponsors/highcharts-for-python"
7878

7979
[project.optional-dependencies]
8080
dev = [

tests/options/series/data/test_gantt.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,9 +232,11 @@ def test_GanttData_from_monday(kwargs, error):
232232
if 'is_milestone' in task:
233233
assert result.milestone == task['is_milestone']
234234
if 'start' in task:
235-
assert result.start == validators.datetime(task['start'])
235+
assert (result.start == validators.datetime(task['start']) or
236+
result.start == validators.date(task['start']))
236237
if 'end' in task:
237-
assert result.end == validators.datetime(task['end'])
238+
assert (result.end == validators.datetime(task['end']) or
239+
result.end == validators.date(task['end']))
238240
if 'dependencies' in task:
239241
assert len(result.dependency) == len(task['dependencies'])
240242
else:

0 commit comments

Comments
 (0)