Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 22 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ __pycache__/

# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
Expand All @@ -20,16 +19,12 @@ lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt
Expand All @@ -54,8 +49,25 @@ coverage.xml
# Sphinx documentation
docs/_build/

# PyBuilder
target/
# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
.python-version

# UV
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
# This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries.
# uv.lock

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# VS Code
# Visual Studio Code
.vscode/
9 changes: 7 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ bson

.. image:: https://img.shields.io/pypi/v/bson.svg
:target: https://pypi.python.org/pypi/bson
.. image:: https://img.shields.io/travis/py-bson/bson.svg
:target: https://travis-ci.org/py-bson/bson
.. image:: https://img.shields.io/pypi/pyversions/bson.svg
:target: https://github.com/py-bson/bson

Expand All @@ -14,6 +12,13 @@ Independent BSON codec for Python that doesn't depend on MongoDB. The bson
ObjectId implementation is forked from the PyMongo project, licensed under
the Version 2.0 Apache License.

A word of caution
-----------------

Installing ``py-bson`` in the system with ``pymongo`` already installed may cause problems.
Please proceed with caution.


Installation
------------

Expand Down
59 changes: 59 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "bson"
version = "0.5.10"
authors = [
{ name = "Ayun Park", email = "iamparkayun@gmail.com" }
]
description = "BSON codec for Python"
readme = "README.rst"
requires-python = ">=3.9"
dependencies = [
"python-dateutil>=2.9.0.post0",
]
license = {text = "BSD"}
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Libraries :: Python Modules",
]
keywords = ["BSON", "codec"]

[project.urls]
Homepage = "https://github.com/py-bson/bson"
PyPI = "https://pypi.org/project/bson/"

[dependency-groups]
lint = [
"ruff>=0.8.3",
]
test = [
"pytest>=8.3.4",
]

[tool.ruff]
line-length = 80

[tool.ruff.lint]
select = ["E", "F", "I", "FA"]
ignore = ["B904", "B028", "F841", "E741"]

[tool.ruff.format]
skip-magic-trailing-comma = true

[tool.ruff.lint.isort]
combine-as-imports = true
split-on-trailing-comma = false

[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
48 changes: 0 additions & 48 deletions setup.py

This file was deleted.

Loading
Loading