Skip to content

Commit

Permalink
Merge pull request #115 from lucasrodes/release/0.4.1
Browse files Browse the repository at this point in the history
DOC: Release v0.4.1
  • Loading branch information
lucasrodes authored Apr 28, 2021
2 parents 8b9419d + 1ad7a72 commit 74abeea
Show file tree
Hide file tree
Showing 12 changed files with 40 additions and 32 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.4.0
current_version = 0.4.1
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(.(?P<pre>[a-z]+)(?P<prenum>\d+))?
serialize =
{major}.{minor}.{patch}.{pre}{prenum}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</h1>
<p align="left">
<a href="#">
<img alt="Package version" src="https://img.shields.io/badge/pypi-0.4.0-blue.svg?&color=25D366&logo=whatsapp&">
<img alt="Package version" src="https://img.shields.io/badge/pypi-0.4.1-blue.svg?&color=25D366&logo=whatsapp&">
</a>
</p>
<!-- style=for-the-badge -->
Expand Down
2 changes: 1 addition & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ help:
%: Makefile
# gitchangelog > source/changelog.rst
# auto-changelog --output source/changelog.md -u
auto-changelog --repo .. --output source/changelog.md -u
# auto-changelog --repo .. --output source/changelog.md -u
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
author = 'lucasrodes'

# The full version, including alpha/beta/rc tags
version = 'v0.4.0'
version = 'v0.4.1'


# -- General configuration ---------------------------------------------------
Expand Down
15 changes: 0 additions & 15 deletions docs/source/changelog.md

This file was deleted.

23 changes: 23 additions & 0 deletions docs/source/changelog.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Changelog
=========


Unreleased
----------
.. git_changelog::
:rev-list: v0.4.0..HEAD

v0.4.x
----------
.. git_changelog::
:rev-list: v0.3.1..v0.4.0

v0.3.x
----------
.. git_changelog::
:rev-list: v0.2.6..v0.3.0

v0.2.x
----------
.. git_changelog::
:rev-list: 0.1.11..0.2.0
6 changes: 3 additions & 3 deletions docs/source/code_examples/interventions_count.rst
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ argument ``date_mode``, which allows for several types of count-grouping methods
counts per date (what has been used in previous examples).


Using ``date_mode=hour`` illustres the distribution of user interventions over the 24 hours in a day. In this example,
Using ``date_mode=hour`` illustrates the distribution of user interventions over the 24 hours in a day. In this example,
for instance, Giuseppe has their interventions peak in hour ranges [01:00, 02:00] and [20:00, 21:00], with 21
interventions in each.

Expand All @@ -100,7 +100,7 @@ interventions in each.
.. raw:: html
:file: ../../_static/html/interventions_count_hours.html

Using ``date_mode=weekday`` illustres the distribution of user interventions over the 7 days of the week. In this
Using ``date_mode=weekday`` illustrates the distribution of user interventions over the 7 days of the week. In this
example, for instance, we see that Monday and Sunday are the days with the most interventions.

.. code-block:: python
Expand All @@ -113,7 +113,7 @@ example, for instance, we see that Monday and Sunday are the days with the most
:file: ../../_static/html/interventions_count_weekday.html


Using ``date_mode=month`` illustres the distribution of user interventions over the 12 months of the year. In this
Using ``date_mode=month`` illustrates the distribution of user interventions over the 12 months of the year. In this
example, for instance, we observe that all users have their interventions peak in June (except for Giuseppe, which has
their peak in July). Maybe summer calling?

Expand Down
6 changes: 3 additions & 3 deletions docs/source/getting_started/hformat.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ See it for yourself and open :ref:`an exported chat file <Export a WhatsApp chat
07.08.2016, 11:45 - Prof. Oak: Kids, shall I design a smart poke-ball?
In this example, the header is **day.month.year, hour:minutes - username:** which corresponds to the header format
(a.k.a. **hformat**) ``'%d.%m.%y, %H:%M - %name:'``. However, in your case it may be slightly different depending on you
phone settings.
(a.k.a. **hformat**) ``'%d.%m.%y, %H:%M - %name:'``. However, in your case it may be slightly different depending on
your phone settings.

Check the table below to see the codes for each header format unit:

Expand All @@ -34,7 +34,7 @@ Check the table below to see the codes for each header format unit:

``'%y'``, Year
``'%m'``, Month of the year (1-12)
``'%d'``, Day of the month (0-31)
``'%d'``, Day of the month (1-31)
``'%H'``, Hour 24h-clock (0-23)
``'%P'``, Hour 12h-clock (1-12)
``'%M'``, Minutes (0-60)
Expand Down
8 changes: 4 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
emoji==0.6.0
numpy==1.19.5
pandas==1.2.0
plotly==4.14.3
numpy~=1.19.5
pandas~=1.2.0
plotly~=4.14.3
python-lorem==1.1.2
scipy==1.6.0
scipy~=1.6.0
seaborn==0.11.1
certifi==2020.12.5
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

setup(
name='whatstk',
version="0.4.0",
version="0.4.1",
description="Parser and analytics tools for WhatsApp group chats",
long_description=long_description,
long_description_content_type='text/markdown',
Expand Down
2 changes: 1 addition & 1 deletion whatstk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

name = "whatstk"

__version__ = "0.4.0"
__version__ = "0.4.1"

__all__ = [
'WhatsAppChat',
Expand Down
2 changes: 1 addition & 1 deletion whatstk/_chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def to_csv(self, filepath):
"""
if not filepath.endswith('.csv'):
raise ValueError("filepath must end with .csv")
self.df.to_csv(filepath)
self.df.to_csv(filepath, index=False)

def __len__(self):
"""Number of messages.
Expand Down

0 comments on commit 74abeea

Please sign in to comment.