Skip to main content

Plot the magical Mandelbrot set.

Project description

Publish

Finally, let's be brave and publish our package to PyPI. There's no good reason for you not to do this, as it's free and easy to do, and it's an awesome thing to be able to say you've done!

0 - Create or log in to PyPI

Next, we need to create an account on PyPI, or log in if we already have one. You can do this at https://pypi.org/account/register/.

1 - Create an API token

Go to https://pypi.org/manage/account/token/ and create a new API token. Make sure to copy the token somewhere safe, as you won't be able to see it again.

2 - Add the token to Poetry

poetry config pypi-token.pypi your-token-you-just-created

3 - Build

Now we need to build the package.

poetry build

4 - Publish

Run the following command to publish the package to PyPI:

poetry publish

Note

The name you give your package must be unique on PyPI. If you try to publish a package with a name that already exists, you'll get an error. I've renamed my package to mandybrot to avoid this problem.


5 - Install

In another project, we can now install mandybrot like any other package!

[tool.poetry.dependencies]
mandybrot = "^0.0.0"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mandybrot-0.0.1.tar.gz (2.1 kB view hashes)

Uploaded Source

Built Distribution

mandybrot-0.0.1-py3-none-any.whl (2.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page