yichen0831 / opencc-python

OpenCC made with Python
Apache License 2.0
532 stars 66 forks source link

上传到 pypi #3

Closed Cologler closed 6 years ago

ghost commented 6 years ago

Please upload it to https://pypi.python.org, thanks.

yichen0831 commented 6 years ago

Sorry, I have no idea how to do it.

Cologler commented 6 years ago

@yichen0831

first, register a account on https://pypi.python.org

second, create file .pypirc in your user dir like C:\Users\YOUR, with content:

[distutils]
index-servers =
    pypi

[pypi]
username:???????????
password:???????????

You already wrote the setup.py.

So you just need to call command python setup.py register sdist bdist_egg upload.

yichen0831 commented 6 years ago

As the package name 'opencc-python' has already been taken, I named my implementation "opencc-python-reimplemented" and uploaded it to pypi.

Now it should be installed by issuing: pip install opencc-python-reimplemented

ghost commented 6 years ago

Well done!