Skip to content

Commit

Permalink
global: remove urlib3 dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
PascalEgn committed Sep 20, 2024
1 parent 919979a commit f4ed621
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 25 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Install python dependencies
run: |
${{ matrix.pip }} install --user --upgrade pip
${{ matrix.pip }} --no-cache-dir install --user setuptools wheel "urllib3==1.25.11"
${{ matrix.pip }} --no-cache-dir install --user setuptools wheel
${{ matrix.pip }} --no-cache-dir install --user -e .[tests,docs]
- name: Show python dependencies
Expand Down Expand Up @@ -108,7 +108,7 @@ jobs:
- name: Install python dependencies
run: |
python -m pip install --upgrade pip
pip --no-cache-dir install setuptools wheel "urllib3==1.25.11"
pip --no-cache-dir install setuptools wheel
pip --no-cache-dir install -e .[tests,docs]
- name: Show python dependencies
Expand Down
45 changes: 22 additions & 23 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,26 @@ def _generate_json_schemas():
_yaml2json(yaml_file=yaml_file, json_file=json_file)


build_requires = ['pyyaml>=6.0,<7.0']
build_requires = ['pyyaml>=6.0,<7.0',]

install_requires=[
'bump2version~=0.0,<1; python_version == "2.7"',
'bump2version~=1.0; python_version >= "3"',
'bleach~=3.0,>=3.2.1',
'Unidecode~=1.0,>=1.0.22',
'jsonschema~=2.0,>=2.6.0',
'inspire-idutils==1.2.4; python_version == "2.7"',
'idutils~=1.2,>=1.2.1; python_version >= "3"',
'isbnid',
'inspire-utils',
'isodate',
'pyyaml>=6.0,<7.0',
'pytz',
'rfc3987',
'six',
'scrapy',
'pylatexenc',
]

tests_require = [
'check-manifest',
Expand Down Expand Up @@ -205,35 +224,15 @@ def do_setup():
description='Inspire JSON schemas and utilities to use them.',
long_description="Inspire JSON schemas and utilities to use them.",
long_description_content_type='text/plain',
install_requires=[
'bump2version~=0.0,<1; python_version == "2.7"',
'bump2version~=1.0; python_version >= "3"',
'bleach~=3.0,>=3.2.1',
'Unidecode~=1.0,>=1.0.22',
'jsonschema~=2.0,>=2.6.0',
'inspire-idutils==1.2.4; python_version == "2.7"',
'idutils~=1.2,>=1.2.1; python_version >= "3"',
'isbnid',
'inspire-utils~=3.0,>=3.0.0',
'isodate',
'pyyaml>=6.0,<7.0',
'pytz',
'rfc3987',
'six',
# requests requires a urllib3 version <1.26 but not 1.25.0 and 1.25.1
# we pin it down here to solve dependency problems
'urllib3>=1.21.1,<1.26,!=1.25.0,!=1.25.1',
'scrapy',
'pylatexenc',
],
install_requires=install_requires,
tests_require=tests_require,
extras_require=extras_require,
build_requires=build_requires,
license='GPLv2',
name='inspire-schemas',
package_data={'': ['*.json', 'CHANGELOG', 'AUTHORS']},
packages=find_packages(),
setup_requires=['pyyaml>=6.0,<7.0'],
setup_requires=install_requires,
url=URL,
bugtracker_url=URL + '/issues/',
zip_safe=False,
Expand Down

0 comments on commit f4ed621

Please sign in to comment.