3. Use the test server URL to register your project (it gives you the right to modify your project on the server):

python setup.py register -r https://testpypi.python.org/pypi

4. Then uploading it using twine:

twine upload dist/* -r testpypi

Now that your project is on the server, test that you can install your package from testpypi (it may be a good idea to run your unit tests from another directory to make sure you are using the version you just installed):

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

If you need to push your project again, change the version number in setup.py otherwise the server will give you an error.