newsworthycharts 1.54.4__tar.gz → 1.54.5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. {newsworthycharts-1.54.4 → newsworthycharts-1.54.5}/PKG-INFO +8 -3
  2. {newsworthycharts-1.54.4 → newsworthycharts-1.54.5}/README.rst +6 -1
  3. {newsworthycharts-1.54.4 → newsworthycharts-1.54.5}/newsworthycharts/__init__.py +1 -1
  4. {newsworthycharts-1.54.4 → newsworthycharts-1.54.5}/newsworthycharts/lib/locator.py +4 -1
  5. {newsworthycharts-1.54.4 → newsworthycharts-1.54.5}/newsworthycharts.egg-info/PKG-INFO +8 -3
  6. {newsworthycharts-1.54.4 → newsworthycharts-1.54.5}/newsworthycharts.egg-info/SOURCES.txt +1 -13
  7. {newsworthycharts-1.54.4 → newsworthycharts-1.54.5}/newsworthycharts.egg-info/requires.txt +3 -3
  8. {newsworthycharts-1.54.4 → newsworthycharts-1.54.5}/setup.cfg +1 -1
  9. {newsworthycharts-1.54.4 → newsworthycharts-1.54.5}/setup.py +3 -3
  10. newsworthycharts-1.54.4/.flake8 +0 -7
  11. newsworthycharts-1.54.4/.github/workflows/lint.yml +0 -17
  12. newsworthycharts-1.54.4/.pre-commit-config.yaml +0 -5
  13. newsworthycharts-1.54.4/.pylintrc +0 -3
  14. newsworthycharts-1.54.4/requirements.txt +0 -16
  15. newsworthycharts-1.54.4/test/__init__.py +0 -0
  16. newsworthycharts-1.54.4/test/data/__init__.py +0 -0
  17. newsworthycharts-1.54.4/test/data/elpriser.json +0 -1604
  18. newsworthycharts-1.54.4/test/data/range_plot_with_long_labels.json +0 -227
  19. newsworthycharts-1.54.4/test/data/scatterplot.py +0 -292
  20. newsworthycharts-1.54.4/test/data/test-so2.csv +0 -291
  21. newsworthycharts-1.54.4/test/images/logo.png +0 -0
  22. {newsworthycharts-1.54.4 → newsworthycharts-1.54.5}/LICENSE.txt +0 -0
  23. {newsworthycharts-1.54.4 → newsworthycharts-1.54.5}/MANIFEST.in +0 -0
  24. {newsworthycharts-1.54.4 → newsworthycharts-1.54.5}/newsworthycharts/bubblemap.py +0 -0
  25. {newsworthycharts-1.54.4 → newsworthycharts-1.54.5}/newsworthycharts/categoricalchart.py +0 -0
  26. {newsworthycharts-1.54.4 → newsworthycharts-1.54.5}/newsworthycharts/chart.py +0 -0
  27. {newsworthycharts-1.54.4 → newsworthycharts-1.54.5}/newsworthycharts/choroplethmap.py +0 -0
  28. {newsworthycharts-1.54.4 → newsworthycharts-1.54.5}/newsworthycharts/custom/__init__.py +0 -0
  29. {newsworthycharts-1.54.4 → newsworthycharts-1.54.5}/newsworthycharts/custom/climate_cars.py +0 -0
  30. {newsworthycharts-1.54.4 → newsworthycharts-1.54.5}/newsworthycharts/datawrapper.py +0 -0
  31. {newsworthycharts-1.54.4 → newsworthycharts-1.54.5}/newsworthycharts/lib/__init__.py +0 -0
  32. {newsworthycharts-1.54.4 → newsworthycharts-1.54.5}/newsworthycharts/lib/color_fn.py +0 -0
  33. {newsworthycharts-1.54.4 → newsworthycharts-1.54.5}/newsworthycharts/lib/colors.py +0 -0
  34. {newsworthycharts-1.54.4 → newsworthycharts-1.54.5}/newsworthycharts/lib/datalist.py +0 -0
  35. {newsworthycharts-1.54.4 → newsworthycharts-1.54.5}/newsworthycharts/lib/formatter.py +0 -0
  36. {newsworthycharts-1.54.4 → newsworthycharts-1.54.5}/newsworthycharts/lib/geography.py +0 -0
  37. {newsworthycharts-1.54.4 → newsworthycharts-1.54.5}/newsworthycharts/lib/mimetypes.py +0 -0
  38. {newsworthycharts-1.54.4 → newsworthycharts-1.54.5}/newsworthycharts/lib/utils.py +0 -0
  39. {newsworthycharts-1.54.4 → newsworthycharts-1.54.5}/newsworthycharts/map.py +0 -0
  40. {newsworthycharts-1.54.4 → newsworthycharts-1.54.5}/newsworthycharts/maps/se-4.gpkg +0 -0
  41. {newsworthycharts-1.54.4 → newsworthycharts-1.54.5}/newsworthycharts/maps/se-7.gpkg +0 -0
  42. {newsworthycharts-1.54.4 → newsworthycharts-1.54.5}/newsworthycharts/rangeplot.py +0 -0
  43. {newsworthycharts-1.54.4 → newsworthycharts-1.54.5}/newsworthycharts/rc/newsworthy +0 -0
  44. {newsworthycharts-1.54.4 → newsworthycharts-1.54.5}/newsworthycharts/scatterplot.py +0 -0
  45. {newsworthycharts-1.54.4 → newsworthycharts-1.54.5}/newsworthycharts/seasonalchart.py +0 -0
  46. {newsworthycharts-1.54.4 → newsworthycharts-1.54.5}/newsworthycharts/serialchart.py +0 -0
  47. {newsworthycharts-1.54.4 → newsworthycharts-1.54.5}/newsworthycharts/storage.py +0 -0
  48. {newsworthycharts-1.54.4 → newsworthycharts-1.54.5}/newsworthycharts/stripechart.py +0 -0
  49. {newsworthycharts-1.54.4 → newsworthycharts-1.54.5}/newsworthycharts/translations/datawrapper_regions.csv +0 -0
  50. {newsworthycharts-1.54.4 → newsworthycharts-1.54.5}/newsworthycharts/translations/regions.py +0 -0
  51. {newsworthycharts-1.54.4 → newsworthycharts-1.54.5}/newsworthycharts/translations/se_municipalities.csv +0 -0
  52. {newsworthycharts-1.54.4 → newsworthycharts-1.54.5}/newsworthycharts.egg-info/dependency_links.txt +0 -0
  53. {newsworthycharts-1.54.4 → newsworthycharts-1.54.5}/newsworthycharts.egg-info/not-zip-safe +0 -0
  54. {newsworthycharts-1.54.4 → newsworthycharts-1.54.5}/newsworthycharts.egg-info/top_level.txt +0 -0
  55. {newsworthycharts-1.54.4 → newsworthycharts-1.54.5}/test/test_categorical_chart.py +0 -0
  56. {newsworthycharts-1.54.4 → newsworthycharts-1.54.5}/test/test_choropleth_maps.py +0 -0
  57. {newsworthycharts-1.54.4 → newsworthycharts-1.54.5}/test/test_custom_climate_cars.py +0 -0
  58. {newsworthycharts-1.54.4 → newsworthycharts-1.54.5}/test/test_data_list.py +0 -0
  59. {newsworthycharts-1.54.4 → newsworthycharts-1.54.5}/test/test_datawrapper.py +0 -0
  60. {newsworthycharts-1.54.4 → newsworthycharts-1.54.5}/test/test_main.py +0 -0
  61. {newsworthycharts-1.54.4 → newsworthycharts-1.54.5}/test/test_rangeplot.py +0 -0
  62. {newsworthycharts-1.54.4 → newsworthycharts-1.54.5}/test/test_scatterplot.py +0 -0
  63. {newsworthycharts-1.54.4 → newsworthycharts-1.54.5}/test/test_serial_chart.py +0 -0
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: newsworthycharts
3
- Version: 1.54.4
3
+ Version: 1.54.5
4
4
  Summary: Matplotlib wrapper to create charts and publish them on Amazon S3
