CharLCD on PyPi

There is last step do to with Char LCD. It is to publish it on PyPi. From now you can easy install package by:

pip install CharLCD


How to add your own package ?

Check if you have latest pip version

sudo pip install --upgrade pip

Create PyPi account. First on test server next on production. Next create file .pypirc in home folder:

[distutils]
index-servers=
        test
        pypi
[test]
repository = https://testpypi.python.org/pypi
username = 
password = 
[pypi]
repository = https://pypi.python.org/pypi
username = 
password = 

Uploading project require three things: compiling, registering package and uploading files.

python setup.py sdist bdist_wheel
python setup.py register -r test
python setup.py sdist upload -r test

Quick check if package is installable:

pip install -i https://testpypi.python.org/pypi <package_name>

And if everything seems good upload to production:

python setup.py register -r pypi
python setup.py sdist upload -r pypi

And that’s all 🙂

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s