Python library for reporting metrics to Atlas.
Project description
Introduction
Python port of the Spectator library for Java.
See the Spectator documentation for an overview of core concepts and details on usage.
Supports Python >= 2.7, with Python >= 3.6 recommended.
Local Development
- Install pyenv, possibly with Homebrew.
- Install Python versions: 2.7, 3.6, 3.7, and 3.8. Enable all versions globally.
- Make changes and add tests.
tox
Release Process
-
Pre-Requisites.
-
Install packaging tools.
pip3 install setuptools wheel twine
-
Configure PyPI username.
cat >~/.pypirc <<EOF [distutils] index-servers = pypi [pypi] repository: https://pypi.python.org/pypi username: $PYPI_USERNAME EOF
-
-
Bump the version number in setup.py.
-
Tag the repo and write release notes. The goal is for the releases page to be readable.
-
Clone the upstream project.
-
Create a new tag.
git tag v0.1.X
-
Push the tags to the origin.
git push origin --tags
-
Project > Releases > Tags > Select Tag > Create Release
Primary changes: - #<PR number>, <short description>. A comprehensive list of changes can be found in the commit log: https://github.com/Netflix/spectator-py/compare/v0.1.<N-1>...v0.1.<N>
-
-
On your local machine, checkout the tag and run the following command, which will build the package and upload it to PyPI.
git checkout $TAG python3.6 setup.py sdist bdist_wheel twine check dist/* twine upload dist/*
Example release commits:
Project details
Release history Release notifications | RSS feed
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
Hashes for netflix-spectator-py-0.1.13.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2985f6228ed5e39bef4d7a19cb6f98b760f79455a6d2b91b1e246b099a573f47 |
|
MD5 | 75f485e0e0ee1bdf8a3d89a6237c34bd |
|
BLAKE2b-256 | db2d21927b18678b85784d82a04f8a2b55a02de7a3801965ff27d6bc02c70a4d |
Hashes for netflix_spectator_py-0.1.13-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c10e7509524d15c7c7d6483c450245ebeaf3cf31a4d4d0c065d2453fcfac6301 |
|
MD5 | e36031541191a6a32e392a33b8ce10b6 |
|
BLAKE2b-256 | bc429dbd927820156a4b1ac3cd8494c5f0d31a7671e50f398f149923a68b7369 |