5
5
  Home-page: https://github.com/jplusplus/newsworthycharts
6
- Download-URL: https://github.com/jplusplus/newsworthycharts/archive/1.54.4.tar.gz
6
+ Download-URL: https://github.com/jplusplus/newsworthycharts/archive/1.54.5.tar.gz
7
7
  Author: Jens Finnäs and Leo Wallentin, J++ Stockholm
8
8
  Author-email: stockholm@jplusplus.org
9
9
  License: MIT
@@ -168,6 +168,11 @@ Roadmap
168
168
  Changelog
169
169
  ---------
170
170
 
171
+ - 1.54.5
172
+
173
+ - Improved tick placement in daily charts
174
+ - Minor upgrades: matplotlib==3.8.3; Pillow==10.2.0; geopandas==0.14.3
175
+
171
176
  - 1.54.4
172
177
 
173
178
  - Use Babel 2.14, and pin version
@@ -200,7 +205,7 @@ Changelog
200
205
  - 1.53.0
201
206
 
202
207
  - Fixed bug in value_labels, trying to access a color value that didn't exist
203
- - Dropped Python 3.7 support (upstream)
208
+ - Dropped Python 3.8 support (upstream)
204
209
  - Uses Matplotlib 3.8
205
210
  - Uses Pillow 10
