My personal notes on how to distribute releases of RiveScript to various language module repositories.
If this is the first time publishing from a new computer, create
~/.pypirc with your PyPI credentials:
[distutils] index-servers=pypi [pypi] repository = https://pypi.python.org/pypi username = $USERNAME password = $PASSWORD
Make sure everything's ready to go (version numbers incremented, documentation rebuilt, etc.) and run this command to create all the distributable items:
# Install the requirements to get the bdist_wheel command $ pip install -r requirements.txt $ python setup.py sdist bdist_wheel
This generates files in the
sdistcreates the source tarball
bdist_wheelcreates a portable pre-built wheel file (the new “egg”)
bdist_rpmcreates an RPM (not necessary to upload this to PyPI)
bdist_wininstcreates a Win32 installer (not necessary to upload this to PyPI)
And to upload to PyPI:
$ pip install twine $ twine upload dist/*
To build the RPM for Fedora:
$ rpmbuild -ba python-rivescript.spec
npm install ../rivescript-jsand make sure it works.
npm loginif it's the first time on a new PC and
npm publishto publish.
rm -rf node_modules
zip -r rivescript-js-1.1.2.zip rivescript-js -x '*.git*'
tar -czvf rivescript-js-1.1.2.tar.gz rivescript-js --exclude .git
See also: npm developers
Upload resulting tarball to PAUSE for indexing on CPAN.