Skip to content

Commit e0dc735

Browse files
authored
Merge pull request #134 from lucasrodes/release/0.6.0
release(v0.6.0)
2 parents bcb9cf7 + daa3d03 commit e0dc735

36 files changed

+512
-448
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 0.5.0
2+
current_version = 0.6.0
33
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(.(?P<pre>[a-z]+)(?P<prenum>\d+))?
44
serialize =
55
{major}.{minor}.{patch}.{pre}{prenum}
@@ -21,4 +21,3 @@ values =
2121
[bumpversion:file:whatstk/__init__.py]
2222

2323
[bumpversion:file:docs/conf.py]
24-

.travis.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1-
dist: xenial
1+
dist: focal
22
language: python
33
python:
4-
- 3.7
54
- 3.8
65
- 3.9
6+
- "3.10"
7+
- "3.11"
78
git:
89
depth: false
910
before_install:
1011
- pip install --upgrade pip
1112
install:
1213
# - git fetch --tags
13-
#
14+
#
1415
- pip install -r requirements-test.txt
1516
- pip install -r requirements-flake.txt
1617
- ls -l
@@ -19,12 +20,12 @@ install:
1920
# - ls -l /home/travis/virtualenv/python3.7.1/lib/python3.7/site-packages/whatstk/whatsapp/assets/
2021
- cat MANIFEST.in
2122
- mkdir -p tests/chats/hformats tests/chats/merge
22-
- whatstk-generate-chat --size 500 --output-path tests/chats/hformats/ # Generate chats for hformat checks
23+
- whatstk-generate-chat --size 500 --output-path tests/chats/hformats/ # Generate chats for hformat checks
2324
- whatstk-generate-chat --size 300 --last-timestamp 2019-09-01 --hformats '%Y-%m-%d, %H:%M - %name:' --output-path tests/chats/merge/ --filenames file1.txt
2425
- whatstk-generate-chat --size 300 --last-timestamp 2020-01-01 --hformats '%Y-%m-%d, %H:%M - %name:' --output-path tests/chats/merge/ --filenames file2.txt
25-
#pip install -r requirements.txt
26+
#pip install -r requirements.txt
2627
script:
27-
- flake8 --max-complexity=10 --docstring-convention=google --max-line-length=120 whatstk
28+
- flake8 --max-complexity=10 --docstring-convention=google --max-line-length=120 --ignore=ANN101,ANN102 whatstk
2829
- pytest --cov-report term --cov=whatstk tests
2930
after_success:
3031
- codecov # submit coverage
@@ -42,7 +43,7 @@ jobs:
4243
# make sure it's on PATH as 'python3'
4344
- ln -s /c/Python38/python.exe /c/Python38/python3.exe
4445
- stage: deploy
45-
python: 3.8
46+
python: 3.10
4647
deploy:
4748
- provider: pypi
4849
user: $USER_PYPI

README.md

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
</h1>
66
<p align="left">
77
<a href="#">
8-
<img alt="Package version" src="https://img.shields.io/badge/pypi-0.5.0-blue.svg?&color=25D366&logo=whatsapp&">
8+
<img alt="Package version" src="https://img.shields.io/badge/pypi-0.6.0-blue.svg?&color=25D366&logo=whatsapp&">
99
</a>
1010
</p>
1111
<!-- style=for-the-badge -->
@@ -24,7 +24,7 @@
2424
<img alt="Tutorial" src="https://img.shields.io/badge/tutorial-on_medium-1a8917.svg?&logo=medium&logoColor=white">
2525
</a>
2626
<a href="https://www.python.org/downloads/release/python-3/">
27-
<img alt="Python 3" src="https://img.shields.io/badge/python-3.7|3.8|3.9-blue.svg?&logo=python&logoColor=yellow">
27+
<img alt="Python 3" src="https://img.shields.io/badge/python-3.8|3.9|3.10|3.11-blue.svg?&logo=python&logoColor=yellow">
2828
</a>
2929
<a href="https://pepy.tech/badge/whatstk">
3030
<img alt="Number of downloads" src="https://pepy.tech/badge/whatstk">
@@ -37,7 +37,8 @@
3737
</a>
3838
</p>
3939

