Skip to content
This repository was archived by the owner on Jun 21, 2022. It is now read-only.

Commit 4cde5ee

Browse files
Add support for Python 3.9 (#526)
* Add support for Python 3.9 * Bump version to 3.13.0 * Fix a test * Update date on LICENSE * Try using miniforge and mamba again * Fix installing pyopenssl * Fix typo * Try again to fix installing pyopenssl * Use conda activate Co-authored-by: Chris Burr <chrisburr@users.noreply.github.com>
1 parent d9ea740 commit 4cde5ee

File tree

5 files changed

+33
-25
lines changed

5 files changed

+33
-25
lines changed

.travis.yml

Lines changed: 15 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -19,40 +19,36 @@ env:
1919
- PYVER=3.6 NPY="numpy==1.14.5"
2020
- PYVER=3.6 NPY="numpy>=1.15"
2121

22-
- PYVER=3.7 NPY="numpy==1.14.5"
2322
- PYVER=3.7 NPY="numpy>=1.15"
2423

2524
- PYVER=3.8 NPY="numpy>=1.15"
2625

26+
- PYVER=3.9 NPY="numpy>=1.15"
27+
2728
# - PYVER=pypy2.7 NPY="numpy>=1.15"
2829

2930
- PYVER=pypy3.6 NPY="numpy>=1.15"
3031

3132
install:
3233
# Install conda
33-
- wget -nv http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
34+
- wget -nv https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh -O miniconda.sh
3435
- bash miniconda.sh -b -p $HOME/miniconda
35-
- export PATH="$HOME/miniconda/bin:$PATH"
36-
- hash -r
37-
- conda config --add channels conda-forge;
38-
# conda install --quiet --yes -c conda-forge/label/mamba-alpha mamba
36+
- eval "$($HOME/miniconda/bin/python -m conda shell.bash hook)"
37+
- conda install --quiet --yes mamba
3938
- conda config --set always_yes yes --set changeps1 no
4039
# Create the conda testing environment
41-
# FIXME: Mamba decides to upgrade Python here so pin it again
42-
# FIXME: Channel priority is also mixed up
43-
# FIXME: Mamba doesn't install pip by default
44-
# FIXME: Mamba causes pip install numpy to be extremely slow
40+
# pyopenssl is for deployment
4541
- if [[ "${PYVER}" = pypy* ]]; then
46-
conda create --quiet --yes -n testenv ${PYVER};
47-
elif [ "${PYVER}" = "2.7" ] || [ "${PYVER}" = "3.6" ] || [ "${PYVER}" = "3.7" || [ "${PYVER}" = "3.8" ]; then
48-
conda create --quiet --yes -n testenv python=${PYVER} pip;
42+
mamba create --quiet --yes -n testenv ${PYVER};
43+
elif [ "${PYVER}" = "2.7" ] || [ "${PYVER}" = "3.6" ] || [ "${PYVER}" = "3.7" || [ "${PYVER}" = "3.8" ] || [ "${PYVER}" = "3.9" ]; then
44+
mamba create --quiet --yes -n testenv python=${PYVER} pip pyopenssl;
4945
else
50-
conda create --quiet --yes -n testenv python=${PYVER};
46+
mamba create --quiet --yes -n testenv python=${PYVER} pyopenssl;
5147
fi
52-
- source activate testenv
53-
- if [ "${PYVER}" = "2.7" ] || [ "${PYVER}" = "3.6" ] || [ "${PYVER}" = "3.7" || [ "${PYVER}" = "3.8" ]; then
54-
conda install --quiet --yes python=${PYVER} pip root;
55-
source activate testenv;
48+
- conda activate testenv
49+
- if [ "${PYVER}" = "2.7" ] || [ "${PYVER}" = "3.6" ] || [ "${PYVER}" = "3.7" || [ "${PYVER}" = "3.8" ] || [ "${PYVER}" = "3.9" ]; then
50+
mamba install --quiet --yes -n testenv python=${PYVER} pip root;
51+
conda activate testenv;
5652
fi
5753
- pip install --upgrade setuptools-scm
5854
- pip install $NPY
@@ -64,10 +60,6 @@ install:
6460
- pip install cachetools pkgconfig lz4 zstandard xxhash mock requests "pytest>=3.9" pytest-runner
6561
- if [[ ${PYVER} = "2.7" ]] ; then pip install backports.lzma ; fi
6662
- pip install pandas
67-
# pyopenssl is for deployment
68-
- if [[ ${PYVER} != pypy* ]] ; then
69-
conda install -c anaconda python=${PYVER} pyopenssl;
70-
fi
7163
- wget -O tests/samples/Event.root http://scikit-hep.org/uproot/examples/Event.root
7264
- pip install pytest-error-for-skips
7365

@@ -78,7 +70,7 @@ addons:
7870
- libatlas-base-dev
7971

8072
script:
81-
if [ "${PYVER}" = "2.7" ] || [ "${PYVER}" = "3.6" ] || [ "${PYVER}" = "3.7" || [ "${PYVER}" = "3.8" ]; then
73+
if [ "${PYVER}" = "2.7" ] || [ "${PYVER}" = "3.6" ] || [ "${PYVER}" = "3.7" || [ "${PYVER}" = "3.8" ] || [ "${PYVER}" = "3.9" ]; then
8274
pytest --error-for-skips -v tests;
8375
else
8476
pytest -v tests;

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
BSD 3-Clause License
22

3-
Copyright (c) 2017-2018, Jim Pivarski
3+
Copyright (c) 2017-2020, Jim Pivarski
44
All rights reserved.
55

66
Redistribution and use in source and binary forms, with or without

appveyor.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,21 @@ environment:
4040
PYTHON_ARCH: "64"
4141
NUMPY: "numpy>=1.15"
4242

43+
- PYTHON: "C:\\Python37"
44+
PYTHON_VERSION: "3.7.x"
45+
PYTHON_ARCH: "32"
46+
NUMPY: "numpy>=1.15"
47+
48+
- PYTHON: "C:\\Python38"
49+
PYTHON_VERSION: "3.8.x"
50+
PYTHON_ARCH: "32"
51+
NUMPY: "numpy>=1.15"
52+
53+
- PYTHON: "C:\\Python39"
54+
PYTHON_VERSION: "3.9.x"
55+
PYTHON_ARCH: "32"
56+
NUMPY: "numpy>=1.15"
57+
4358
install:
4459
- "SET PATH=%PYTHON%;%PATH%"
4560
- "python --version"

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ def get_description():
163163
"Programming Language :: Python :: 3.6",
164164
"Programming Language :: Python :: 3.7",
165165
"Programming Language :: Python :: 3.8",
166+
"Programming Language :: Python :: 3.9",
166167
"Topic :: Scientific/Engineering",
167168
"Topic :: Scientific/Engineering :: Information Analysis",
168169
"Topic :: Scientific/Engineering :: Mathematics",

uproot/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import re
88

9-
__version__ = "3.12.1"
9+
__version__ = "3.13.0"
1010
version = __version__
1111
version_info = tuple(re.split(r"[-\.]", __version__))
1212

0 commit comments

Comments
 (0)