From eb35f025aad94ae20b33a52dc1c2d87ce02178e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20F=C3=B6rster?= Date: Sat, 22 Jun 2024 00:59:06 +0200 Subject: [PATCH] [dev-python/pymongo-auth-aws] add --- dev-python/pymongo-auth-aws/Manifest | 1 + dev-python/pymongo-auth-aws/files/hatch.patch | 129 +++++++++++++++ dev-python/pymongo-auth-aws/metadata.xml | 28 ++++ .../pymongo-auth-aws-1.1.0.ebuild | 156 ++++++++++++++++++ 4 files changed, 314 insertions(+) create mode 100644 dev-python/pymongo-auth-aws/Manifest create mode 100644 dev-python/pymongo-auth-aws/files/hatch.patch create mode 100644 dev-python/pymongo-auth-aws/metadata.xml create mode 100644 dev-python/pymongo-auth-aws/pymongo-auth-aws-1.1.0.ebuild diff --git a/dev-python/pymongo-auth-aws/Manifest b/dev-python/pymongo-auth-aws/Manifest new file mode 100644 index 0000000..be2d1ea --- /dev/null +++ b/dev-python/pymongo-auth-aws/Manifest @@ -0,0 +1 @@ +DIST pymongo-auth-aws-1.1.0.tar.gz 12188 BLAKE2B bf74c4d3f790d37aab82b5f9512af3f924b35392794907ecc9177194c7fcbf15dfc11e207fbfd86b18acb1404c11f0fdb63bf77ad253d7a0a3150426d3e3e8a9 SHA512 4be046628b83cb015986298d396f66f89e52f0ea26e2e8acb0c7f922f5c5b6377e1a17fc8564be1c7a82e15e252a705e35788fda5c4bf5edc81d68bbfc4f6d38 diff --git a/dev-python/pymongo-auth-aws/files/hatch.patch b/dev-python/pymongo-auth-aws/files/hatch.patch new file mode 100644 index 0000000..a37b43e --- /dev/null +++ b/dev-python/pymongo-auth-aws/files/hatch.patch @@ -0,0 +1,129 @@ +https://github.com/mongodb/pymongo-auth-aws/commit/40198b0aa9d76657badb1dcf3c60298d005dca5b minus hatch-requirements-txt +--- a/dev/null 2024-04-07 00:22:51.151700697 +0200 ++++ b/pyproject.toml 2024-06-21 21:07:25.763896995 +0200 +@@ -0,0 +1,59 @@ ++[build-system] ++requires = ["hatchling>1.24"] ++build-backend = "hatchling.build" ++ ++[project] ++name = "pymongo-auth-aws" ++dynamic = ["version", "dependencies", "optional-dependencies"] ++description = "MONGODB-AWS authentication support for PyMongo" ++readme = "README.rst" ++license = {file="LICENSE"} ++requires-python = ">=3.8" ++authors = [ ++ { name = "Shane Harvey", email = "drivers-python-noreply@mongodb.com" }, ++] ++keywords = [ ++ "MONGODB-AWS", ++ "mongo", ++ "mongodb", ++ "pymongo", ++ "pymongo-auth-aws", ++] ++classifiers = [ ++ "Development Status :: 5 - Production/Stable", ++ "Intended Audience :: Developers", ++ "License :: OSI Approved :: Apache Software License", ++ "Operating System :: MacOS :: MacOS X", ++ "Operating System :: Microsoft :: Windows", ++ "Operating System :: POSIX", ++ "Programming Language :: Python :: 3", ++ "Programming Language :: Python :: 3.8", ++ "Programming Language :: Python :: 3.9", ++ "Programming Language :: Python :: Implementation :: CPython", ++ "Programming Language :: Python :: Implementation :: PyPy", ++ "Programming Language :: Python :: 3.10", ++ "Programming Language :: Python :: 3.11", ++ "Programming Language :: Python :: 3.12", ++ "Topic :: Database", ++] ++ ++[project.urls] ++Homepage = "https://github.com/mongodb/pymongo-auth-aws" ++ ++[tool.hatch.version] ++path = "pymongo_auth_aws/version.py" ++ ++[tool.ruff] ++target-version = "py37" ++line-length = 100 ++ ++[tool.ruff.lint] ++unfixable = [ ++ "RUF100", # Unused noqa ++ "T20", # Removes print statements ++ "F401", # Unused imports ++] ++ ++[tool.ruff.lint.per-file-ignores] ++"pymongo_auth_aws/__init__.py" = ["F401"] ++"test/*.py" = ["E402"] +--- a/setup.py 2022-09-13 15:56:51.000000000 +0200 ++++ b/dev/null 2024-04-07 00:22:51.151700697 +0200 +@@ -1,53 +0,0 @@ +-import os +- +-from setuptools import setup, find_packages +- +-with open('README.rst', 'rb') as f: +- LONG_DESCRIPTION = f.read().decode('utf8') +- +-# Single source the version. +-version_file = os.path.realpath(os.path.join( +- os.path.dirname(__file__), 'pymongo_auth_aws', 'version.py')) +-version = {} +-with open(version_file) as fp: +- exec(fp.read(), version) +- +-setup( +- name="pymongo-auth-aws", +- version=version['__version__'], +- description="MONGODB-AWS authentication support for PyMongo", +- long_description=LONG_DESCRIPTION, +- long_description_content_type='text/x-rst', +- packages=find_packages(exclude=['test']), +- install_requires=['boto3', 'botocore'], +- extras_require={ +- "test": ["pymongo"] +- }, +- author="Shane Harvey", +- author_email="drivers-python-noreply@mongodb.com", +- url="https://github.com/mongodb/pymongo-auth-aws", +- keywords=["mongo", "mongodb", "pymongo-auth-aws", "pymongo", "MONGODB-AWS"], +- test_suite="test", +- license="Apache License, Version 2.0", +- python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*", +- classifiers=[ +- "Development Status :: 5 - Production/Stable", +- "Intended Audience :: Developers", +- "License :: OSI Approved :: Apache Software License", +- "Operating System :: MacOS :: MacOS X", +- "Operating System :: Microsoft :: Windows", +- "Operating System :: POSIX", +- "Programming Language :: Python :: 2", +- "Programming Language :: Python :: 2.7", +- "Programming Language :: Python :: 3", +- "Programming Language :: Python :: 3.4", +- "Programming Language :: Python :: 3.5", +- "Programming Language :: Python :: 3.6", +- "Programming Language :: Python :: 3.7", +- "Programming Language :: Python :: 3.8", +- "Programming Language :: Python :: 3.9", +- "Programming Language :: Python :: 3.10", +- "Programming Language :: Python :: Implementation :: CPython", +- "Programming Language :: Python :: Implementation :: PyPy", +- "Topic :: Database"] +-) +--- a/setup.cfg 2022-09-13 15:57:03.103746400 +0200 ++++ b/dev/null 2024-04-07 00:22:51.151700697 +0200 +@@ -1,7 +0,0 @@ +-[bdist_wheel] +-universal = 1 +- +-[egg_info] +-tag_build = +-tag_date = 0 +- diff --git a/dev-python/pymongo-auth-aws/metadata.xml b/dev-python/pymongo-auth-aws/metadata.xml new file mode 100644 index 0000000..dee6e50 --- /dev/null +++ b/dev-python/pymongo-auth-aws/metadata.xml @@ -0,0 +1,28 @@ + + + + + ultrabug@gentoo.org + Alexys Jacob + + + python@gentoo.org + Python + + + PyMongo is a Python distribution containing tools for working + with MongoDB, and is the recommended way to work with MongoDB + from Python. + + + Compiles native C extensions + + Run test suite in full, including tests that run a local + database instance. + + + + pymongo + mongodb/mongo-python-driver + + diff --git a/dev-python/pymongo-auth-aws/pymongo-auth-aws-1.1.0.ebuild b/dev-python/pymongo-auth-aws/pymongo-auth-aws-1.1.0.ebuild new file mode 100644 index 0000000..22081cd --- /dev/null +++ b/dev-python/pymongo-auth-aws/pymongo-auth-aws-1.1.0.ebuild @@ -0,0 +1,156 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYPI_NO_NORMALIZE=1 +PYTHON_COMPAT=( pypy3 python3_{10..12} ) + +inherit distutils-r1 pypi + +DESCRIPTION="MONGODB-AWS authentication support for PyMongo" +HOMEPAGE=" + https://github.com/mongodb/pymongo-auth-aws + https://pypi.org/project/pymongo-auth-aws +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND=" + dev-python/boto3[${PYTHON_USEDEP}] + dev-python/botocore[${PYTHON_USEDEP}] + +" +BDEPEND=" + test? ( +