40-
----
40+
---
41+
4142
<!-- [![Downloads](https://pepy.tech/badge/whatstk)](https://pepy.tech/project/whatstk) -->
4243
<!-- > [Get the Desktop App](https://lcsrg.me/whatstk-gui) -->
4344

@@ -46,18 +47,18 @@
4647
the provided command-line tools or python. The package uses [pandas](https://github.com/pandas-dev/pandas) to process
4748
the data and [plotly](https://github.com/plotly/plotly.py) to visualise it.
4849

49-
It is distributed under the GPL-3.0 license.
50+
It is distributed under the GPL-3.0 license.
5051

5152
⭐ Please **star** our project if you found it interesting to **give us some dopamine** 😄!
5253

53-
5454
### Content
55-
* [Installation](#installation)
56-
* [Getting Started](#getting-started)
57-
* [Documentation](https://whatstk.readthedocs.io/en/stable/)
58-
* [Contribute](#contribute)
59-
* [Covered in](#covered-in)
60-
* [Citation](#citation)
55+
56+
- [Installation](#installation)
57+
- [Getting Started](#getting-started)
58+
- [Documentation](https://whatstk.readthedocs.io/en/stable/)
59+
- [Contribute](#contribute)
60+
- [Covered in](#covered-in)
61+
- [Citation](#citation)
6162

6263
## Installation
6364

@@ -74,9 +75,11 @@ pip install git+https://github.com/lucasrodes/whatstk.git@develop
7475
_More details [here](https://whatstk.readthedocs.io/en/stable/source/about.html#installation-compatibility)_
7576

7677
## Getting Started
78+
7779
For a rapid introduction, check this [tutorial on Medium](https://towardsdatascience.com/analyzing-whatsapp-chats-with-python-20d62ce7fe2d).
7880

79-
#### Export your chat using your phone:
81+
#### Export your chat using your phone:
82+
8083
_See [instructions](https://whatstk.readthedocs.io/en/stable/source/getting_started/export_chat.html)._
8184

8285
#### Load chat as a DataFrame
@@ -91,21 +94,26 @@ df = df_from_txt_whatsapp("path/to/chat.txt")
9194
```bash
9295
$ whatstk-to-csv [input_filename] [output_filename]
9396
```
97+
9498
#### More examples
9599

96-
_See more in sections [getting started](https://whatstk.readthedocs.io/en/stable/source/getting_started/index.html) and
100+
_See more in sections [getting started](https://whatstk.readthedocs.io/en/stable/source/getting_started/index.html) and
97101
[examples](https://whatstk.readthedocs.io/en/stable/source/code_examples/index.html)._
98102

99103
## Documentation
104+
100105
_See [official documentation](https://whatstk.readthedocs.io/en/stable/)._
101106

102107
## Contribute
108+
103109
_See [contribute section](https://whatstk.readthedocs.io/en/stable/source/contribute.html)._
104110

105111
## License
112+
106113
[GPL-3.0](LICENSE)
107114

108115
## Citation
116+
109117
Lucas Rodés-Guirao. "whatstk, WhatsApp analysis and parsing toolkit", https://github.com/lucasrodes/whatstk
110118

111119
## Covered in

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
author = 'lucasrodes'
3131

3232
# The full version, including alpha/beta/rc tags
33-
version = 'v0.5.0'
33+
version = 'v0.6.0'
3434

3535

3636
# -- General configuration ---------------------------------------------------

docs/source/about.rst

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,6 @@ Develop
8282
You can also install the version in development directly from github
8383
`develop <https://github.com/lucasrodes/whatstk/tree/develop>`_ branch.
8484

85-
.. code-block:: bash
86-
87-
pip install git+https://github.com/lucasrodes/whatstk.git@developDevelop
88-
^^^^^^^
89-
You can also install the version in development directly from github
90-
`develop <https://github.com/lucasrodes/whatstk/tree/develop>`_ branch.
91-
9285
.. code-block:: bash
9386
9487
pip install git+https://github.com/lucasrodes/whatstk.git@develop

docs/source/contribute.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ Note: You will need to add tests for your code. For this, you can check the curr
5353
Adding new examples
5454
-------------------
5555
To add new examples, consider editing yourself a ``rst`` file in ``docs/source/`` directory in the repository. For
56-
questions or doubts, join the `gitter group <https://gitter.im/whatstk/>`_.
56+
questions or doubts, join the `gitter group <https://gitter.im/sociepy/whatstk>`_.
5757

5858
----
5959

6060
API discussions
6161
---------------
62-
Consider joining the `gitter group <https://gitter.im/whatstk/>`_.
62+
Consider joining the `gitter group <https://gitter.im/sociepy/whatstk>`_.
6363

6464
----
6565

requirements-flake.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#
2-
flake8
3-
flake8-docstrings
4-
flake8-bugbear
5-
flake8-builtins
6-
flake8-bandit
7-
flake8-mutable
8-
flake8-type-annotations
9-
flake8-html
2+
flake8~=6.0.0
3+
flake8-docstrings~=1.7.0
4+
flake8-bugbear~=23.3.0
5+
flake8-builtins~=2.1.0
6+
flake8-bandit~=4.1.0
7+
flake8-mutable~=1.2.0
8+
flake8-annotations~=3.0.0
9+
flake8-html~=0.4.3

requirements-test.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
pytest>=5.4.1
2-
pytest-cov>=2.8.1
3-
coverage>=4.5.1
4-
codecov>=2.0.22
5-
pytest-html==2.1.1
6-
pytest-mock~=3.6.1
1+
pytest~=7.2.0
2+
pytest-cov~=4.0.0
3+
coverage~=7.2.2
4+
codecov~=2.1.0
5+
pytest-html~=3.2.0
6+
pytest-mock~=3.10.0

requirements.txt

100755100644
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
emoji==0.6.0
2-
numpy~=1.19.1
3-
pandas~=1.2.0
1+
emoji~=2.2.0
2+
numpy~=1.24.0
3+
pandas~=1.5.0
44
plotly~=4.14.3
5-
seaborn==0.11.1
6-
certifi==2020.12.5
5+
seaborn~=0.12.0

run-tests.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
## (1) Test dependencies (run this part only the first time)
1+
## (1) Test dependencies (run this part only the first time).
2+
# If using zsh, install using '\', i.e. `pip install -e .\[full\]`
23
# pip install -e .[full]
34

45
## (1.1) Install pytest dependencies
@@ -24,6 +25,7 @@ flake8 \
2425
--docstring-convention=google\
2526
--format=html --htmldir=reports/flake-report\
2627
--max-line-length=120\
28+
--ignore=ANN101,ANN102\
2729
whatstk
2830

2931
## (3) Run tests

setup.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@
2323
requirements_docs = f.readlines()
2424

2525
requirements_gdrive = [
26-
"PyDrive2~=1.8.2",
27-
"PyYAML~=5.4.1",
26+
"PyDrive2~=1.15.0",
27+
"PyYAML~=6.0",
2828
]
2929

3030
requirements_generate = [
31-
"scipy~=1.6.0",
32-
"python-lorem==1.1.2",
31+
"scipy~=1.10.0",
32+
"python-lorem==1.2.0",
3333
]
3434

3535
requirements_full = requirements_gdrive + requirements_generate
@@ -45,7 +45,7 @@
4545

4646
setup(
4747
name='whatstk',
48-
version="0.5.0",
48+
version="0.6.0",
4949
description="Parser and analytics tools for WhatsApp group chats",
5050
long_description=long_description,
5151
long_description_content_type='text/markdown',
@@ -62,9 +62,10 @@
6262
"Development Status :: 4 - Beta",
6363
"Programming Language :: Python",
6464
"Programming Language :: Python :: 3 :: Only",
65-
"Programming Language :: Python :: 3.7",
6665
"Programming Language :: Python :: 3.8",
6766
"Programming Language :: Python :: 3.9",
67+
"Programming Language :: Python :: 3.10",
68+
"Programming Language :: Python :: 3.11",
6869
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
6970
"Operating System :: OS Independent",
7071
],

whatstk/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212

1313
name = "whatstk"
1414

15-
__version__ = "0.5.0"
15+
__version__ = "0.6.0"
1616

1717
__all__ = [
18-
'WhatsAppChat',
19-
'df_from_txt_whatsapp',
20-
'FigureBuilder',
18+
"WhatsAppChat",
19+
"df_from_txt_whatsapp",
20+
"FigureBuilder",
2121
]

0 commit comments

Comments
 (0)