# Testing Repository

Utilizing the testing repository is a good idea, because deleting and/or editing mistakes within the official publishing repository is not generally allowed.

Testing Repository installation syntax adds --index-url https://test.pypi.org/simple/ and --no-deps <Package_Name>-<Account_Name> options, eg…

python3 -m pip install\
  --index-url https://test.pypi.org/simple/\
  --no-deps python-first-library-S0AndS0

Note, the --no-deps flag tells Pip to not install dependencies from the testing URL, this is important to avoid errors during installation, and testing.


# Publish Repository

Please do not skip setting up 2 Factor Authentication, because you’ll be publishing code for others to make use of.


# Example ~/.pypirc

[pypi]
  username = __token__
  ## Test
  password = pypi-API_TEST_KEY...
  ## Publish
  # password = pypi-API_PUBLISH_KEY...