Skip to main content

Test description for the first python package.

Project description

first-python-package

This package is awesome.

Installation

python -m pip install first-python-package

Notes

  1. Use pyproject-build for building your project
    • use newer pyproject.toml for specification
    • you can also use setup.py if other options not availble
    • pyproject-build creates source distribution pkg and binary distirbution pkg
    • add info about required build system
  2. Package Metadata
    • use setup.cfg to specify that
      • name
      • version
      • url
      • author
      • author_email
      • description
      • license
      • long_description (this is best based on README.md)
  3. Split directory structure into src and test - such separation is important for packaging. You want to run your tests against packaged code, not raw source code.
  4. In MANIFEST.in specify non-Python files that should be included.

Adding Cython to your project

  1. Find code for optimization and port it to Cython (.pyx)
  2. Add Cython as a build requirement in pyproject.toml -> if you want to work with Cython you need a package
  3. Create setup.py where you specify Cython files.

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

pubpypack-harmony-marcin-sztylko-0.0.1.tar.gz (39.5 kB view details)

Uploaded Source

File details

Details for the file pubpypack-harmony-marcin-sztylko-0.0.1.tar.gz.

File metadata

File hashes

Hashes for pubpypack-harmony-marcin-sztylko-0.0.1.tar.gz
Algorithm Hash digest
SHA256 aa912cde7c9de87491143445c457cee87392a35abe0837e2ffdb634e3bbde0df
MD5 13fec66989502dd590ba77661380f85f
BLAKE2b-256 7defaf318441d41bc5b1656959a59eca2f0879515806c451438f848597ddbfbb

See more details on using hashes here.

Supported by

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