Skip to content

Commit

Permalink
Pin urllib to <2.0 for Metabox (BugFix) (canonical#892)
Browse files Browse the repository at this point in the history
* pin urllib to a version that works with pylxd

* update tutorial for metabox
  • Loading branch information
kissiel authored and binli committed Mar 22, 2024
1 parent 20e899f commit ec8b857
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
4 changes: 2 additions & 2 deletions metabox/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ Create a Python virtual environment and install Metabox in it:

```shell
$ cd metabox/
$ python3 -m venv metabox
$ source metabox/bin/activate
$ python3 -m venv venv
$ source venv/bin/activate
(metabox) $ pip install -e .
```

Expand Down
20 changes: 13 additions & 7 deletions metabox/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,23 @@
from setuptools import find_packages, setup

setup(
name='metabox',
version='0.3',
name="metabox",
version="0.3",
packages=find_packages(),
install_requires=['loguru', 'pylxd', 'pyyaml', 'importlib-resources'],
install_requires=[
"importlib-resources",
"loguru",
"pylxd",
"pyyaml",
"urllib3 >= 1.26.0, < 2.0.0",
],
entry_points={
'console_scripts': [
'metabox = metabox.main:main',
"console_scripts": [
"metabox = metabox.main:main",
]
},
include_package_data=True,
package_data={
'': ['metabox/metabox-provider/*'],
}
"": ["metabox/metabox-provider/*"],
},
)

0 comments on commit ec8b857

Please sign in to comment.