Skip to content
This repository was archived by the owner on Sep 17, 2025. It is now read-only.

Commit ae9243e

Browse files
authored
Cleanup (#638)
Refactored README and CONTRIBUTING docs Updated changelog
1 parent 27dd506 commit ae9243e

4 files changed

Lines changed: 69 additions & 62 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Changelog
22

33
## Unreleased
4+
- Refactored PeriodicTask
5+
([#632](https://github.com/census-instrumentation/opencensus-python/pull/632))
46

57
## 0.5.0
68
Released 2019-04-24

CONTRIBUTING.md

Lines changed: 51 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,61 @@
1-
# How to Contribute
1+
# How to contribute
22

3-
We'd love to accept your patches and contributions to this project. There are
4-
just a few small guidelines you need to follow.
3+
We definitely welcome patches and contributions to OpenCensus! Here are
4+
some guidelines and information about how to do so.
55

6-
## Contributor License Agreement
6+
## Before getting started
77

8-
Contributions to this project must be accompanied by a Contributor License
9-
Agreement. You (or your employer) retain the copyright to your contribution,
10-
this simply gives us permission to use and redistribute your contributions as
11-
part of the project. Head over to <https://cla.developers.google.com/> to see
12-
your current agreements on file or to sign a new one.
13-
14-
You generally only need to submit a CLA once, so if you've already submitted one
15-
(even if it was for a different project), you probably don't need to do it
16-
again.
8+
In order to protect both you and ourselves, you will need to sign the
9+
[Contributor License Agreement](https://cla.developers.google.com/clas).
1710

1811
## Code reviews
1912

2013
All submissions, including submissions by project members, require review. We
2114
use GitHub pull requests for this purpose. Consult
2215
[GitHub Help](https://help.github.com/articles/about-pull-requests/) for more
2316
information on using pull requests.
17+
18+
## Instructions
19+
20+
Prerequisites:
21+
22+
* You need to have Python installed.
23+
* You need to fork the project in GitHub.
24+
25+
Clone the upstream repo:
26+
27+
```sh
28+
$ git clone https://github.com/census-instrumentation/opencensus-python.git
29+
```
30+
31+
Add your fork as an origin:
32+
33+
```sh
34+
$ git remote add fork https://github.com/YOUR_GITHUB_USERNAME/opencensus-python.git
35+
```
36+
37+
Run tests:
38+
39+
```sh
40+
$ pip install nox-automation # Only first time.
41+
$ nox
42+
```
43+
44+
Checkout a new branch, make modifications and push the branch to your fork:
45+
46+
```sh
47+
$ git checkout -b feature
48+
# edit files
49+
$ git commit
50+
$ git push fork feature
51+
```
52+
53+
Open a pull request against the main opencensus-python repo.
54+
55+
### Additional instructions for extension developers
56+
57+
If you want to contribute new [extensions](README.rst#extensions), you need some extra steps:
58+
59+
* Prepare the extension code, put it under the [contrib](./contrib/) folder.
60+
* Update [nox.py](./nox.py) to include your new extension for testing purpose.
61+
* Update [README](./README.rst#extensions) to include your extension.

README.rst

Lines changed: 14 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -227,57 +227,22 @@ Stats Exporter
227227
.. _threading: https://github.com/census-instrumentation/opencensus-python/tree/master/contrib/opencensus-ext-threading
228228
.. _Zipkin: https://github.com/census-instrumentation/opencensus-python/tree/master/contrib/opencensus-ext-zipkin
229229

230-
------------------
231-
Additional Info
232-
------------------
233-
234-
Contributing
230+
------------
231+
Versioning
235232
------------
236233

237-
Contributions to this library are always welcome and highly encouraged.
238-
239-
See `CONTRIBUTING <CONTRIBUTING.md>`__ for more information on how to
240-
get started.
241-
242-
243-
Development
244-
-----------
245-
246-
Tests
247-
~~~~~
248-
249-
::
250-
251-
cd trace
252-
tox -e py34
253-
source .tox/py34/bin/activate
254-
255-
# Install nox with pip
256-
pip install nox-automation
257-
258-
# See what's available in the nox suite
259-
nox -l
260-
261-
# Run a single nox command
262-
nox -s "unit(py='2.7')"
263-
264-
# Run all the nox commands
265-
nox
266-
267-
# Integration test
268-
# We don't have script for integration test yet, but can test as below.
269-
python setup.py bdist_wheel
270-
cd dist
271-
pip install opencensus-0.0.1-py2.py3-none-any.whl
272-
273-
# Then just run the tracers normally as you want to test.
274-
275-
License
276-
-------
234+
This library follows `Semantic Versioning`_.
277235

278-
Apache 2.0 - See `LICENSE <LICENSE>`__ for more information.
236+
**GA**: Libraries defined at a GA quality level are stable, and will not introduce
237+
backwards-incompatible changes in any minor or patch releases. We will address issues and requests
238+
with the highest priority. If we were to make a backwards-incompatible changes on an API, we will
239+
first mark the existing API as deprecated and keep it for 18 months before removing it.
279240

280-
Disclaimer
281-
----------
241+
**Beta**: Libraries defined at a Beta quality level are expected to be mostly stable and we're
242+
working towards their release candidate. We will address issues and requests with a higher priority.
243+
There may be backwards incompatible changes in a minor version release, though not in a patch
244+
release. If an element is part of an API that is only meant to be used by exporters or other
245+
opencensus libraries, then there is no deprecation period. Otherwise, we will deprecate it for 18
246+
months before removing it, if possible.
282247

283-
This is not an official Google product.
248+
.. _Semantic Versioning: https://semver.org/

contrib/opencensus-ext-azure/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Changelog
22

33
## Unreleased
4+
- Add persistent storage support
5+
([#632](https://github.com/census-instrumentation/opencensus-python/pull/632))
46

57
## 0.1.0
68
Released 2019-04-24

0 commit comments

Comments
 (0)