Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ python:
- 3.6
- 3.7
install:
- pip install -r requirements-test.txt
- pip install -e .
- pip install flit
- flit install --symlink
script: pytest
after_success:
- pip install coveralls
Expand Down
13 changes: 8 additions & 5 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,19 @@ https://text2array.readthedocs.io
Contributing
============

Pull requests are welcome! To start contributing, make sure to install all the dependencies.
Pull requests are welcome! To start contributing, first install flit_.

::

pip install -r requirements.txt
pip install flit

Then install this library as editable package.
Next, install this library and its dependencies in development mode.

::

pip install -e .
flit install --symlink

Next, setup the pre-commit hook.
Lastly, setup the pre-commit hook.

::

Expand All @@ -68,3 +68,6 @@ License
=======

Apache License, Version 2.0


.. _flit: https://pypi.org/project/flit/
29 changes: 29 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[build-system]
requires = ["flit"]
build-backend = "flit.buildapi"

[tool.flit.metadata]
module = "text2array"
author = "Kemal Kurniawan"
author-email = "kemal@kkurniawan.com"
home-page = "https://github.com/kmkurn/text2array"
requires = ["numpy", "tqdm"]
requires-python = ">=3.6,<4"
description-file = "README.rst"
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]

[tool.flit.metadata.requires-extra]
test = ["pytest ~=4.1.1", "pytest-cov"]
doc = ["Sphinx ~=1.8.3", "sphinx_rtd_theme", "sphinx-autodoc-typehints ~=1.6.0"]
dev = ["flake8", "flake8-mypy", "yapf"]

[tool.flit.metadata.urls]
Documentation = "https://text2array.readthedocs.io"
4 changes: 0 additions & 4 deletions requirements-test.txt

This file was deleted.

4 changes: 0 additions & 4 deletions requirements.txt

This file was deleted.

36 changes: 0 additions & 36 deletions setup.py

This file was deleted.

3 changes: 2 additions & 1 deletion text2array/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,16 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Convert your NLP text data to arrays!"""

__version__ = '0.0.10a2'
__all__ = [
'Sample',
'Batch',
'Vocab',
'BatchIterator',
'ShuffleIterator',
]
__version__ = '0.0.9'

from .batches import Batch
from .samples import Sample
Expand Down