Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Python 3.9 support #801

Merged
merged 10 commits into from
Jun 7, 2020
Merged
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
43 changes: 16 additions & 27 deletions .github/workflows/continuous_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,13 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v1
uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: "3.8"
- name: Install dependencies
run: |
pip install -U pip
pip install tox
run: pip install -U tox
- name: Linting code
run: tox -e lint
- name: Linting docs
Expand All @@ -33,70 +31,61 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [2.7, 3.5, 3.6, 3.7, 3.8]
python-version: ["pypy3", "2.7", "3.5", "3.6", "3.7", "3.8"]

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install -U pip
pip install tox tox-gh-actions
run: pip install -U tox tox-gh-actions
- name: Test with tox
run: tox
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: .coverage

MacOS:
runs-on: macos-latest
strategy:
matrix:
python-version: [2.7, 3.5, 3.6, 3.7, 3.8]
python-version: ["pypy3", "2.7", "3.5", "3.6", "3.7", "3.8"]

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install -U pip
pip install tox tox-gh-actions
run: pip install -U tox tox-gh-actions
- name: Test with tox
run: tox
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: .coverage

Windows:
runs-on: windows-latest
strategy:
matrix:
python-version: [2.7, 3.5, 3.6, 3.7, 3.8]
python-version: ["pypy3", "2.7", "3.5", "3.6", "3.7", "3.8"]

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install -U pip
pip install tox tox-gh-actions
run: pip install -U tox tox-gh-actions
- name: Test with tox
run: tox
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: .coverage
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,17 @@ matrix:
os: windows
language: shell # 'language: python' is an error on Travis CI Windows
before_install:
- choco install python --version 3.7.5
krisfremen marked this conversation as resolved.
Show resolved Hide resolved
- choco install python --version 3.7.7
- python -m pip install --upgrade pip
env:
- PATH=/c/Python37:/c/Python37/Scripts:$PATH
- TOXENV=py37
- name: "Python 3.8"
python: "3.8"
env: TOXENV=py38
- name: "Python 3.9"
python: "3.9-dev"
env: TOXENV=py39
- name: "Linting"
python: "3.7"
env: TOXENV=lint,docs
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ build35: PYTHON_VER = python3.5
build36: PYTHON_VER = python3.6
build37: PYTHON_VER = python3.7
build38: PYTHON_VER = python3.8
build39: PYTHON_VER = python3.9

build27 build35 build36 build37 build38: clean
build27 build35 build36 build37 build38 build39: clean
virtualenv venv --python=$(PYTHON_VER)
. venv/bin/activate; \
pip install -r requirements.txt; \
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Features
--------

- Fully-implemented, drop-in replacement for datetime
- Supports Python 2.7, 3.5, 3.6, 3.7 and 3.8
- Supports Python 2.7, 3.5, 3.6, 3.7, 3.8 and 3.9
- Timezone-aware and UTC by default
- Provides super-simple creation options for many common input scenarios
- :code:`shift` method with support for relative offsets, including weeks
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
],
keywords="arrow date time datetime timestamp timezone",
keywords="arrow date time datetime timestamp timezone humanize",
project_urls={
"Repository": "https://github.com/crsmithdev/arrow",
"Bug Reports": "https://github.com/crsmithdev/arrow/issues",
Expand Down
4 changes: 3 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
[tox]
envlist = py{27,35,36,37,38},lint,docs
envlist = py{py3,27,35,36,37,38,39},lint,docs
skip_missing_interpreters = true

[gh-actions]
python =
pypy3: pypy3
2.7: py27
3.5: py35
3.6: py36
3.7: py37
3.8: py38
3.9: py39

# Configure testing environments

Expand Down