Update package metadata (#2334)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Ofek Lev · committed by GitHub · parent 2b2269d · Browse files · 5 files·+82 added−102 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Trailers
- Co-authored-by: Florimond Manca <florimond.manca@protonmail.com>
Diff stats
5 files+82 added−102 removed
- other:+82 added−102 removed
Provenance
- Commit
45b7cfa- Tree
b904674- Author
Ofek Lev <ofekmeister@gmail.com>- Committer
GitHub <noreply@github.com>- Parent
2b2269d
5 files changed+82 added−102 removed
modified:scripts/build+1 added-1 removed
6 unmodified lines7 fi8 9 set -x10 11-${PREFIX}python setup.py sdist bdist_wheel11+${PREFIX}python -m build12 ${PREFIX}twine check dist/*13 ${PREFIX}mkdocs builddeleted:MANIFEST.in-4 removed
1-include README.md2-include CHANGELOG.md3-include LICENSE.md4-include httpx/py.typedadded:pyproject.toml+80 added
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980[build-system]requires = ["hatchling", "hatch-fancy-pypi-readme"]build-backend = "hatchling.build"
[project]name = "httpx"description = "The next generation HTTP client."license = "BSD-3-Clause"requires-python = ">=3.7"authors = [ { name = "Tom Christie", email = "tom@tomchristie.com" },]classifiers = [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Framework :: AsyncIO", "Framework :: Trio", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Topic :: Internet :: WWW/HTTP",]dependencies = [ "certifi", "httpcore>=0.15.0,<0.16.0", "rfc3986[idna2008]>=1.3,<2", "sniffio",]dynamic = ["readme", "version"]
[project.optional-dependencies]brotli = [ "brotli; platform_python_implementation == 'CPython'", "brotlicffi; platform_python_implementation != 'CPython'",]cli = [ "click==8.*", "pygments==2.*", "rich>=10,<13",]http2 = [ "h2>=3,<5",]socks = [ "socksio==1.*",]
[project.scripts]httpx = "httpx:main"
[project.urls]Changelog = "https://github.com/encode/httpx/blob/master/CHANGELOG.md"Documentation = "https://www.python-httpx.org"Homepage = "https://github.com/encode/httpx"Source = "https://github.com/encode/httpx"
[tool.hatch.version]path = "httpx/__version__.py"
[tool.hatch.build.targets.sdist]include = [ "/httpx", "/CHANGELOG.md", "/README.md",]
[tool.hatch.metadata.hooks.fancy-pypi-readme]content-type = "text/markdown"
[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]path = "README.md"
[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]path = "CHANGELOG.md"modified:requirements.txt+1 added-1 removed
13 unmodified lines14 mkautodoc==0.1.015 mkdocs-material==8.3.816 17 # Packaging18+build==0.8.019 twine==4.0.119-wheel==0.37.120 21 # Tests & Linting22 autoflake==1.423 black==22.6.015 unmodified linesdeleted:setup.py-96 removed
1-#!/usr/bin/env python2-# -*- coding: utf-8 -*-3-4-import re5-from pathlib import Path6-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- version = Path(package, "__version__.py").read_text()15- return re.search("__version__ = ['\"]([^'\"]+)['\"]", version).group(1)16-17-18-def get_long_description():19- """20- Return the README.21- """22- long_description = ""23- with open("README.md", encoding="utf8") as f:24- long_description += f.read()25- long_description += "\n\n"26- with open("CHANGELOG.md", encoding="utf8") as f:27- long_description += f.read()28- return long_description29-30-31-def get_packages(package):32- """33- Return root package and all sub-packages.34- """35- return [str(path.parent) for path in Path(package).glob("**/__init__.py")]36-37-38-setup(39- name="httpx",40- python_requires=">=3.7",41- version=get_version("httpx"),42- url="https://github.com/encode/httpx",43- project_urls={44- "Changelog": "https://github.com/encode/httpx/blob/master/CHANGELOG.md",45- "Documentation": "https://www.python-httpx.org",46- "Source": "https://github.com/encode/httpx",47- },48- license="BSD",49- description="The next generation HTTP client.",50- long_description=get_long_description(),51- long_description_content_type="text/markdown",52- author="Tom Christie",53- author_email="tom@tomchristie.com",54- package_data={"httpx": ["py.typed"]},55- packages=get_packages("httpx"),56- include_package_data=True,57- zip_safe=False,58- install_requires=[59- "certifi",60- "sniffio",61- "rfc3986[idna2008]>=1.3,<2",62- "httpcore>=0.15.0,<0.16.0",63- ],64- extras_require={65- "http2": "h2>=3,<5",66- "socks": "socksio==1.*",67- "brotli": [68- "brotli; platform_python_implementation == 'CPython'",69- "brotlicffi; platform_python_implementation != 'CPython'"70- ],71- "cli": [72- "click==8.*",73- "rich>=10,<13",74- "pygments==2.*"75- ]76- },77- entry_points = {78- "console_scripts": "httpx=httpx:main"79- },80- classifiers=[81- "Development Status :: 4 - Beta",82- "Environment :: Web Environment",83- "Intended Audience :: Developers",84- "License :: OSI Approved :: BSD License",85- "Operating System :: OS Independent",86- "Topic :: Internet :: WWW/HTTP",87- "Framework :: AsyncIO",88- "Framework :: Trio",89- "Programming Language :: Python :: 3",90- "Programming Language :: Python :: 3.7",91- "Programming Language :: Python :: 3.8",92- "Programming Language :: Python :: 3.9",93- "Programming Language :: Python :: 3.10",94- "Programming Language :: Python :: 3 :: Only",95- ],96-)