-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tweak dependency versions for newer Pythons (#199)
* Tweak dependency versions for newer Pythons To ensure compatibility with newer Pythons unpin some requirements when building in environments with later Pythons. This resolves compability issues with new Pythons and is OK as charms can now be build on the Ubuntu release that they will also run on. * Fixup branch for actions operator * Further updates to get layer-basic to work with py3.10 The 'split' is at py3.8 to enable greater testing. This commit adds further pins for pre py3.8 and relaxations for >= py3.8 to allow new versions of python to build charms. * Add comments to README on build/run bases This patch updates the README to include information that the layer-basic is now aware of what it is being built on and the modules in the wheelhouse.txt (for layer-basic) are dependent on whether they are pre- or post-inclusive of Python 3.8 * Fix linting issue by removing commented-out code * Use latest version of charm-tools for testing * Correct egg name for charm-tools Co-authored-by: Alex Kavanagh <alex.kavanagh@canonical.com>
- Loading branch information
1 parent
a3ff62c
commit fb767dc
Showing
8 changed files
with
86 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
charm-tools | ||
# Use latest so that layer-basic tests against main branch | ||
git+https://github.com/juju/charm-tools.git#egg=charm-tools | ||
git+https://github.com/openstack-charmers/zaza.git#egg=zaza |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
# We add a wheel that needs to be built from source to validate that this works | ||
psycopg2 | ||
psycopg2;python_version < '3.8' | ||
psycopg;python_version >= '3.8' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,29 @@ | ||
# pip is pinned to <19.0 to avoid https://github.com/pypa/pip/issues/6164 | ||
# even with installing setuptools before upgrading pip ends up with pip seeing | ||
# the older setuptools at the system level if include_system_packages is true | ||
pip>=18.1,<19.0 | ||
pip>=18.1,<19.0;python_version < '3.8' | ||
pip;python_version >= '3.8' | ||
# pin Jinja2, PyYAML and MarkupSafe to the last versions supporting python 3.5 | ||
# for trusty | ||
Jinja2<=2.10.1 | ||
PyYAML<=5.2 | ||
MarkupSafe<2.0.0 | ||
setuptools<42 | ||
setuptools-scm<=1.17.0 | ||
charmhelpers>=0.4.0,<1.0.0 | ||
Jinja2==2.10;python_version >= '3.0' and python_version <= '3.4' # py3 trusty | ||
Jinja2==2.11;python_version == '2.7' or python_version == '3.5' # py27, py35 | ||
Jinja2;python_version >= '3.6' # py36 and on | ||
|
||
PyYAML==5.2;python_version >= '3.0' and python_version <= '3.4' # py3 trusty | ||
PyYAML<5.4;python_version == '2.7' or python_version >= '3.5' # all else | ||
|
||
MarkupSafe<2.0.0;python_version < '3.6' | ||
MarkupSafe<2.1.0;python_version == '3.6' # Just for python 3.6 | ||
MarkupSafe;python_version >= '3.7' # newer pythons | ||
|
||
setuptools<42;python_version < '3.8' | ||
setuptools;python_version >= '3.8' | ||
setuptools-scm<=1.17.0;python_version < '3.8' | ||
setuptools-scm;python_version >= '3.8' | ||
flit_core;python_version >= '3.8' | ||
charmhelpers>=0.4.0,<2.0.0 | ||
charms.reactive>=0.1.0,<2.0.0 | ||
wheel<0.34 | ||
wheel<0.34;python_version < '3.8' | ||
wheel;python_version >= '3.8' | ||
# pin netaddr to avoid pulling importlib-resources | ||
netaddr<=0.7.19 |