Skip to content

Commit

Permalink
Merge pull request #54 from N3PDF/Enable-python-3.9
Browse files Browse the repository at this point in the history
Enable python 3.9
  • Loading branch information
scarlehoff authored Apr 16, 2021
2 parents 47de7d4 + 98d0919 commit c13d2d5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
max-parallel: 3
matrix:
python-version: [3.6, 3.7, 3.8]
python-version: [3.8, 3.9]

steps:
- uses: actions/checkout@v1
Expand Down
9 changes: 8 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
# Installation script for python
from setuptools import setup, find_packages
from sys import version_info
import os
import re


requirements = ['numpy', 'pyyaml', 'tensorflow>2.1']
requirements = ['numpy', 'pyyaml']
if version_info.major >=3 and version_info.minor >= 9:
# For python above 3.9 the only existing TF is 2.5 which works well (even pre releases)
tf_pack = "tensorflow"
else:
tf_pack = "tensorflow>2.1"
requirements.append(tf_pack)

PACKAGE = 'pdfflow'

Expand Down
2 changes: 1 addition & 1 deletion src/pdfflow/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
from pdfflow.configflow import int_me, float_me, run_eager
from pdfflow.pflow import mkPDF, mkPDFs

__version__ = "1.1"
__version__ = "1.2"

0 comments on commit c13d2d5

Please sign in to comment.