-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #156 from hawkowl/incremental
Port to using Incremental
- Loading branch information
Showing
27 changed files
with
59 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[run] | ||
source = | ||
treq | ||
branch = True | ||
|
||
|
||
[paths] | ||
source = | ||
src/ | ||
.tox/*/lib/python*/site-packages/ | ||
.tox/pypy*/site-packages/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,6 @@ build | |
dist | ||
MANIFEST | ||
.coverage | ||
.coveragerc | ||
coverage | ||
htmlcov | ||
_trial_temp | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,4 @@ | ||
from setuptools import find_packages, setup | ||
import os.path | ||
|
||
with open(os.path.join(os.path.dirname(__file__), "treq", "_version")) as ver: | ||
__version__ = ver.readline().strip() | ||
|
||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
|
@@ -19,30 +15,35 @@ | |
"Programming Language :: Python :: Implementation :: PyPy", | ||
] | ||
|
||
with open('README.rst') as f: | ||
readme = f.read() | ||
if __name__ == "__main__": | ||
|
||
with open('README.rst') as f: | ||
readme = f.read() | ||
|
||
setup( | ||
name="treq", | ||
version=__version__, | ||
packages=find_packages(), | ||
install_requires=[ | ||
"requests >= 2.1.0", | ||
"six", | ||
"Twisted[tls] >= 16.0.0", | ||
# Twisted[tls] 16.0.0 doesn't specify a version. | ||
"service_identity >= 14.0.0", | ||
# Twisted[tls] 16.0.0 requires 0.13, which doesn't work on Python 3. | ||
"pyOpenSSL >= 0.15.1", | ||
], | ||
package_data={"treq": ["_version"]}, | ||
author="David Reid", | ||
author_email="[email protected]", | ||
maintainer="Amber Brown", | ||
maintainer_email="[email protected]", | ||
classifiers=classifiers, | ||
description="A requests-like API built on top of twisted.web's Agent", | ||
license="MIT/X", | ||
url="http://github.com/twisted/treq", | ||
long_description=readme | ||
) | ||
setup( | ||
name="treq", | ||
packages=find_packages('src'), | ||
package_dir={"": "src"}, | ||
setup_requires=["incremental"], | ||
use_incremental=True, | ||
install_requires=[ | ||
"incremental", | ||
"requests >= 2.1.0", | ||
"six", | ||
"Twisted[tls] >= 16.0.0", | ||
# Twisted[tls] 16.0.0 doesn't specify a version. | ||
"service_identity >= 14.0.0", | ||
# Twisted[tls] 16.0.0 requires 0.13, which doesn't work on Python 3. | ||
"pyOpenSSL >= 0.15.1", | ||
], | ||
package_data={"treq": ["_version"]}, | ||
author="David Reid", | ||
author_email="[email protected]", | ||
maintainer="Amber Brown", | ||
maintainer_email="[email protected]", | ||
classifiers=classifiers, | ||
description="A requests-like API built on top of twisted.web's Agent", | ||
license="MIT/X", | ||
url="http://github.com/twisted/treq", | ||
long_description=readme | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
from __future__ import absolute_import, division, print_function | ||
|
||
from twisted.python.modules import getModule as _getModule | ||
from ._version import __version__ | ||
|
||
from treq.api import head, get, post, put, patch, delete, request | ||
from treq.content import collect, content, text_content, json_content | ||
|
||
__version__ = __version__.base() | ||
|
||
__all__ = ['head', 'get', 'post', 'put', 'patch', 'delete', 'request', | ||
'collect', 'content', 'text_content', 'json_content'] | ||
|
||
__version__ = ( | ||
_getModule(__name__).filePath.sibling("_version").getContent().strip() | ||
) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
""" | ||
Provides Treq version information. | ||
""" | ||
|
||
# This file is auto-generated! Do not edit! | ||
# Use `python -m incremental.update Treq` to change this file. | ||
|
||
from incremental import Version | ||
|
||
__version__ = Version('Treq', 16, 12, 0) | ||
__all__ = ["__version__"] |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.