Skip to content

niamhdougan/dls_python3_template_module

Repository files navigation

dls_python3_template_module

Build Status Test Coverage Latest PyPI version Documentation

This is a template module for Python3 projects, containing recommended features for code styling checks and versioning.

In order to disable these features, you will need to remove the appropriate items from the list of [dev-packages] in the Pipfile, as well as the corresponding sections and pytest flags in setup.cfg.

Changes to make:

  • Write a README
  • Write tests
  • Write docs

Tests

There are a set of tests in this template that are designed to fail if boilerplate text hasn't been removed and some general information variables about this module have not been changed.

Deploying to Pypi

You will need to add the following to the end of the module's .travis.yml file.

deploy:
  provider: pypi
  username: {username}
  password:
    secure: {secure_password}
  # Only deploy if something else in the matrix hasn't already done the sdist/wheel
  skip_existing: true
  on:
    tags: true
  # opt in to dpl v2
  edge: true

For instructions on how to create a secure key, see this confluence page: https://confluence.diamond.ac.uk/display/CNTRLS/Deploying+to+PyPi+using+Travis

Alternatively, there is a script that will automatically append this entire deploy section to your .travis.yml, including generating a secure password for your repository.

Documentation

Full documentation is available at http://dls_python3_template_module.readthedocs.io

Source Code

Available from http://github.com/dls-controls/dls_python3_template_module

Installation

To start using this template:

git clone https://github.com/dls-controls/dls_python3_template_module

Contributing

See CONTRIBUTING

License

APACHE License. (see LICENSE)

About

Recommendations for starting new python3 modules

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages