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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file mandybrot-0.0.1.tar.gz.

File metadata

  • Download URL: mandybrot-0.0.1.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.0 CPython/3.11.2 Darwin/22.1.0

File hashes

Hashes for mandybrot-0.0.1.tar.gz
Algorithm Hash digest
SHA256 3e7a18c451c9217a1b2dcc75a902963098522296040f610e10adea0acb46f663
MD5 f6b9058ad1b70a21d726b9c857196190
BLAKE2b-256 247853508c7f5a3f35db6cfbbd30bc747b39ec34121fdbb10709ead96f04195b

See more details on using hashes here.

File details

Details for the file mandybrot-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: mandybrot-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.0 CPython/3.11.2 Darwin/22.1.0

File hashes

Hashes for mandybrot-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b9caef7918f9eed2a2303631b987dddd092c328f548c226955701f2971198007
MD5 f22ea9a4481ab3d6e4fbf3edb4a0a112
BLAKE2b-256 37c987ae92b4e21e9f165ae5871b50a1aa1b67ec142f1561e3a56abeb9548041

See more details on using hashes here.

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