206
211
 
@@ -155,6 +155,11 @@ Roadmap
155
155
  Changelog
156
156
  ---------
157
157
 
158
+ - 1.54.5
159
+
160
+ - Improved tick placement in daily charts
161
+ - Minor upgrades: matplotlib==3.8.3; Pillow==10.2.0; geopandas==0.14.3
162
+
158
163
  - 1.54.4
159
164
 
160
165
  - Use Babel 2.14, and pin version
@@ -187,7 +192,7 @@ Changelog
187
192
  - 1.53.0
188
193
 
189
194
  - Fixed bug in value_labels, trying to access a color value that didn't exist
190
- - Dropped Python 3.7 support (upstream)
195
+ - Dropped Python 3.8 support (upstream)
191
196
  - Uses Matplotlib 3.8
192
197
  - Uses Pillow 10
193
198
 
@@ -1,4 +1,4 @@
1
- __version__ = "1.54.4"
1
+ __version__ = "1.54.5"
2
2
 
3
3
  from .chart import Chart
4
4
  from .choroplethmap import ChoroplethMap
@@ -79,7 +79,10 @@ def get_best_locator(delta, points, interval=None):
79
79
 
80
80
  elif interval == "daily" or interval is None:
81
81
  if delta.days > 30:
82
- # FIXME dont print every month
83
82
  return MonthLocator()
83
+ elif delta.days > 21:
84
+ return DayLocator(interval=10)
85
+ elif delta.days > 7:
86
+ return DayLocator(interval=5)
84
87
  else:
85
88
  return DayLocator()
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: newsworthycharts
3
- Version: 1.54.4
3
+ Version: 1.54.5
4
4
  Summary: Matplotlib wrapper to create charts and publish them on Amazon S3
5
5
  Home-page: https://github.com/jplusplus/newsworthycharts
6
- Download-URL: https://github.com/jplusplus/newsworthycharts/archive/1.54.4.tar.gz
6
+ Download-URL: https://github.com/jplusplus/newsworthycharts/archive/1.54.5.tar.gz
7
7
  Author: Jens Finnäs and Leo Wallentin, J++ Stockholm
8
8
  Author-email: stockholm@jplusplus.org
9
9
  License: MIT
@@ -168,6 +168,11 @@ Roadmap
168
168
  Changelog
169
169
  ---------
170
170
 
171
+ - 1.54.5
172
+
173
+ - Improved tick placement in daily charts
174
+ - Minor upgrades: matplotlib==3.8.3; Pillow==10.2.0; geopandas==0.14.3
175
+
171
176
  - 1.54.4
172
177
 
173
178
  - Use Babel 2.14, and pin version
@@ -200,7 +205,7 @@ Changelog
200
205
  - 1.53.0
201
206
 
202
207
  - Fixed bug in value_labels, trying to access a color value that didn't exist
203
- - Dropped Python 3.7 support (upstream)
208
+ - Dropped Python 3.8 support (upstream)
204
209
  - Uses Matplotlib 3.8
205
210
  - Uses Pillow 10
206
211
 
@@ -1,13 +1,8 @@
1
- .flake8
2
- .pre-commit-config.yaml
3
- .pylintrc
4
1
  LICENSE.txt
5
2
  MANIFEST.in
6
3
  README.rst
7
- requirements.txt
8
4
  setup.cfg
9
5
  setup.py
10
- .github/workflows/lint.yml
11
6
  newsworthycharts/__init__.py
12
7
  newsworthycharts/bubblemap.py
13
8
  newsworthycharts/categoricalchart.py
@@ -44,7 +39,6 @@ newsworthycharts/rc/newsworthy
44
39
  newsworthycharts/translations/datawrapper_regions.csv
