Skip to content

Commit

Permalink
Merge pull request #165 from plone/dataflake/py39
Browse files Browse the repository at this point in the history
Add support for Python 3.9 and parallelized tox runs
  • Loading branch information
jensens authored Mar 16, 2021
2 parents 9b2052b + 1ce6781 commit b60a84d
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
- "3.6"
- "3.7"
- "3.8"
- "3.9"
zope-version:
- "zope-4"
- "zope-5"
Expand All @@ -22,6 +23,8 @@ jobs:
python-version: "2.7"
- zope-version: "zope-5"
python-version: "2.7"
- zope-version: "zope-4"
python-version: "3.9"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
Expand All @@ -39,7 +42,7 @@ jobs:
${{ runner.os }}-test
- name: Install dependencies
run: |
pip install -U pip
pip install -U pip wheel
pip install -r requirements-testing-${{ matrix.zope-version }}.txt
- name: Run Tests
run: |
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ parts
pip-selfcheck.json
pyvenv.cfg
/.coverage
/.coverage.*
/.installed.cfg
/.tox
/coverage.xml
/default.profraw
/htmlcov
5 changes: 3 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ You can use it with a part like this::
zcml = my.distribution

.. ATTENTION::
This release is targeted at Plone 5.2, ZODB 5, Zope 4, and Python 2.7, 3.6 or 3.7.
If you are using this recipe with earlier versions, you should use one of the releases from the 4.x series.
This release is targeted at Plone 5.2, ZODB 5, Zope 4 and Zope 5, and
Python 2.7 and 3.5-3.9. If you are using this recipe with earlier versions,
you should use one of the releases from the 4.x series.


.. contents:: **Contents**
Expand Down
2 changes: 2 additions & 0 deletions news/164.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Added support for Python 3.9 and restored support for Python 3.5 (needed for Zope 4)
[dataflake]
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,18 @@
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: Implementation :: CPython",
],
packages=find_packages('src'),
include_package_data=True,
package_dir={'': 'src'},
namespace_packages=['plone', 'plone.recipe'],
python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*',
install_requires=[
'zc.buildout',
'setuptools',
Expand Down
3 changes: 2 additions & 1 deletion src/plone/recipe/zope2instance/ctl.py
Original file line number Diff line number Diff line change
Expand Up @@ -955,7 +955,8 @@ def main(args=None):

if (os.environ.get('PLONE_ENV')):
PLONE_ENV = os.environ.get('PLONE_ENV')
load_dotenv(os.path.join(options.directory, '..', '..', '.env.{}'.format(PLONE_ENV)))
load_dotenv(os.path.join(options.directory,
'..', '..', '.env.{}'.format(PLONE_ENV)))

# Run the right command depending on whether we have ZServer
options.interpreter = os.path.join(options.directory, 'bin', 'interpreter')
Expand Down
9 changes: 9 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
[tox]
envlist =
py27,
py35,
py36,
py37,
py38,
py39,
flake8,
coverage

Expand All @@ -25,6 +27,13 @@ setenv =
basepython = python2.7
skip_install = true
deps = coverage
depends =
py27
py35
py36
py37
py38
py39
setenv =
COVERAGE_FILE=.coverage
commands =
Expand Down

0 comments on commit b60a84d

Please sign in to comment.