Skip to content

Commit

Permalink
release 1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenhky committed Apr 9, 2021
1 parent b089959 commit 2d74b4c
Show file tree
Hide file tree
Showing 13 changed files with 411 additions and 348 deletions.
1 change: 0 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
include README.md
include requirements.txt
include py36requirements.txt
include setup_requirements.txt
include test_requirements.txt
include shorttext/data/shorttext_exampledata.csv
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ representation of the texts and documents are needed before they are put into
any classification algorithm. In this package, it facilitates various types
of these representations, including topic modeling and word-embedding algorithms.

Since release 1.5.0, support for Python 3.6 was decommissioned.
Since release 1.2.4, it runs on Python 3.8.
Since release 1.2.3, support for Python 3.5 was decommissioned.
Since release 1.1.7, support for Python 2.7 was decommissioned.
Expand Down Expand Up @@ -87,6 +88,7 @@ If you would like to contribute, feel free to submit the pull requests. You can

## News

* 04/09/2021: `shorttext` 1.5.0 released.
* 02/11/2021: `shorttext` 1.4.8 released.
* 01/11/2021: `shorttext` 1.4.7 released.
* 01/03/2021: `shorttext` 1.4.6 released.
Expand Down
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@
# built documents.
#
# The short X.Y version.
version = u'1.4'
version = u'1.5'
# The full version, including alpha/beta/rc tags.
release = u'1.4.8'
release = u'1.5.0'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
4 changes: 3 additions & 1 deletion docs/intro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ representation of the texts and documents are needed before they are put into
any classification algorithm. In this package, it facilitates various types
of these representations, including topic modeling and word-embedding algorithms.

The package `shorttext` runs on Python 3.5, 3.6, and 3.7.
The package `shorttext` runs on Python 3.7 and 3.8.

Since release 1.0.0, `shorttext` runs on Python 2.7, 3.5, and 3.6. Since release 1.0.7,
it runs also in Python 3.7. Since release 1.1.7, the support for Python 2.7 was decommissioned.
Since release 1.2.3, the support for Python 3.5 is decommissioned.
Since release 1.5.0, the support for Python 3.6 is decommissioned.

Characteristics:

Expand Down
7 changes: 7 additions & 0 deletions docs/news.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
News
====

* 04/09/2021: `shorttext` 1.5.0 released.
* 02/11/2021: `shorttext` 1.4.8 released.
* 01/11/2021: `shorttext` 1.4.7 released.
* 01/03/2021: `shorttext` 1.4.6 released.
Expand Down Expand Up @@ -68,6 +69,12 @@ News
What's New
----------

Release 1.5.0 (April 09, 2021)
------------------------------

* Removed support for Python 3.6.
* Removed buggy BERT representations unit test.

Release 1.4.8 (February 11, 2021)
---------------------------------

Expand Down
13 changes: 0 additions & 13 deletions py36requirements.txt

This file was deleted.

2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ joblib>=0.14
scikit-learn>=0.23.0
tensorflow>=2.3.0
keras>=2.3.0
gensim>=3.8.0
gensim>=4.0.0
pandas>=1.0.0
flask>=1.1.0
snowballstemmer>=2.0.0
Expand Down
12 changes: 3 additions & 9 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@

from setuptools import setup, Extension
import sys

import numpy as np

Expand All @@ -26,10 +25,6 @@ def install_requirements():
return [package_string.strip() for package_string in open('requirements.txt', 'r')]


def install_py36requirements():
return [package_string.strip() for package_string in open('py36requirements.txt', 'r')]


def setup_requirements():
return [package_string.strip() for package_string in open('setup_requirements.txt', 'r')]

Expand All @@ -40,7 +35,7 @@ def test_requirements():


setup(name='shorttext',
version='1.4.8',
version='1.5.0',
description="Short Text Mining",
long_description=package_description(),
long_description_content_type='text/markdown',
Expand All @@ -49,7 +44,6 @@ def test_requirements():
"Topic :: Scientific/Engineering :: Mathematics",
"Topic :: Text Processing :: Linguistic",
"Topic :: Software Development :: Libraries :: Python Modules",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Cython",
Expand Down Expand Up @@ -93,9 +87,9 @@ def test_requirements():
'metrics/dynprog/*.pyx', 'metrics/dynprog/*.c',
'spell/*.pyx', 'spell/*.c']},
include_dirs=[np.get_include()],
python_requires='>=3.6',
python_requires='>=3.7',
setup_requires=setup_requirements(),
install_requires=install_requirements() if sys.version >= "3.7" else install_py36requirements(),
install_requires=install_requirements(),
scripts=['bin/ShortTextCategorizerConsole',
'bin/ShortTextWordEmbedSimilarity',
'bin/WordEmbedAPI'],
Expand Down
Loading

0 comments on commit 2d74b4c

Please sign in to comment.