From 1e6f936edc1c37bad0b5f820281030ba3c1ef313 Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Sat, 31 Aug 2019 17:36:55 +0100 Subject: [PATCH 1/8] add 3.8dev --- .travis.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index d435957b..1e19a196 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,19 +3,20 @@ sudo: false language: python python: - - '2.7' - - '3.4' - - '3.5' - - '3.6' - - '3.7' + - "2.7" + - "3.4" + - "3.5" + - "3.6" + - "3.7" + - "3.8-dev" # TODO (dargueta): Enable these once we figure out FTP timing issues in PyPy tests # - 'pypy' # - 'pypy3.5-7.0' matrix: include: - - name: 'Type checking' - python: '3.7' + - name: "Type checking" + python: "3.7" env: TOXENV=typecheck before_install: From f24619a380c8b70a251f184d21c78a00a4f81ca1 Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Sat, 31 Aug 2019 17:44:09 +0100 Subject: [PATCH 2/8] remove landscape --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8616bc3b..fdb75b47 100644 --- a/README.md +++ b/README.md @@ -3,12 +3,12 @@ Python's Filesystem abstraction layer. [![PyPI version](https://badge.fury.io/py/fs.svg)](https://badge.fury.io/py/fs) +[![Downloads](https://pepy.tech/badge/fs/month)](https://pepy.tech/project/fs/month) [![PyPI](https://img.shields.io/pypi/pyversions/fs.svg)](https://pypi.org/project/fs/) [![Build Status](https://travis-ci.org/PyFilesystem/pyfilesystem2.svg?branch=master)](https://travis-ci.org/PyFilesystem/pyfilesystem2) [![Windows Build Status](https://ci.appveyor.com/api/projects/status/github/pyfilesystem/pyfilesystem2?branch=master&svg=true)](https://ci.appveyor.com/project/willmcgugan/pyfilesystem2) [![Coverage Status](https://coveralls.io/repos/github/PyFilesystem/pyfilesystem2/badge.svg)](https://coveralls.io/github/PyFilesystem/pyfilesystem2) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/30ad6445427349218425d93886ade9ee)](https://www.codacy.com/app/will-mcgugan/pyfilesystem2?utm_source=github.com&utm_medium=referral&utm_content=PyFilesystem/pyfilesystem2&utm_campaign=Badge_Grade) -[![Code Health](https://landscape.io/github/PyFilesystem/pyfilesystem2/master/landscape.svg?style=flat)](https://landscape.io/github/PyFilesystem/pyfilesystem2/master) ## Documentation From 416af08af301dbf031a33b3f8e7ae63aac8379af Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Sat, 31 Aug 2019 17:49:24 +0100 Subject: [PATCH 3/8] allow 3.8 --- fs/osfs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/osfs.py b/fs/osfs.py index ce6159ad..2a711bd7 100644 --- a/fs/osfs.py +++ b/fs/osfs.py @@ -419,7 +419,7 @@ def _check_copy(self, src_path, dst_path, overwrite=False): raise errors.DirectoryExpected(dirname(dst_path)) return _src_path, _dst_path - if sys.version_info[:2] < (3, 8) and sendfile is not None: + if sys.version_info[:2] <= (3, 8) and sendfile is not None: _sendfile_error_codes = { errno.EIO, From 912d5d0f5e91fc321fc37f3dcc26b27b3b24f73b Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Sat, 31 Aug 2019 17:54:08 +0100 Subject: [PATCH 4/8] requirements for readthedocs.io --- requirements.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 requirements.txt diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 00000000..d6e1198b --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +-e . From 6a576cc7f9b2f837b4623cf8dd1bdaeded6034a5 Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Sat, 31 Aug 2019 17:55:24 +0100 Subject: [PATCH 5/8] badges on two lines --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index fdb75b47..c53f7459 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,8 @@ Python's Filesystem abstraction layer. [![PyPI version](https://badge.fury.io/py/fs.svg)](https://badge.fury.io/py/fs) [![Downloads](https://pepy.tech/badge/fs/month)](https://pepy.tech/project/fs/month) [![PyPI](https://img.shields.io/pypi/pyversions/fs.svg)](https://pypi.org/project/fs/) + + [![Build Status](https://travis-ci.org/PyFilesystem/pyfilesystem2.svg?branch=master)](https://travis-ci.org/PyFilesystem/pyfilesystem2) [![Windows Build Status](https://ci.appveyor.com/api/projects/status/github/pyfilesystem/pyfilesystem2?branch=master&svg=true)](https://ci.appveyor.com/project/willmcgugan/pyfilesystem2) [![Coverage Status](https://coveralls.io/repos/github/PyFilesystem/pyfilesystem2/badge.svg)](https://coveralls.io/github/PyFilesystem/pyfilesystem2) From 739439021e0392ace1452aa6d900365478286869 Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Sat, 31 Aug 2019 17:56:44 +0100 Subject: [PATCH 6/8] added 3.8 --- README.md | 2 +- setup.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c53f7459..fbd6b200 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,8 @@ Python's Filesystem abstraction layer. [![PyPI version](https://badge.fury.io/py/fs.svg)](https://badge.fury.io/py/fs) -[![Downloads](https://pepy.tech/badge/fs/month)](https://pepy.tech/project/fs/month) [![PyPI](https://img.shields.io/pypi/pyversions/fs.svg)](https://pypi.org/project/fs/) +[![Downloads](https://pepy.tech/badge/fs/month)](https://pepy.tech/project/fs/month) [![Build Status](https://travis-ci.org/PyFilesystem/pyfilesystem2.svg?branch=master)](https://travis-ci.org/PyFilesystem/pyfilesystem2) diff --git a/setup.py b/setup.py index d758fca4..a6ce6f43 100644 --- a/setup.py +++ b/setup.py @@ -16,6 +16,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", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: System :: Filesystems", From e94bda23f449526b59d21c4553161c9127ef080b Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Sat, 31 Aug 2019 18:01:29 +0100 Subject: [PATCH 7/8] changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f5e2c72d..6967df4f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Added geturl for TarFS and ZipFS for 'fs' purpose. NoURL for 'download' purpose. - Added helpful root path in CreateFailed exception [#340](https://github.com/PyFilesystem/pyfilesystem2/issues/340) +- Added Python 3.8 support ### Fixed From 6f290ea6c6973fd82e0944d2f593bf61b717c5e4 Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Sat, 31 Aug 2019 18:05:37 +0100 Subject: [PATCH 8/8] requirements for readthedocs --- requirements-readthedocs.txt | 2 ++ requirements.txt | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 requirements-readthedocs.txt delete mode 100644 requirements.txt diff --git a/requirements-readthedocs.txt b/requirements-readthedocs.txt new file mode 100644 index 00000000..3e63add2 --- /dev/null +++ b/requirements-readthedocs.txt @@ -0,0 +1,2 @@ +# requirements for readthedocs.io +-e . diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index d6e1198b..00000000 --- a/requirements.txt +++ /dev/null @@ -1 +0,0 @@ --e .