mirror of
https://github.com/sprockets/sprockets-statsd.git
synced 2024-11-15 03:00:25 +00:00
Merge pull request #2 from dave-shawley/add-rtd
Add readthedocs.org configuration
This commit is contained in:
commit
26e596172e
5 changed files with 42 additions and 6 deletions
7
.github/workflows/run-tests.yml
vendored
7
.github/workflows/run-tests.yml
vendored
|
@ -34,14 +34,11 @@ jobs:
|
||||||
coverage run -m unittest
|
coverage run -m unittest
|
||||||
coverage report
|
coverage report
|
||||||
coverage xml -o ./coverage.xml
|
coverage xml -o ./coverage.xml
|
||||||
- name: Generate documentation
|
|
||||||
run: |
|
|
||||||
sphinx-build -b html -W --no-color docs build/sphinx/html
|
|
||||||
- name: Upload coverage
|
- name: Upload coverage
|
||||||
uses: codecov/codecov-action@v1.0.2
|
uses: codecov/codecov-action@v1.3.2
|
||||||
with:
|
with:
|
||||||
token: ${{secrets.CODECOV_TOKEN}}
|
token: ${{secrets.CODECOV_TOKEN}}
|
||||||
file: ./coverage.xml
|
file: ./coverage.xml
|
||||||
flags: unittests
|
flags: unittests
|
||||||
env_vars: OS,PYTHON
|
|
||||||
fail_ci_if_error: true
|
fail_ci_if_error: true
|
||||||
|
verbose: true
|
||||||
|
|
15
.readthedocs.yaml
Normal file
15
.readthedocs.yaml
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
version: 2
|
||||||
|
|
||||||
|
sphinx:
|
||||||
|
builder: html
|
||||||
|
configuration: docs/conf.py
|
||||||
|
fail_on_warning: true
|
||||||
|
|
||||||
|
python:
|
||||||
|
version: 3.7
|
||||||
|
install:
|
||||||
|
- method: pip
|
||||||
|
path: .
|
||||||
|
extra_requirements:
|
||||||
|
- readthedocs
|
||||||
|
system_packages: true
|
|
@ -5,3 +5,5 @@ include CHANGELOG.rst
|
||||||
include example.py
|
include example.py
|
||||||
include LICENSE
|
include LICENSE
|
||||||
include tox.ini
|
include tox.ini
|
||||||
|
|
||||||
|
global-exclude *.pyc
|
||||||
|
|
18
README.rst
18
README.rst
|
@ -1,5 +1,10 @@
|
||||||
Asynchronously send metrics to a statsd_ instance.
|
Asynchronously send metrics to a statsd_ instance.
|
||||||
|
|
||||||
|
|build| |coverage| |source|
|
||||||
|
|
||||||
|
.. COMMENTED OUT FOR THE TIME BEING
|
||||||
|
|docs| |download| |license|
|
||||||
|
|
||||||
This library provides connectors to send metrics to a statsd_ instance using either TCP or UDP.
|
This library provides connectors to send metrics to a statsd_ instance using either TCP or UDP.
|
||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
@ -115,3 +120,16 @@ not connected to the server and will be sent in the order received when the task
|
||||||
|
|
||||||
.. _statsd: https://github.com/statsd/statsd/
|
.. _statsd: https://github.com/statsd/statsd/
|
||||||
.. _tornado: https://tornadoweb.org/
|
.. _tornado: https://tornadoweb.org/
|
||||||
|
|
||||||
|
.. |build| image:: https://img.shields.io/github/workflow/status/sprockets/sprockets-statsd/Testing/main?style=social
|
||||||
|
:target: https://github.com/sprockets/sprockets-statsd/actions/workflows/run-tests.yml
|
||||||
|
.. |coverage| image:: https://img.shields.io/codecov/c/github/sprockets/sprockets-statsd?style=social
|
||||||
|
:target: https://app.codecov.io/gh/sprockets/sprockets-statsd
|
||||||
|
.. |docs| image:: https://img.shields.io/readthedocs/sprockets-statsd.svg?style=social
|
||||||
|
:target: https://sprockets-statsd.readthedocs.io/en/latest/?badge=latest
|
||||||
|
.. |download| image:: https://img.shields.io/pypi/pyversions/sprockets-statsd.svg?style=social
|
||||||
|
:target: https://pypi.org/project/sprockets-statsd/
|
||||||
|
.. |license| image:: https://img.shields.io/pypi/l/sprockets-statsd.svg?style=social
|
||||||
|
:target: https://github.com/sprockets/sprockets-statsd/blob/master/LICENSE.txt
|
||||||
|
.. |source| image:: https://img.shields.io/badge/source-github.com-green.svg?style=social
|
||||||
|
:target: https://github.com/sprockets/sprockets-statsd
|
||||||
|
|
|
@ -42,6 +42,10 @@ dev =
|
||||||
sphinx-autodoc-typehints==1.11.1
|
sphinx-autodoc-typehints==1.11.1
|
||||||
tornado>=5
|
tornado>=5
|
||||||
yapf==0.30.0
|
yapf==0.30.0
|
||||||
|
readthedocs =
|
||||||
|
sphinx==3.5.2
|
||||||
|
sphinx-autodoc-typehints==1.11.1
|
||||||
|
tornado>=5
|
||||||
|
|
||||||
[options.packages.find]
|
[options.packages.find]
|
||||||
exclude =
|
exclude =
|
||||||
|
|
Loading…
Reference in a new issue