45
40
  newsworthycharts/translations/regions.py
46
41
  newsworthycharts/translations/se_municipalities.csv
47
- test/__init__.py
48
42
  test/test_categorical_chart.py
49
43
  test/test_choropleth_maps.py
50
44
  test/test_custom_climate_cars.py
@@ -53,10 +47,4 @@ test/test_datawrapper.py
53
47
  test/test_main.py
54
48
  test/test_rangeplot.py
55
49
  test/test_scatterplot.py
56
- test/test_serial_chart.py
57
- test/data/__init__.py
58
- test/data/elpriser.json
59
- test/data/range_plot_with_long_labels.json
60
- test/data/scatterplot.py
61
- test/data/test-so2.csv
62
- test/images/logo.png
50
+ test/test_serial_chart.py
@@ -1,13 +1,13 @@
1
1
  Babel<3,>=2.14.0
2
- Pillow==10.1.0
2
+ Pillow==10.2.0
3
3
  PyYAML>=3
4
4
  adjustText==0.7.3
5
5
  boto3>=1.26
6
- geopandas==0.14.1
6
+ geopandas==0.14.3
7
7
  langcodes>=3.3
8
8
  mapclassify==2.6.1
9
9
  matplotlib-label-lines==0.5.1
10
- matplotlib==3.8.2
10
+ matplotlib==3.8.3
11
11
  numpy<2,>=1.21.0
12
12
  python-dateutil<3,>=2
13
13
  requests>=2.22
@@ -1,5 +1,5 @@
1
1
  [metadata]
2
- license_file = LICENSE.txt
2
+ license_files = LICENSE.txt
3
3
  version = attr: newsworthycharts.__version__
4
4
 
5
5
  [bdist_wheel]
@@ -25,17 +25,17 @@ setup(
25
25
  python_requires='>=3.9',
26
26
  install_requires=[
27
27
  "boto3>=1.26",
28
- "matplotlib==3.8.2",
28
+ "matplotlib==3.8.3",
29
29
  "langcodes>=3.3",
30
30
  "Babel>=2.14.0,<3",
31
31
  "PyYAML>=3",
32
32
  "adjustText==0.7.3",
33
33
  "numpy>=1.21.0,<2",
34
34
  "python-dateutil>=2,<3",
35
- "Pillow==10.1.0",
35
+ "Pillow==10.2.0",
36
36
  "requests>=2.22",
37
37
  "matplotlib-label-lines==0.5.1",
38
- "geopandas==0.14.1",
38
+ "geopandas==0.14.3",
39
39
  "mapclassify==2.6.1",
40
40
  ],
41
41
  setup_requires=["flake8"],
@@ -1,7 +0,0 @@
1
- [flake8]
2
- max-line-length = 110
3
- ignore = E252, W503
4
- filename =
5
- ./newsworthycharts/*py
6
- per-file-ignores =
7
- ./newsworthycharts/__init__.py:F401, F403
@@ -1,17 +0,0 @@
1
- name: flake8 Lint
2
-
3
- on: [push, pull_request]
4
-
5
- jobs:
6
- flake8-lint:
7
- runs-on: ubuntu-latest
8
- name: Lint
9
- steps:
10
- - name: Check out source repository
11
- uses: actions/checkout@v3
12
- - name: Set up Python environment
13
- uses: actions/setup-python@v4
14
- with:
15
- python-version: "3.11"
16
- - name: flake8 Lint
17
- uses: py-actions/flake8@v2
@@ -1,5 +0,0 @@
1
- repos:
2
- - repo: https://github.com/jplusplus/newsworthycharts
3
- rev: master
4
- hooks:
5
- - id: flake8
@@ -1,3 +0,0 @@
1
- [MESSAGES CONTROL]
2
-
3
- disable=W0107
@@ -1,16 +0,0 @@
1
- boto3==1.34.2
2
- matplotlib==3.8.2
3
- langcodes==3.3.0
4
- Babel==2.14.0
5
- PyYAML==6.0.1
6
- adjustText==0.7.3
7
- numpy==1.26.2
8
- python-dateutil==2.8.2
9
- pytest==7.4.3
10
- flake8==6.1.0
11
- requests==2.31.0
12
- python-dotenv==1.0.0
13
- matplotlib-label-lines==0.5.1
14
- Pillow==10.1.0
15
- geopandas==0.14.1
16
- mapclassify==2.6.1
File without changes
File without changes