-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PYTHON-3882 [python-bsonjs] Support Python 3.7-3.12 (#48)
- Loading branch information
Showing
6 changed files
with
63 additions
and
61 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
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
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,42 @@ | ||
[build-system] | ||
requires = ["setuptools"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "python-bsonjs" | ||
version = "0.3.0" | ||
description = "A library for converting between BSON and JSON." | ||
readme = "README.rst" | ||
license = { file = "LICENSE" } | ||
requires-python = ">=3.7" | ||
authors = [ | ||
{ name = "Shane Harvey", email = "[email protected]" }, | ||
] | ||
keywords = [ | ||
"BSON", | ||
"JSON", | ||
"PyMongo", | ||
] | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
"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 :: Only", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: Implementation :: CPython", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
] | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/mongodb-labs/python-bsonjs" | ||
|
||
[project.optional-dependencies] | ||
test = ["pymongo>=4", "pytest"] |
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 |
---|---|---|
|
@@ -15,17 +15,8 @@ | |
import glob | ||
import sys | ||
|
||
|
||
from setuptools import setup, Extension | ||
|
||
with open("README.rst") as f: | ||
try: | ||
description = f.read() | ||
except Exception: | ||
description = "" | ||
|
||
tests_require = ["pymongo>=3.4.0"] | ||
|
||
libraries = [] | ||
if sys.platform == "win32": | ||
libraries.append("ws2_32") | ||
|
@@ -34,34 +25,6 @@ | |
libraries.append("rt") | ||
|
||
setup( | ||
name="python-bsonjs", | ||
version="0.3.0", | ||
description="A library for converting between BSON and JSON.", | ||
long_description=description, | ||
author="Shane Harvey", | ||
author_email="[email protected]", | ||
url="https://github.com/mongodb-labs/python-bsonjs", | ||
keywords=["BSON", "JSON", "PyMongo"], | ||
test_suite="test", | ||
tests_require=tests_require, | ||
license="Apache License, Version 2.0", | ||
python_requires=">=3.6", | ||
classifiers=[ | ||
"Development Status :: 4 - Beta", | ||
"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 :: Only", | ||
"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 :: 3.11", | ||
"Programming Language :: Python :: Implementation :: CPython"], | ||
ext_modules=[ | ||
Extension( | ||
"bsonjs", | ||
|
@@ -75,5 +38,6 @@ | |
("Py_LIMITED_API", "0x03060000")], | ||
libraries=libraries | ||
) | ||
] | ||
], | ||
options={'bdist_wheel': {'py_limited_api': 'cp37'} } | ||
) |