This is to upload source to pypi. To upload linux wheel binaries, see manylinux.
-
Increment the version number in
rerf/__init__.py
-
Create a ~/.pypirc file with the following content:
[distutils] index-servers = neurodata neurodata-test [neurodata] repository=https://upload.pypi.org/legacy/ username=xxxx password=xxxx [neurodata-test] repository=https://test.pypi.org/legacy/ username=xxxx password=xxxx
-
Update packaging dependencies
pip install --upgrade setuptools wheel pip install --upgrade twine
-
Test upload on test.pypi.org (only source)
python setup.py sdist twine upload --repository neurodata-test dist/*
-
Test pip installable from test.pypi.org
pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple rerf==0.0.3.dev2
-
Create
dist
files-
On
Linux
, only upload sourcepython setup.py sdist
-
On
OSX
includewheels
python setup.py sdist bdist_wheel
-
-
If successful, upload version to PyPi
twine upload --repository neurodata dist/*
-
Test pip installable
pip install rerf -U
-
Create new release on GitHub (tag)
cd docker
docker build -t neurodata/rerf .
docker push neurodata/rerf