From 1b9cb05acfcb719e57f9a8133185e476cc23b223 Mon Sep 17 00:00:00 2001 From: Steven Silvester <steve.silvester@mongodb.com> Date: Mon, 13 Jan 2025 14:23:09 -0600 Subject: [PATCH 1/3] INTPYTHON-380 Move changelog to top level file and update for 3.0 --- CONTRIBUTING.md | 23 ++++++ docs/index.rst | 215 ------------------------------------------------ 2 files changed, 23 insertions(+), 215 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 93d1d24..8fc49ad 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -64,3 +64,26 @@ Build the docs in the `docs` directory using Sphinx: make html Open `_build/html/index.html` in your browser to view the docs. + +## Contributors + +- [jeverling](https://github.com/jeverling) +- [tang0th](https://github.com/tang0th) +- [Fabrice Aneche](https://github.com/akhenakh) +- [Thor Adam](https://github.com/thoradam) +- [Christoph Herr](https://github.com/jarus) +- [Mark Unsworth](https://github.com/markunsworth) +- [Kevin Funk](https://github.com/k-funk) +- [Ben Jeffrey](https://github.com/jeffbr13) +- [Emmanuel Valette](https://github.com/karec) +- [David Awad](https://github.com/DavidAwad) +- [Robson Roberto Souza Peixoto](https://github.com/robsonpeixoto) +- [juliascript](https://github.com/juliascript) +- [Henrik Blidh](https://github.com/hbldh) +- [jobou](https://github.com/jbouzekri) +- [Craig Davis](https://github.com/blade2005) +- [ratson](https://github.com/ratson) +- [Abraham Toriz Cruz](https://github.com/categulario) +- [MinJae Kwon](https://github.com/mingrammer) +- [yarobob](https://github.com/yarobob) +- [Andrew C. Hawkins](https://github.com/achawkins) diff --git a/docs/index.rst b/docs/index.rst index b21d769..fbb7261 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -186,218 +186,3 @@ If you have problem like ``TypeError: argument must be an int, or have a fileno( .. code-block:: bash wsgi-disable-file-wrapper = true - - -History and Contributors ------------------------- - -Changes: - -- 2.4.0: Unreleased - - - `#125 <https://github.com/dcrosta/flask-pymongo/pull/125>`_ Drop - MongoDB 3.2 support. - - `#130 <https://github.com/dcrosta/flask-pymongo/pull/130>`_ Fix - quickstart example in README (Emmanuel Arias). - - `#62 <https://github.com/dcrosta/flask-pymongo/issues/62>`_ Add - support for :func:`~flask.json.jsonify()`. - - `#131 <https://github.com/dcrosta/flask-pymongo/pulls/131>`_ Drop - support for Flask 0.11 and Python 3.4; Add support for MongoDB 4.2, - PyMongo 3.9, and Flask 1.1. - -- 2.3.0: April 24, 2019 - - - Update version compatibility matrix in tests, drop official support for - PyMongo less than 3.3.x. - -- 2.2.0: November 1, 2018 - - - `#117 <https://github.com/dcrosta/flask-pymongo/pull/117>`_ Allow URIs - without database name. - -- 2.1.0: August 6, 2018 - - - `#114 <https://github.com/dcrosta/flask-pymongo/pull/114>`_ Accept - keyword arguments to :meth:`~flask_pymongo.PyMongo.save_file` (Andrew C. - Hawkins). - -- 2.0.1: July 17, 2018 - - - `#113 <https://github.com/dcrosta/flask-pymongo/pull/113>`_ Make the - ``app`` argument to ``PyMongo`` optional (yarobob). - -- 2.0.0: July 2, 2018 - - **This release is not compatible with Flask-PyMongo 0.5.x or any earlier - version.** You can see an explanation of the reasoning and changes in - `issue #110 <https://github.com/dcrosta/flask-pymongo/issues/110>`_. - - - Only support configuration via URI. - - Don't connect to MongoDB by default. - - Clarify version support of Python, Flask, PyMongo, and MongoDB. - - Readability improvement to ``README.md`` (MinJae Kwon). - -- 0.5.2: May 19, 2018 - - - `#102 <https://github.com/dcrosta/flask-pymongo/pull/102>`_ Return 404, - not 400, when given an invalid input to `BSONObjectIdConverter` (Abraham - Toriz Cruz). - -- 0.5.1: May 24, 2017 - - - `#93 <https://github.com/dcrosta/flask-pymongo/pull/93>`_ Supply a - default ``MONGO_AUTH_MECHANISM`` (Mark Unsworth). - -- 0.5.0: May 21, 2017 - - **This will be the last 0.x series release.** The next non-bugfix - release will be Flask-PyMongo 2.0, which will introduce backwards - breaking changes, and will be the foundation for improvements and - changes going forward. Flask-PyMongo 2.0 will no longer support Python - 2.6, but will support Python 2.7 and Python 3.3+. - - - `#44 <https://github.com/dcrosta/flask-pymongo/issues/44>`_, `#51 - <https://github.com/dcrosta/flask-pymongo/pull/51>`_ Redirect ``/`` - to ``/HomePage`` in the wiki example (David Awad) - - `#76 <https://github.com/dcrosta/flask-pymongo/pull/76>`_ Build on more - modern Python versions (Robson Roberto Souza Peixoto) - - `#79 <https://github.com/dcrosta/flask-pymongo/pull/79>`_, `#84 - <https://github.com/dcrosta/flask-pymongo/issues/84>`_, `#85 - <https://github.com/dcrosta/flask-pymongo/pull/85>`_ Don't use - ``flask.ext`` import paths any more (ratson, juliascript) - - `#40 <https://github.com/dcrosta/flask-pymongo/issues/40>`_, `#83 - <https://github.com/dcrosta/flask-pymongo/pull/83>`_, `#86 - <https://github.com/dcrosta/flask-pymongo/pull/86>`_ Fix options parsing - from ``MONGO_URI`` (jobou) - - `#72 <https://github.com/dcrosta/flask-pymongo/issues/72>`_, `#80 - <https://github.com/dcrosta/flask-pymongo/pull/80>`_ Support - ``MONGO_SERVER_SELECTION_TIMEOUT_MS`` (Henrik Blidh) - - `#34 <https://github.com/dcrosta/flask-pymongo/issues/34>`_, `#64 - <https://github.com/dcrosta/flask-pymongo/pull/64>`_, `#88 - <https://github.com/dcrosta/flask-pymongo/pull/88>`_ Support - from ``MONGO_AUTH_SOURCE`` and ``MONGO_AUTH_MECHANISM`` (Craig Davis) - - `#74 <https://github.com/dcrosta/flask-pymongo/issues/74>`_, `#77 - <https://github.com/dcrosta/flask-pymongo/issues/77>`_, `#78 - <https://github.com/dcrosta/flask-pymongo/pull/78>`_ Fixed ``maxPoolSize`` - in PyMongo 3.0+ (Henrik Blidh) - - `#82 <https://github.com/dcrosta/flask-pymongo/issues/82>`_ Fix "another - user is already authenticated" error message. - - `#54 <https://github.com/dcrosta/flask-pymongo/issues/54>`_ Authenticate - against "admin" database if no ``MONGO_DBNAME`` is provided. - -- 0.4.1: January 25, 2016 - - - Add the connect keyword: - `#67 <https://github.com/dcrosta/flask-pymongo/pull/67>`_. - -- 0.4.0: October 19, 2015 - - - Flask-Pymongo is now compatible with pymongo 3.0+: - `#63 <https://github.com/dcrosta/flask-pymongo/pull/63>`_. - -- 0.3.1: April 9, 2015 - - - Flask-PyMongo is now tested against Python 2.6, 2.7, 3.3, and 3.4. - - Flask-PyMongo installation now no longer depends on `nose - <https://pypi.python.org/pypi/nose/>`_. - - `#58 <https://github.com/dcrosta/flask-pymongo/pull/58>`_ Update - requirements for PyMongo 3.x (Emmanuel Valette). - - `#43 <https://github.com/dcrosta/flask-pymongo/pull/43>`_ Ensure error - is raised when URI database name is parsed as 'None' (Ben Jeffrey). - - `#50 <https://github.com/dcrosta/flask-pymongo/pull/50>`_ Fix a bug in - read preference handling (Kevin Funk). - - `#46 <https://github.com/dcrosta/flask-pymongo/issues/46>`_ Cannot use - multiple replicaset instances which run on different ports (Mark - Unsworth). - - `#30 <https://github.com/dcrosta/flask-pymongo/issues/30>`_ - ConfiguationError with MONGO_READ_PREFERENCE (Mark Unsworth). - -- 0.3.0: July 4, 2013 - - - This is a minor version bump which introduces backwards breaking - changes! Please read these change notes carefully. - - Removed read preference constants from Flask-PyMongo; to set a - read preference, use the string name or import constants directly - from :class:`pymongo.read_preferences.ReadPreference`. - - `#22 (partial) <https://github.com/dcrosta/flask-pymongo/pull/22>`_ - Add support for ``MONGO_SOCKET_TIMEOUT_MS`` and - ``MONGO_CONNECT_TIMEOUT_MS`` options (ultrabug). - - `#27 (partial) <https://github.com/dcrosta/flask-pymongo/pull/27>`_ - Make Flask-PyMongo compatible with Python 3 (Vizzy). - -- 0.2.1: December 22, 2012 - - - `#19 <https://github.com/dcrosta/flask-pymongo/pull/19>`_ Added - ``MONGO_DOCUMENT_CLASS`` config option (jeverling). - -- 0.2.0: December 15, 2012 - - - This is a minor version bump which may introduce backwards breaking - changes! Please read these change notes carefully. - - `#17 <https://github.com/dcrosta/flask-pymongo/pull/17>`_ Now using - PyMongo 2.4's ``MongoClient`` and ``MongoReplicaSetClient`` objects - instead of ``Connection`` and ``ReplicaSetConnection`` classes - (tang0th). - - `#17 <https://github.com/dcrosta/flask-pymongo/pull/17>`_ Now requiring - at least PyMongo version 2.4 (tang0th). - - `#17 <https://github.com/dcrosta/flask-pymongo/pull/17>`_ The wrapper - class ``flask_pymongo.wrappers.Connection`` is renamed to - ``flask_pymongo.wrappers.MongoClient`` (tang0th). - - `#17 <https://github.com/dcrosta/flask-pymongo/pull/17>`_ The wrapper - class ``flask_pymongo.wrappers.ReplicaSetConnection`` is renamed to - ``flask_pymongo.wrappers.MongoReplicaSetClient`` (tang0th). - - `#18 <https://github.com/dcrosta/flask-pymongo/issues/18>`_ - ``MONGO_AUTO_START_REQUEST`` now defaults to ``False`` when - connecting using a URI. - -- 0.1.4: December 15, 2012 - - - `#15 <https://github.com/dcrosta/flask-pymongo/pull/15>`_ Added support - for ``MONGO_MAX_POOL_SIZE`` (Fabrice Aneche) - -- 0.1.3: September 22, 2012 - - - Added support for configuration from MongoDB URI. - -- 0.1.2: June 18, 2012 - - - Updated wiki example application - - `#14 <https://github.com/dcrosta/flask-pymongo/issues/14>`_ Added - examples and docs to PyPI package. - -- 0.1.1: May 26, 2012 - - - Added support for PyMongo 2.2's "auto start request" feature, by way - of the ``MONGO_AUTO_START_REQUEST`` configuration flag. - - `#13 <https://github.com/dcrosta/flask-pymongo/pull/13>`_ Added - BSONObjectIdConverter (Christoph Herr) - - `#12 <https://github.com/dcrosta/flask-pymongo/pull/12>`_ Corrected - documentation typo (Thor Adam) - -- 0.1: December 21, 2011 - - - Initial Release - - -Contributors: - -- `jeverling <https://github.com/jeverling>`_ -- `tang0th <https://github.com/tang0th>`_ -- `Fabrice Aneche <https://github.com/akhenakh>`_ -- `Thor Adam <https://github.com/thoradam>`_ -- `Christoph Herr <https://github.com/jarus>`_ -- `Mark Unsworth <https://github.com/markunsworth>`_ -- `Kevin Funk <https://github.com/k-funk>`_ -- `Ben Jeffrey <https://github.com/jeffbr13>`_ -- `Emmanuel Valette <https://github.com/karec>`_ -- `David Awad <https://github.com/DavidAwad>`_ -- `Robson Roberto Souza Peixoto <https://github.com/robsonpeixoto>`_ -- `juliascript <https://github.com/juliascript>`_ -- `Henrik Blidh <https://github.com/hbldh>`_ -- `jobou <https://github.com/jbouzekri>`_ -- `Craig Davis <https://github.com/blade2005>`_ -- `ratson <https://github.com/ratson>`_ -- `Abraham Toriz Cruz <https://github.com/categulario>`_ -- `MinJae Kwon <https://github.com/mingrammer>`_ -- `yarobob <https://github.com/yarobob>`_ -- `Andrew C. Hawkins <https://github.com/achawkins>`_ From 9e03463461de722bb27e13a45f9f5a6309f7813e Mon Sep 17 00:00:00 2001 From: Steven Silvester <steve.silvester@mongodb.com> Date: Mon, 13 Jan 2025 14:23:30 -0600 Subject: [PATCH 2/3] add changelog --- CHANGELOG.md | 185 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 185 insertions(+) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..d3b5cf9 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,185 @@ +# Changelog + +## 3.0.0: Unreleased + + - Support Flask 3.0+ and PyMongo 4.0+. + - Support Python 3.9-3.13. + - Support MongoDB 4.4+. + - Add support for `~flask.json.jsonify()`. + +## 2.3.0: April 24, 2019 + + - Update version compatibility matrix in tests, drop official support + for PyMongo less than 3.3.x. + +## 2.2.0: November 1, 2018 + + - [\#117](https://github.com/dcrosta/flask-pymongo/pull/117) Allow + URIs without database name. + +## 2.1.0: August 6, 2018 + + - [\#114](https://github.com/dcrosta/flask-pymongo/pull/114) Accept + keyword arguments to `~flask_pymongo.PyMongo.save_file` (Andrew C. + Hawkins). + +## 2.0.1: July 17, 2018 + + - [\#113](https://github.com/dcrosta/flask-pymongo/pull/113) Make the + `app` argument to `PyMongo` optional (yarobob). + +## 2.0.0: July 2, 2018 + + **This release is not compatible with Flask-PyMongo 0.5.x or any + earlier version.** You can see an explanation of the reasoning and + changes in [issue + \#110](https://github.com/dcrosta/flask-pymongo/issues/110). + + - Only support configuration via URI. + - Don't connect to MongoDB by default. + - Clarify version support of Python, Flask, PyMongo, and MongoDB. + - Readability improvement to `README.md` (MinJae Kwon). + +## 0.5.2: May 19, 2018 + + - [\#102](https://github.com/dcrosta/flask-pymongo/pull/102) Return + 404, not 400, when given an invalid input to + <span class="title-ref">BSONObjectIdConverter</span> (Abraham Toriz + Cruz). + +## 0.5.1: May 24, 2017 + + - [\#93](https://github.com/dcrosta/flask-pymongo/pull/93) Supply a + default `MONGO_AUTH_MECHANISM` (Mark Unsworth). + +## 0.5.0: May 21, 2017 + + > **This will be the last 0.x series release.** The next non-bugfix + > release will be Flask-PyMongo 2.0, which will introduce backwards + > breaking changes, and will be the foundation for improvements and + > changes going forward. Flask-PyMongo 2.0 will no longer support + > Python 2.6, but will support Python 2.7 and Python 3.3+. + + - [\#44](https://github.com/dcrosta/flask-pymongo/issues/44), + [\#51](https://github.com/dcrosta/flask-pymongo/pull/51) Redirect + `/` to `/HomePage` in the wiki example (David Awad) + - [\#76](https://github.com/dcrosta/flask-pymongo/pull/76) Build on + more modern Python versions (Robson Roberto Souza Peixoto) + - [\#79](https://github.com/dcrosta/flask-pymongo/pull/79), + [\#84](https://github.com/dcrosta/flask-pymongo/issues/84), + [\#85](https://github.com/dcrosta/flask-pymongo/pull/85) Don't use + `flask.ext` import paths any more (ratson, juliascript) + - [\#40](https://github.com/dcrosta/flask-pymongo/issues/40), + [\#83](https://github.com/dcrosta/flask-pymongo/pull/83), + [\#86](https://github.com/dcrosta/flask-pymongo/pull/86) Fix options + parsing from `MONGO_URI` (jobou) + - [\#72](https://github.com/dcrosta/flask-pymongo/issues/72), + [\#80](https://github.com/dcrosta/flask-pymongo/pull/80) Support + `MONGO_SERVER_SELECTION_TIMEOUT_MS` (Henrik Blidh) + - [\#34](https://github.com/dcrosta/flask-pymongo/issues/34), + [\#64](https://github.com/dcrosta/flask-pymongo/pull/64), + [\#88](https://github.com/dcrosta/flask-pymongo/pull/88) Support + from `MONGO_AUTH_SOURCE` and `MONGO_AUTH_MECHANISM` (Craig Davis) + - [\#74](https://github.com/dcrosta/flask-pymongo/issues/74), + [\#77](https://github.com/dcrosta/flask-pymongo/issues/77), + [\#78](https://github.com/dcrosta/flask-pymongo/pull/78) Fixed + `maxPoolSize` in PyMongo 3.0+ (Henrik Blidh) + - [\#82](https://github.com/dcrosta/flask-pymongo/issues/82) Fix + "another user is already authenticated" error message. + - [\#54](https://github.com/dcrosta/flask-pymongo/issues/54) + Authenticate against "admin" database if no `MONGO_DBNAME` is + provided. + +## 0.4.1: January 25, 2016 + + - Add the connect keyword: + [\#67](https://github.com/dcrosta/flask-pymongo/pull/67). + +## 0.4.0: October 19, 2015 + + - Flask-Pymongo is now compatible with pymongo 3.0+: + [\#63](https://github.com/dcrosta/flask-pymongo/pull/63). + +## 0.3.1: April 9, 2015 + + - Flask-PyMongo is now tested against Python 2.6, 2.7, 3.3, and 3.4. + - Flask-PyMongo installation now no longer depends on + [nose](https://pypi.python.org/pypi/nose/). + - [\#58](https://github.com/dcrosta/flask-pymongo/pull/58) Update + requirements for PyMongo 3.x (Emmanuel Valette). + - [\#43](https://github.com/dcrosta/flask-pymongo/pull/43) Ensure + error is raised when URI database name is parsed as 'None' (Ben + Jeffrey). + - [\#50](https://github.com/dcrosta/flask-pymongo/pull/50) Fix a bug + in read preference handling (Kevin Funk). + - [\#46](https://github.com/dcrosta/flask-pymongo/issues/46) Cannot + use multiple replicaset instances which run on different ports (Mark + Unsworth). + - [\#30](https://github.com/dcrosta/flask-pymongo/issues/30) + ConfiguationError with MONGO_READ_PREFERENCE (Mark Unsworth). + +## 0.3.0: July 4, 2013 + + - This is a minor version bump which introduces backwards breaking + changes! Please read these change notes carefully. + - Removed read preference constants from Flask-PyMongo; to set a read + preference, use the string name or import constants directly from + `pymongo.read_preferences.ReadPreference`. + - [\#22 (partial)](https://github.com/dcrosta/flask-pymongo/pull/22) + Add support for `MONGO_SOCKET_TIMEOUT_MS` and + `MONGO_CONNECT_TIMEOUT_MS` options (ultrabug). + - [\#27 (partial)](https://github.com/dcrosta/flask-pymongo/pull/27) + Make Flask-PyMongo compatible with Python 3 (Vizzy). + +## 0.2.1: December 22, 2012 + + - [\#19](https://github.com/dcrosta/flask-pymongo/pull/19) Added + `MONGO_DOCUMENT_CLASS` config option (jeverling). + +## 0.2.0: December 15, 2012 + + - This is a minor version bump which may introduce backwards breaking + changes! Please read these change notes carefully. + - [\#17](https://github.com/dcrosta/flask-pymongo/pull/17) Now using + PyMongo 2.4's `MongoClient` and `MongoReplicaSetClient` objects + instead of `Connection` and `ReplicaSetConnection` classes + (tang0th). + - [\#17](https://github.com/dcrosta/flask-pymongo/pull/17) Now + requiring at least PyMongo version 2.4 (tang0th). + - [\#17](https://github.com/dcrosta/flask-pymongo/pull/17) The wrapper + class `flask_pymongo.wrappers.Connection` is renamed to + `flask_pymongo.wrappers.MongoClient` (tang0th). + - [\#17](https://github.com/dcrosta/flask-pymongo/pull/17) The wrapper + class `flask_pymongo.wrappers.ReplicaSetConnection` is renamed to + `flask_pymongo.wrappers.MongoReplicaSetClient` (tang0th). + - [\#18](https://github.com/dcrosta/flask-pymongo/issues/18) + `MONGO_AUTO_START_REQUEST` now defaults to `False` when connecting + using a URI. + +## 0.1.4: December 15, 2012 + + - [\#15](https://github.com/dcrosta/flask-pymongo/pull/15) Added + support for `MONGO_MAX_POOL_SIZE` (Fabrice Aneche) + +## 0.1.3: September 22, 2012 + + - Added support for configuration from MongoDB URI. + +## 0.1.2: June 18, 2012 + + - Updated wiki example application + - [\#14](https://github.com/dcrosta/flask-pymongo/issues/14) Added + examples and docs to PyPI package. + +## 0.1.1: May 26, 2012 + + - Added support for PyMongo 2.2's "auto start request" feature, by way + of the `MONGO_AUTO_START_REQUEST` configuration flag. + - [\#13](https://github.com/dcrosta/flask-pymongo/pull/13) Added + BSONObjectIdConverter (Christoph Herr) + - [\#12](https://github.com/dcrosta/flask-pymongo/pull/12) Corrected + documentation typo (Thor Adam) + +## 0.1: December 21, 2011 + + - Initial Release From 6e7107d2ccac2fec5aab196b8f82c05597809eb5 Mon Sep 17 00:00:00 2001 From: Steven Silvester <steve.silvester@mongodb.com> Date: Mon, 13 Jan 2025 20:47:30 -0600 Subject: [PATCH 3/3] add self to contributors --- CONTRIBUTING.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 8fc49ad..a6399ff 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -87,3 +87,4 @@ Open `_build/html/index.html` in your browser to view the docs. - [MinJae Kwon](https://github.com/mingrammer) - [yarobob](https://github.com/yarobob) - [Andrew C. Hawkins](https://github.com/achawkins) +- [Steven Silvester](https://github.com/blink1073) \ No newline at end of file