Skip to content

Commit d7809a9

Browse files
author
bcronin
committed
Automated commit
1 parent 1b93f76 commit d7809a9

File tree

8 files changed

+77
-3
lines changed

8 files changed

+77
-3
lines changed

Makefile

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
.PHONY: build thrift lint docs dist inc-version publish sample-app \
2+
test test-util test-runtime test-opentracing
3+
4+
5+
build: thrift lint
6+
7+
thrift:
8+
thrift -r -gen py -out lightstep/ $(LIGHTSTEP_HOME)/go/src/crouton/crouton.thrift
9+
rm lightstep/crouton/ReportingService-remote
10+
11+
lint:
12+
pylint -r n --disable=invalid-name,global-statement,bare-except \
13+
lightstep/instrument.py lightstep/constants.py lightstep/connection.py
14+
15+
docs:
16+
cd docs && make html
17+
18+
dist: build docs inc-version
19+
mkdir -p dist
20+
rm -rf dist
21+
python setup.py sdist # source distribution
22+
python setup.py bdist_wheel
23+
24+
# TODO: There's inelegant dependency on Node.js here
25+
inc-version: scripts/node_modules
26+
node scripts/inc_version.js
27+
28+
scripts/node_modules:
29+
cd scripts && npm update
30+
31+
publish: dist
32+
twine upload dist/*
33+
34+
sample-app: build
35+
python sample/send_spans_logs.py
36+
37+
test: build test-util test-runtime test-opentracing
38+
tox
39+
40+
test-util:
41+
python tests/util_test.py
42+
43+
test-runtme:
44+
python tests/runtime_test.py
45+
46+
test-opentracing:
47+
python tests/opentracing_compatibility_test.py

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.0.2
1+
2.0.3

api-python.sentinel

Whitespace-only changes.

lightstep/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
CRUNTIME_VERSION="2.0.2"
1+
CRUNTIME_VERSION="2.0.4"

scripts/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules/

scripts/inc_version.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
//
2+
// Helper script to bump the version number
3+
//
4+
// TODO: a Node.js dependency in a Python package is not ideal.
5+
//
6+
var fs = require('fs');
7+
var _ = require('underscore');
8+
9+
var version = (fs.readFileSync("VERSION", "utf8") || "1.0.0").replace(/\s+$/, "");
10+
var newVersion = require("semver").inc(version, "patch");
11+
fs.writeFileSync("VERSION", newVersion);
12+
fs.writeFileSync("lightstep/version.py", "CRUNTIME_VERSION=\"" + newVersion + "\"\n");
13+
14+
// Naive micro-sed on setup.py
15+
var setuppy = _.map(fs.readFileSync("setup.py", "utf8").split("\n"), function(line) {
16+
return line.replace("'" + version + "'", "'" + newVersion + "'");
17+
}).join("\n");
18+
fs.writeFileSync("setup.py", setuppy);
19+
20+
console.log(version + " -> " + newVersion);

scripts/package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"dependencies": {
3+
"semver": "^5.1.0",
4+
"underscore": "^1.8.3"
5+
}
6+
}

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setup(
44
name='lightstep',
5-
version='2.0.2',
5+
version='2.0.4',
66
description='LightStep Python OpenTracing Implementation',
77
long_description='',
88
author='LightStep',

0 commit comments

Comments
 (0)