Skip to content

Commit 76f9c1e

Browse files
committed
Include only direct dependency in setup.py install_requires
1 parent b9025aa commit 76f9c1e

File tree

9 files changed

+36
-165
lines changed

9 files changed

+36
-165
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ deploy:
2020
password:
2121
secure: Tj3VA05qopp0mkzWu6EFTlvijAoisd0BN/gD2c/vaaDCUy6fTXBkYk+dTkjbmYkEBl/WrsrW1T/QxCt2uc6bv7QTz+qL243Edv4FFQbBKvMSNlUO+hh1jI9zv3/QzwOaNHXOsI4JGeUaN5cULfxBjsBEFN+v6E0mkgBwJ0Qdb0/yuMybLWZ9dJI8iUKiaWNIr+NQoa9a+Sxw6Ltl/mdCKPppgOYPpVMCsDDdLqZdjkgXmzsjH9+Nfe6R+mYbdmeigy3ePNsIKbPkzZrY+E/I0lPZOVUgrs6gvZwlD3gESJgTROrUH6E2lBP9yYvFUE3KB0O+rdT5GyFq3MH1uD2ocrPCTQku6577wK31FzGoex6vtT4y2b39fLbhRmZDOJW8IFO7MLybazuRsNhaXn9hQU4HBRM2GQZc41bLkiEhsUX9/b2ujcn4PJKDZy91LnBw/93bgZJ7KweDzKywmcZSNeuBsGWgXdPqYiizzcf8DdvJAYytydhf8RxqdemTiS7GE7XBoXhj1/9Vfrt3lZXZbfYpTjNZeyxu7FrUJpm/I23wCw46qaRWzKXv2sRRUleNqQ1jIKEVupIa9sruHvG7DZecErhO9rMkGdsf4CIjolZ0A2BE+eAPEEY6/H1WFUWHxzxuELbUJwxnl1By677hBkLJaVs1YMGc2enGWzOnUYI=
2222
on:
23-
tags: true
23+
tags: true

CONTRIBUTING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ We use the famous [gitflow](http://nvie.com/posts/a-successful-git-branching-mod
2525
code](http://www.codinghorror.com/blog/2008/07/coding-without-comments.html);
2626
- Name identifiers (variables, classes, functions, module names) with meaningful
2727
and pronounceable names (`x` is always wrong);
28-
- When manipulating strings, use [f-String](https://www.python.org/dev/peps/pep-0498/)
29-
(use `"{a} = {b}"`, instead of `"{} = {}".format(a, b)` and `"%s = %s' % (a, b)"`);
28+
- When appropriate, use [f-String](https://www.python.org/dev/peps/pep-0498/)
29+
(use `f"{a} = {b}"`, instead of `"{} = {}".format(a, b)` and `"%s = %s' % (a, b)"`);
3030
- All `#TODO` comments should be turned into issues (use our
3131
[GitHub issue system](https://github.com/PyThaiNLP/pythainlp/));
3232
- Run all tests before pushing (just execute `tox`) so you will know if your
@@ -36,8 +36,8 @@ We use the famous [gitflow](http://nvie.com/posts/a-successful-git-branching-mod
3636

3737
# Discussion
3838

39-
- Facebook group (for Thai NLP Discussion only): https://www.facebook.com/groups/thainlp
40-
- GitHub issues (Problems and suggestions): https://github.com/PyThaiNLP/pythainlp/issues
39+
- GitHub issues (PyThaiNLP problems and suggestions): https://github.com/PyThaiNLP/pythainlp/issues
40+
- Facebook group (Thai NLP discussion in general, not specific to PyThaiNLP): https://www.facebook.com/groups/thainlp
4141

4242
Happy hacking! (;
4343

README-pypi.md

Lines changed: 0 additions & 64 deletions
This file was deleted.

conda.recipe/bld.bat

Lines changed: 0 additions & 2 deletions
This file was deleted.

conda.recipe/build.shno

Lines changed: 0 additions & 2 deletions
This file was deleted.

conda.recipe/meta.yaml

Lines changed: 0 additions & 50 deletions
This file was deleted.

meta.yaml

Lines changed: 0 additions & 35 deletions
This file was deleted.

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 2.0.5
2+
current_version = 2.1
33
commit = True
44
tag = True
55

setup.py

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,48 @@
22

33
from setuptools import find_packages, setup
44

5-
with open("README-pypi.md", "r", encoding="utf-8") as readme_file:
6-
readme = readme_file.read()
5+
readme = """
6+
![PyThaiNLP Logo](https://avatars0.githubusercontent.com/u/32934255?s=200&v=4)
77
8-
with open("requirements.txt", "r", encoding="utf-8") as f:
9-
requirements = f.read().splitlines()
8+
PyThaiNLP is a Python library for Thai natural language processing.
9+
It includes word tokenizers, transliterators, soundex converters, part-of-speech taggers, and spell checkers.
10+
11+
## Install
12+
13+
For stable version:
14+
15+
```sh
16+
pip install pythainlp
17+
```
18+
19+
Some functionalities, like word vector, required extra packages. See https://github.com/PyThaiNLP/pythainlp for installation options.
20+
21+
**Note for Windows**: `marisa-trie` wheels can be obtained from https://www.lfd.uci.edu/~gohlke/pythonlibs/#marisa-trie
22+
Install it with pip, for example: `pip install marisa_trie‑xxx.whl`
23+
"""
24+
25+
requirements = [
26+
"dill=>0.3.*,<1",
27+
"marisa-trie=>0.7.*,<1",
28+
"nltk=>3.4.*,<4",
29+
"requests=>2.22.*,<3",
30+
"tinydb=>3.13.*,<4",
31+
"tqdm=>4.35.*,<5",
32+
]
1033

1134
extras = {
1235
"artagger": ["artagger"],
1336
"attacut": ["attacut"],
37+
"benchmarks": ["numpy", "pandas"],
1438
"deepcut": ["deepcut", "keras", "tensorflow"],
1539
"icu": ["pyicu"],
1640
"ipa": ["epitran"],
17-
"ssg": ["ssg"],
1841
"ml": ["keras", "numpy", "torch"],
1942
"ner": ["sklearn-crfsuite"],
43+
"ssg": ["ssg"],
2044
"thai2fit": ["emoji", "gensim", "numpy"],
2145
"thai2rom": ["torch", "numpy"],
22-
"benchmarks": ["numpy", "pandas"],
46+
"wordnet": ["nltk"],
2347
"full": [
2448
"artagger",
2549
"attacut",

0 commit comments

Comments
 (0)