rspeer / wordfreq

Access a database of word frequencies, in various natural languages.
Other
1.41k stars 100 forks source link

pip install wordfreq[cjk] does not get extras #103

Closed KennyChenBasis closed 2 years ago

KennyChenBasis commented 2 years ago

But pip install wordfreq[cjk]==2.5.1 does get the extras:

$ pip install wordfreq[cjk]
Collecting wordfreq[cjk]
  Downloading wordfreq-3.0.1-py3-none-any.whl (56.8 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 56.8/56.8 MB 9.7 MB/s eta 0:00:00
Collecting ftfy>=6.1
  Downloading ftfy-6.1.1-py3-none-any.whl (53 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 53.1/53.1 kB 13.6 MB/s eta 0:00:00
Collecting langcodes>=3.0
  Downloading langcodes-3.3.0-py3-none-any.whl (181 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 181.6/181.6 kB 19.4 MB/s eta 0:00:00
Collecting msgpack>=1.0
  Downloading msgpack-1.0.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (322 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 322.5/322.5 kB 18.8 MB/s eta 0:00:00
Collecting regex>=2020.04.04
  Downloading regex-2022.9.13-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (772 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 772.3/772.3 kB 14.7 MB/s eta 0:00:00
Collecting wcwidth>=0.2.5
  Downloading wcwidth-0.2.5-py2.py3-none-any.whl (30 kB)
Installing collected packages: wcwidth, msgpack, regex, langcodes, ftfy, wordfreq
Successfully installed ftfy-6.1.1 langcodes-3.3.0 msgpack-1.0.4 regex-2022.9.13 wcwidth-0.2.5 wordfreq-3.0.1
$ pip install wordfreq[cjk]==2.5.1
Collecting wordfreq[cjk]==2.5.1
  Downloading wordfreq-2.5.1.tar.gz (56.8 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 56.8/56.8 MB 11.7 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Requirement already satisfied: msgpack>=1.0 in ./venv/lib/python3.8/site-packages (from wordfreq[cjk]==2.5.1) (1.0.4)
Requirement already satisfied: langcodes>=3.0 in ./venv/lib/python3.8/site-packages (from wordfreq[cjk]==2.5.1) (3.3.0)
Requirement already satisfied: regex>=2020.04.04 in ./venv/lib/python3.8/site-packages (from wordfreq[cjk]==2.5.1) (2022.9.13)
Requirement already satisfied: ftfy>=3.0 in ./venv/lib/python3.8/site-packages (from wordfreq[cjk]==2.5.1) (6.1.1)
Collecting mecab-python3
  Downloading mecab_python3-1.0.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (577 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 577.3/577.3 kB 15.4 MB/s eta 0:00:00
Collecting ipadic
  Downloading ipadic-1.0.0.tar.gz (13.4 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 13.4/13.4 MB 15.2 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting mecab-ko-dic
  Downloading mecab-ko-dic-1.0.0.tar.gz (33.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 33.2/33.2 MB 13.7 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting jieba>=0.42
  Downloading jieba-0.42.1.tar.gz (19.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 19.2/19.2 MB 16.1 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Requirement already satisfied: wcwidth>=0.2.5 in ./venv/lib/python3.8/site-packages (from ftfy>=3.0->wordfreq[cjk]==2.5.1) (0.2.5)
Building wheels for collected packages: jieba, ipadic, mecab-ko-dic, wordfreq
  Building wheel for jieba (setup.py) ... done
  Created wheel for jieba: filename=jieba-0.42.1-py3-none-any.whl size=19314459 sha256=8ca4c94b1c6311a8c15ad2f4a2c7e18346155853d1cc9296a17c7bbd30322774
  Stored in directory: /home/user/.cache/pip/wheels/ca/38/d8/dfdfe73bec1d12026b30cb7ce8da650f3f0ea2cf155ea018ae
  Building wheel for ipadic (setup.py) ... done
  Created wheel for ipadic: filename=ipadic-1.0.0-py3-none-any.whl size=13556704 sha256=04891c7a7cb8436787944c3daac6cd6f173a7526363890909e8979473bdfa87b
  Stored in directory: /home/user/.cache/pip/wheels/45/b7/f5/a21e68db846eedcd00d69e37d60bab3f68eb20b1d99cdff652
  Building wheel for mecab-ko-dic (setup.py) ... done
  Created wheel for mecab-ko-dic: filename=mecab_ko_dic-1.0.0-py3-none-any.whl size=33424393 sha256=cc897b647cb5c7e5739ddfb20a02c6ce2646bb343c9b32243547ffe42d318cf6
  Stored in directory: /home/user/.cache/pip/wheels/c2/c6/6d/d7789f7fb7f60e98ce7febfa26300cd7cf2b88a02a9bb97096
  Building wheel for wordfreq (setup.py) ... done
  Created wheel for wordfreq: filename=wordfreq-2.5.1-py3-none-any.whl size=56830991 sha256=8382d9739a82ad065fcfe5506237a2ca1838e6916332514527cad06d45d42f31
  Stored in directory: /home/user/.cache/pip/wheels/00/85/d7/6f6004757be385f8008965b3d112c1ac88c9837457faecfb31
Successfully built jieba ipadic mecab-ko-dic wordfreq
Installing collected packages: mecab-python3, mecab-ko-dic, jieba, ipadic, wordfreq
  Attempting uninstall: wordfreq
    Found existing installation: wordfreq 3.0.1
    Uninstalling wordfreq-3.0.1:
      Successfully uninstalled wordfreq-3.0.1
Successfully installed ipadic-1.0.0 jieba-0.42.1 mecab-ko-dic-1.0.0 mecab-python3-1.0.5 wordfreq-2.5.1

Using pip version 22.2.2. Repackaging with a newer Poetry might work?