Skip to content

Commit 4351289

Browse files
committed
Switch to PBR
sem-ver: feature
1 parent 5794465 commit 4351289

9 files changed

Lines changed: 48 additions & 52 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ dist
1010
htmlcov
1111
.cache
1212
flycheck_*
13+
14+
/.eggs

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ python:
55
- 3.6
66
install:
77
- pip install -U pip setuptools
8-
- pip install -r test_requirements.txt
9-
- pip install -e .
8+
- pip install -e .[testing]
109
script:
1110
- pylint -j $(nproc) --rcfile=.pylintrc backslash tests
1211
- py.test tests

backslash/__version__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
__version__ = '2.28.6'
1+
import pkg_resources
2+
3+
__version__ = pkg_resources.get_distribution('backslash').version

docs/changelog.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
Changelog
22
=========
33

4+
* :feature:`-` Move to PBR
45
* :bug:`31 major` Be more resilient to I/O errors when compressing tracebacks
56
* :feature:`39` Added ``webapp_url`` and ``rest_url`` to the official Slash plugin
67
* :feature:`37` Support reporting fatal exceptions

requirements.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
GitPython
2+
Logbook
3+
munch
4+
requests
5+
sentinels
6+
URLObject

setup.cfg

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
[metadata]
2+
name = backslash
3+
classifiers =
4+
Programming Language :: Python :: 2.7
5+
Programming Language :: Python :: 3.5
6+
Programming Language :: Python :: 3.6
7+
description = Client library for the Backslash test reporting service
8+
license = BSD
9+
author = Rotem Yaari
10+
author_email = vmalloc@gmail.com
11+
url = http://github.com/getslash/backslash-python/
12+
13+
14+
[extras]
15+
testing =
16+
slash
17+
Flask
18+
Flask-Loopback
19+
pylint
20+
pytest
21+
pytest-cov
22+
URLObject
23+
weber-utils
24+
25+
sentry =
26+
raven
27+
28+
[tool:pytest]
29+
testpaths = tests

setup.py

Lines changed: 6 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,8 @@
1-
import os
2-
from setuptools import setup, find_packages
1+
#!/usr/bin/env python
2+
from setuptools import setup
33

4-
with open(os.path.join(os.path.dirname(__file__), "backslash", "__version__.py")) as version_file:
5-
exec(version_file.read()) # pylint: disable=W0122
64

7-
_INSTALL_REQUIRES = [
8-
"GitPython",
9-
"Logbook",
10-
"munch",
11-
"requests",
12-
"sentinels",
13-
"URLObject",
14-
]
15-
16-
setup(name="backslash",
17-
classifiers = [
18-
"Programming Language :: Python :: 2.7",
19-
"Programming Language :: Python :: 3.5",
20-
"Programming Language :: Python :: 3.6",
21-
],
22-
description="Client library for the Backslash test reporting service",
23-
license="BSD3",
24-
author="Rotem Yaari",
25-
author_email="vmalloc@gmail.com",
26-
version=__version__, # pylint: disable=E0602
27-
packages=find_packages(exclude=["tests"]),
28-
29-
url="https://github.com/vmalloc/backslash-python",
30-
31-
install_requires=_INSTALL_REQUIRES,
32-
scripts=[],
33-
namespace_packages=[]
34-
)
5+
setup(
6+
setup_requires=['pbr>=3.0', 'setuptools>=17.1'],
7+
pbr=True,
8+
)

test_requirements.txt

Lines changed: 0 additions & 8 deletions
This file was deleted.

tox.ini

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)