From 97d60c40406affbc1978c9197ed899653b1b6c7a Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Tue, 28 Apr 2020 23:43:00 +0200 Subject: [PATCH 01/12] Start using twine for uploads --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d257e7b..776b3c4 100644 --- a/Makefile +++ b/Makefile @@ -1,2 +1,3 @@ release: - python setup.py sdist bdist_wheel upload + python setup.py sdist bdist_wheel + twine upload dist/* From e8bb206e0e9283bded452616a18e81ffeedce698 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Gmach?= Date: Mon, 4 May 2020 11:34:04 +0200 Subject: [PATCH 02/12] Add support for Python 3.8 Also... - remove obsolete `sudo` keyword from Travis config (https://blog.travis-ci.com/2018-11-19-required-linux-infrastructure-migration) - additionally use 64 bit interpreters on AppVeyor modified: .travis.yml modified: appveyor.yml modified: setup.py modified: tox.ini --- .travis.yml | 2 +- appveyor.yml | 8 ++++++++ setup.py | 1 + tox.ini | 2 +- 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 715ac80..8f9eec0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,3 @@ -sudo: false os: linux language: python @@ -9,6 +8,7 @@ python: - 3.5 - 3.6 - 3.7 + - 3.8 env: - TOXENV=test diff --git a/appveyor.yml b/appveyor.yml index 5a94064..5d5f613 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -2,9 +2,17 @@ build: false # Not a C# project, build stuff at the test step instead. environment: matrix: - PYTHON: "C:/Python27" + - PYTHON: "C:/Python27-x64" - PYTHON: "C:/Python34" + - PYTHON: "C:/Python34-x64" - PYTHON: "C:/Python35" + - PYTHON: "C:/Python35-x64" - PYTHON: "C:/Python36" + - PYTHON: "C:/Python36-x64" + - PYTHON: "C:/Python37" + - PYTHON: "C:/Python37-x64" + - PYTHON: "C:/Python38" + - PYTHON: "C:/Python38-x64" init: - "ECHO %PYTHON%" diff --git a/setup.py b/setup.py index adbf232..47a2fe5 100644 --- a/setup.py +++ b/setup.py @@ -33,6 +33,7 @@ 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: Implementation :: CPython', ], python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*', diff --git a/tox.ini b/tox.ini index df7b9ca..6e6d589 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py{27,py,34,35,36}-{test,stylecheck} +envlist = py{27,py,34,35,36,37,38}-{test,stylecheck} [testenv] deps = From 14e7f1f5407344f215f0b06b5cbe49fe65e90d1d Mon Sep 17 00:00:00 2001 From: Kyle Altendorf Date: Sat, 3 Oct 2020 10:04:12 -0400 Subject: [PATCH 03/12] Clean up some FAQ/Frequently asked question repetition in readme (#53) --- README.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.rst b/README.rst index 4c9fbed..3c14e11 100644 --- a/README.rst +++ b/README.rst @@ -34,8 +34,7 @@ Features that distinguish it from other similar libraries (see `Alternatives and `_, who appears to be a Microsoft employee: - FAQ: Is MoveFileEx atomic - Frequently asked question: Is MoveFileEx atomic if the existing and new + Question: Is MoveFileEx atomic if the existing and new files are both on the same drive? The simple answer is "usually, but in some cases it will silently fall-back From 72b5dcc9c5225fc8b54559f0f9c02d3211dfd403 Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Sat, 3 Oct 2020 16:08:44 +0200 Subject: [PATCH 04/12] Update README.rst --- README.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 3c14e11..434ca8c 100644 --- a/README.rst +++ b/README.rst @@ -19,7 +19,9 @@ Atomic file writes. # "foo.txt" doesn't exist yet. # Now it does. - + +See [API documentation](https://python-atomicwrites.readthedocs.io/en/latest/#api) for more +low-level interfaces. Features that distinguish it from other similar libraries (see `Alternatives and Credit`_): From d17830127887b97f404f1596ac76d46d730e31f5 Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Sat, 3 Oct 2020 16:09:11 +0200 Subject: [PATCH 05/12] Update README.rst --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 434ca8c..82fbc6d 100644 --- a/README.rst +++ b/README.rst @@ -20,7 +20,7 @@ Atomic file writes. # Now it does. -See [API documentation](https://python-atomicwrites.readthedocs.io/en/latest/#api) for more +See `API documentation `_ for more low-level interfaces. Features that distinguish it from other similar libraries (see `Alternatives and Credit`_): From de33f6fac140f32a6eff9eb002feaa6dc7182182 Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Sat, 3 Oct 2020 16:13:07 +0200 Subject: [PATCH 06/12] Update README.rst --- README.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index 82fbc6d..528cdb0 100644 --- a/README.rst +++ b/README.rst @@ -4,11 +4,13 @@ python-atomicwrites .. image:: https://travis-ci.org/untitaker/python-atomicwrites.svg?branch=master :target: https://travis-ci.org/untitaker/python-atomicwrites - .. image:: https://ci.appveyor.com/api/projects/status/vadc4le3c27to59x/branch/master?svg=true :target: https://ci.appveyor.com/project/untitaker/python-atomicwrites/branch/master +.. image:: https://readthedocs.org/projects/python-atomicwrites/badge/?version=latest + :target: https://python-atomicwrites.readthedocs.io/en/latest/?badge=latest + :alt: Documentation Status -Atomic file writes. +**Atomic file writes.** .. code-block:: python From ec443a88e5e6cfbc9b667b1bcfd52e5a0a485f7e Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Fri, 6 Nov 2020 23:14:05 +0100 Subject: [PATCH 07/12] Add documentation for open_kwargs, fix #56 --- atomicwrites/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/atomicwrites/__init__.py b/atomicwrites/__init__.py index 623826e..8a4a576 100644 --- a/atomicwrites/__init__.py +++ b/atomicwrites/__init__.py @@ -124,6 +124,9 @@ class AtomicWriter(object): :param overwrite: If set to false, an error is raised if ``path`` exists. Errors are only raised after the file has been written to. Either way, the operation is atomic. + :param open_kwargs: Keyword-arguments to pass to the underlying :py:func:`open` + call. This can be used to set the encoding when opening files in + text-mode. If you need further control over the exact behavior, you are encouraged to subclass. From 6699a1fc44bc5cea2ee258cf960a8bd6cc584e21 Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Fri, 6 Nov 2020 23:26:01 +0100 Subject: [PATCH 08/12] migrate to travis-ci.com --- README.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index 528cdb0..c849cf2 100644 --- a/README.rst +++ b/README.rst @@ -2,8 +2,8 @@ python-atomicwrites =================== -.. image:: https://travis-ci.org/untitaker/python-atomicwrites.svg?branch=master - :target: https://travis-ci.org/untitaker/python-atomicwrites +.. image:: https://travis-ci.com/untitaker/python-atomicwrites.svg?branch=master + :target: https://travis-ci.com/untitaker/python-atomicwrites .. image:: https://ci.appveyor.com/api/projects/status/vadc4le3c27to59x/branch/master?svg=true :target: https://ci.appveyor.com/project/untitaker/python-atomicwrites/branch/master .. image:: https://readthedocs.org/projects/python-atomicwrites/badge/?version=latest From 9f8db6527db8a7d20879756ff83d86009df8c9c5 Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Fri, 6 Nov 2020 23:28:39 +0100 Subject: [PATCH 09/12] wrap line --- atomicwrites/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/atomicwrites/__init__.py b/atomicwrites/__init__.py index 8a4a576..0b9f92a 100644 --- a/atomicwrites/__init__.py +++ b/atomicwrites/__init__.py @@ -124,9 +124,9 @@ class AtomicWriter(object): :param overwrite: If set to false, an error is raised if ``path`` exists. Errors are only raised after the file has been written to. Either way, the operation is atomic. - :param open_kwargs: Keyword-arguments to pass to the underlying :py:func:`open` - call. This can be used to set the encoding when opening files in - text-mode. + :param open_kwargs: Keyword-arguments to pass to the underlying + :py:func:`open` call. This can be used to set the encoding when opening + files in text-mode. If you need further control over the exact behavior, you are encouraged to subclass. From c35cd32eb364d5a4210e64bf38fd1a55f329f316 Mon Sep 17 00:00:00 2001 From: nagesh4193 <70690392+nagesh4193@users.noreply.github.com> Date: Fri, 4 Dec 2020 16:19:45 +0530 Subject: [PATCH 10/12] Add Power Support ppc64le (#57) --- .travis.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8f9eec0..6b94d4a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,10 @@ os: linux language: python +arch: + - amd64 + - ppc64le + python: - 2.7 - pypy @@ -19,8 +23,17 @@ matrix: env: TOXENV=stylecheck - python: 3.6 env: TOXENV=stylecheck - - + #Adding power support architecture + - python: 2.7 + env: TOXENV=stylecheck + arch: ppc64le + - python: 3.6 + env: TOXENV=stylecheck + arch: ppc64le + exclude: + - python: pypy + arch: ppc64le + install: - pip install tox From ea90c67ffe5f38cd39d89625022d417da1966522 Mon Sep 17 00:00:00 2001 From: Alex Peters Date: Thu, 30 Jun 2022 23:50:58 +1000 Subject: [PATCH 11/12] fix name typo (#60) --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index c849cf2..8b29754 100644 --- a/README.rst +++ b/README.rst @@ -34,7 +34,7 @@ Features that distinguish it from other similar libraries (see `Alternatives and explicit about which operations are atomic. I'm basing my assumptions off `a comment `_ - by `Doug Crook + by `Doug Cook `_, who appears to be a Microsoft employee: From e05d8c985a10176ad43eefb9c4bfa6d7ab176719 Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Fri, 8 Jul 2022 20:31:29 +0200 Subject: [PATCH 12/12] version 1.4.1 --- atomicwrites/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atomicwrites/__init__.py b/atomicwrites/__init__.py index 0b9f92a..669191b 100644 --- a/atomicwrites/__init__.py +++ b/atomicwrites/__init__.py @@ -15,7 +15,7 @@ except ImportError: fspath = None -__version__ = '1.4.0' +__version__ = '1.4.1' PY2 = sys.version_info[0] == 2