Coder Social home page Coder Social logo

fastclient's Introduction

fastclient

FOSSA Status Codacy Badge

This is a template that contains workflows to automatically perform testing, publish release assets and push them to pypi on release, issue templates, workflow cleanup, and some quality-of-life for python packages.

TODO

Automated distribution on release

  • Sign up for an account at testpypi and pypi
  • Under account settings (in your pypi account) select API tokens and create a new one with the permission to upload to the entire account.
  • Go to the settings page in your repo and select secrets, click 'add secret' and paste your token from testpypi into a secret named 'TEST_PYPI_PASSWD' and the one from pypi to 'PYPI_PASSWD'.
  • You are now able to create a release. Choose a tag name that contains only alphanumericals, underscores and dots. If you select 'This is a prerelease', your package will only be uploaded to testpypi, if you don't, it will be uploaded to both testpypi and pypi.

ReadTheDocs

If you want to host your documentation on ReadTheDocs, everything is already set up for you. Just go to readthedocs.org, create a new project, and fill in some details. (Pro tip: Link your GitHub with RTD and choose to generate previews for pull-requests.

All documentation is written using reStructuredText files, and converted to html by Sphinx. Sphinx by default has the napoleon, autodoc, intersphinx and coverage extensions enabled.

For the Sphinx-generated documentation preview to work, you'll have to click Use docutils in the bottom status bar and select Sphinx while editing a .rst file. Now you can press Ctrl+Shift+P and select reStructuredText: Open Preview (to the Side).

Automatic unittesting

  • If you're familiar with the python testing framework unittest, this is for you.
  • Write your test like you normally would. With every push, your tests are run against the code you wrote. If your project depends on libraries, you can add a requirements.txt file at the root level, or just let setup.py do it's thing.

FOSSA analysis

If you want to use FOSSA to analyze your code for license violations, vulnerabilities and quality management (coming soon), you can include a fossa api key in your secrets as FOSSA_API_KEY.

Some extra stuff

  • Tests are automatically skipped if no tests are found
  • Tests have to be in files following the pattern test*.py
  • If the code changes are from a pull-request, a comment in the discussion about the test results will be made
  • Take a look at shields.io and search for 'github'. You'll get an idea of what badges in your readme can be used for!
  • You can use the placeholder [vermin] in your release notes. It will dynamically be replaced with the version requirements of this package.
  • For codespaces users: It might take some time for the config to be loaded successfully. After loading into the codespace for the first time, just lean back for a minute, don't touch anything and then hit refresh.

fastclient's People

Contributors

leonhma avatar

Stargazers

Martin Ndirangu avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.