Initial commit
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Tom Christie · committed by Tom Christie · the first commit · Browse files · 4 files·+99 added−0 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
4 files+99 added−0 removed
- other:+99 added−0 removed
Provenance
- Commit
a75bc0e- Tree
91e1b13- Author
Tom Christie <tom@tomchristie.com>- Committer
Tom Christie <tom@tomchristie.com>
4 files changed+99 added−0 removed
added:httpcore/__init__.py+1 added
1+__version__ = "0.0.1"added:.gitignore+8 added
1+*.pyc2+.coverage3+.pytest_cache/4+.mypy_cache/5+__pycache__/6+htmlcov/7+*.egg-info/8+venv/added:LICENSE.md+27 added
123456789101112131415161718192021222324252627Copyright © 2019, [Encode OSS Ltd](https://www.encode.io/).All rights reserved.
Redistribution and use in source and binary forms, with or withoutmodification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
* Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THEIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE AREDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLEFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIALDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS ORSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVERCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USEOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.added:setup.py+63 added
1+#!/usr/bin/env python2+# -*- coding: utf-8 -*-3+4+import os5+import re6+7+from setuptools import setup8+9+10+def get_version(package):11+ """12+ Return package version as listed in `__version__` in `init.py`.13+ """14+ with open(os.path.join(package, "__init__.py")) as f:15+ return re.search("__version__ = ['\"]([^'\"]+)['\"]", f.read()).group(1)16+17+18+def get_long_description():19+ """20+ Return the README.21+ """22+ with open("README.md", encoding="utf8") as f:23+ return f.read()24+25+26+def get_packages(package):27+ """28+ Return root package and all sub-packages.29+ """30+ return [31+ dirpath32+ for dirpath, dirnames, filenames in os.walk(package)33+ if os.path.exists(os.path.join(dirpath, "__init__.py"))34+ ]35+36+37+setup(38+ name="httpcore",39+ python_requires=">=3.6",40+ version=get_version("httpcore"),41+ url="https://github.com/encode/httpcore",42+ license="BSD",43+ description="...",44+ long_description=get_long_description(),45+ long_description_content_type="text/markdown",46+ author="Tom Christie",47+ author_email="tom@tomchristie.com",48+ packages=get_packages("httpcore"),49+ data_files=[("", ["LICENSE.md"])],50+ install_requires=["h11"],51+ classifiers=[52+ "Development Status :: 3 - Alpha",53+ "Environment :: Web Environment",54+ "Intended Audience :: Developers",55+ "License :: OSI Approved :: BSD License",56+ "Operating System :: OS Independent",57+ "Topic :: Internet :: WWW/HTTP",58+ "Programming Language :: Python :: 3",59+ "Programming Language :: Python :: 3.6",60+ "Programming Language :: Python :: 3.7",61+ "Programming Language :: Python :: 3.8",62+ ],63+)