Skip to main content

PyScaffold extension to create a custom PyScaffold extension

Project description

Travis ReadTheDocs Coveralls PyPI-Server

pyscaffoldext-custom-extension

PyScaffold extension that let’s you create your own custom extensions.

Description

This extension serves as a support for the users interested in developing their own extension for PyScaffold. It configures your project so that you can start writing your extension logic and tests right away, taking care of all the wiring required to conform to PyScaffold’s needs.

Let’s say you want to create an extension named notebooks that creates a notebooks folder with some template Jupyter notebook. After having installed this extension with:

pip install pyscaffoldext-custom-extension

you will be able to just use it with:

putup --custom-extension notebooks

This will create a typical PyScaffold project template with some modifications:

  • the topmost namespace will be pyscaffoldext to have a unified namespace for PyScaffold extensions,

  • assures that the package (as PyPI sees it) is named pyscaffoldext-notebooks in setup.cfg,

  • sets the correct install_requires as well as the options.entry_points parameters in setup.cfg,

  • automatically activates the extensions --no-skeleton, --pre-commit, --travis and since we want clean-coded, high-quality extensions,

  • creates a extension.py module holding a class Notebooks which serves you as a template for your extension,

  • adds basic unit tests checking that the invocation of your extension works and that it complies with our flake8 code guidelines,

  • provides a modified README.rst indicating that this is a PyScaffold extensions and how to install it.

Making Changes & Contributing

This project uses pre-commit, please make sure to install it before making any changes:

$ pip install pre-commit
$ cd pyscaffoldext-custom-extension
$ pre-commit install

It is a good idea to update the hooks to the latest version:

pre-commit autoupdate

Please also check PyScaffold’s contribution guidelines,

Note

For more information about PyScaffold and its extension mechanism, check out http://pyscaffold.org/.

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

Built Distribution

File details

Details for the file pyscaffoldext-custom-extension-0.6a3.dev1.tar.gz.

File metadata

  • Download URL: pyscaffoldext-custom-extension-0.6a3.dev1.tar.gz
  • Upload date:
  • Size: 24.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.7.9

File hashes

Hashes for pyscaffoldext-custom-extension-0.6a3.dev1.tar.gz
Algorithm Hash digest
SHA256 9ad2f4ba7b52c9dff52ecf1fb9fc003317fb13fae18bc028e91be73b6e2189bd
MD5 689a0aa640ee8a8076a71e8a10066543
BLAKE2b-256 c9d1cfb966b5d538372d025bff4ea402534dfdc4b020ac1a2ab26f0855644436

See more details on using hashes here.

File details

Details for the file pyscaffoldext_custom_extension-0.6a3.dev1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pyscaffoldext_custom_extension-0.6a3.dev1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 98cd294c9ddd660872d65dee654f736ca33bbf25d1eee67201747d7bdc57b980
MD5 75da13ff104982e50a710355842e6bf7
BLAKE2b-256 ec03d822858a406ad5116fda836f51583202ee0fdfaaa9ccabd8a1a8594968e1

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