Skip to content

Commit 0a67e7f

Browse files
author
Ayala Shachar
committed
Use PBR
1 parent 8916c67 commit 0a67e7f

6 files changed

Lines changed: 40 additions & 40 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
*.pyc
22
.vagrant
33
*.egg-info
4+
.eggs
45
build
56
.tox
67
flycheck-*

Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,5 @@ env: .env/.up-to-date
77

88
.env/.up-to-date: setup.py Makefile
99
python -m virtualenv .env
10-
.env/bin/pip install -e .
11-
.env/bin/pip install pytest
10+
.env/bin/pip install -e ".[testing]"
1211
touch $@
13-

flask_loopback/__version__.py

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

requirements.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
requests
2+
Flask
3+
URLObject
4+
5+
unittest2; python_version<'2.7'
6+
contextlib2; python_version<'3.3'

setup.cfg

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
[metadata]
2+
name = Flask-Loopback
3+
classifiers =
4+
Programming Language :: Python :: 2.7
5+
Programming Language :: Python :: 3.5
6+
Programming Language :: Python :: 3.6
7+
Programming Language :: Python :: 3.7
8+
summary = Library for faking HTTP requests using flask applications without actual network operations
9+
description-file =
10+
README.md
11+
description-content-type = text/markdown
12+
license = BSD3
13+
author = Rotem Yaari
14+
author_email = vmalloc@gmail.com
15+
url = https://github.com/vmalloc/flask-loopback
16+
17+
[extras]
18+
testing =
19+
pytest
20+
21+
[tool:pytest]
22+
testpaths = tests

setup.py

Lines changed: 7 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,9 @@
1-
import os
2-
import sys
3-
from setuptools import setup, find_packages
1+
#!/usr/bin/env python
2+
from setuptools import setup
43

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

8-
_INSTALL_REQUIERS = [
9-
"requests",
10-
"Flask",
11-
"URLObject",
12-
]
13-
14-
if sys.version_info < (2, 7):
15-
_INSTALL_REQUIERS.append("unittest2")
16-
17-
if sys.version_info < (3, 3):
18-
_INSTALL_REQUIERS.append("contextlib2")
19-
20-
setup(name="Flask-Loopback",
21-
classifiers = [
22-
"Programming Language :: Python :: 2.6",
23-
"Programming Language :: Python :: 2.7",
24-
"Programming Language :: Python :: 3.3",
25-
],
26-
description="Library for faking HTTP requests using flask applications without actual network operations",
27-
license="BSD3",
28-
author="Rotem Yaari",
29-
author_email="vmalloc@gmail.com",
30-
version=__version__, # pylint: disable=E0602
31-
packages=find_packages(exclude=["tests"]),
32-
33-
url="https://github.com/vmalloc/flask-loopback",
34-
35-
install_requires=_INSTALL_REQUIERS,
36-
scripts=[],
37-
namespace_packages=[]
38-
)
5+
setup(
6+
setup_requires=['pbr>=3.0', 'setuptools>=17.1'],
7+
pbr=True,
8+
long_description_content_type='text/markdown; charset=UTF-8',
9+
)

0 commit comments

Comments
 (0)