Skip to content

Commit

Permalink
Drop runtime dependency to setuptools (dask#6017)
Browse files Browse the repository at this point in the history
  • Loading branch information
crusaderky authored and mrocklin committed Mar 31, 2022
1 parent 7d8954a commit 1796804
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
1 change: 0 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ repos:
- types-requests
- types-paramiko
- types-PyYAML
- types-setuptools
- types-psutil
# Typed libraries
- numpy
Expand Down
1 change: 1 addition & 0 deletions continuous_integration/recipes/dask/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ build:
requirements:
host:
- python >=3.8
- setuptools
run:
- python >=3.8
- dask-core >={{ dask_version }}
Expand Down
5 changes: 3 additions & 2 deletions continuous_integration/recipes/distributed/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,12 @@ outputs:
build:
- {{ compiler('c') }} # [cython_enabled]
host:
- python
- python >=3.8
- pip
- setuptools
- cython # [cython_enabled]
run:
- python
- python >=3.8
- click >=6.6
- cloudpickle >=1.5.0
- cytoolz >=0.8.2
Expand Down
7 changes: 4 additions & 3 deletions distributed/tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1637,6 +1637,8 @@ def g():

@gen_cluster(client=True)
async def test_upload_file_egg(c, s, a, b):
pytest.importorskip("setuptools")

def g():
import package_1
import package_2
Expand All @@ -1657,9 +1659,8 @@ def g():
with open(os.path.join(dirname, "setup.py"), "w") as f:
f.write("from setuptools import setup, find_packages\n")
f.write(
'setup(name="my_package", packages=find_packages(), version="{}")\n'.format(
value
)
'setup(name="my_package", packages=find_packages(), '
f'version="{value}")\n'
)

# test a package with an underscore in the name
Expand Down

0 comments on commit 1796804

Please sign in to comment.