Skip to content

Commit 4d1ba8a

Browse files
committed
Rename sdist subclass that sets zip format
1 parent 7f0b659 commit 4d1ba8a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

packages/basemap_data/setup.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ def get_content(name, splitlines=False):
2323
return content
2424

2525

26-
class basemap_data_sdist(sdist):
27-
"""Custom `sdist` so that it will force to save in zip format."""
26+
class sdist_zip(sdist):
27+
"""Custom `sdist` that saves source distributions in zip format."""
2828

2929
def initialize_options(self):
3030
"""Call `initialize_options` and then set zip as default format."""
@@ -141,7 +141,7 @@ def _default_to_zip(self):
141141
"<4",
142142
]),
143143
"cmdclass": {
144-
"sdist": basemap_data_sdist,
144+
"sdist": sdist_zip,
145145
},
146146
"project_urls": {
147147
"Bug Tracker":

packages/basemap_data_hires/setup.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ def get_content(name, splitlines=False):
2323
return content
2424

2525

26-
class basemap_data_hires_sdist(sdist):
27-
"""Custom `sdist` so that it will force to save in zip format."""
26+
class sdist_zip(sdist):
27+
"""Custom `sdist` that saves source distributions in zip format."""
2828

2929
def initialize_options(self):
3030
"""Call `initialize_options` and then set zip as default format."""
@@ -119,7 +119,7 @@ def _default_to_zip(self):
119119
"<4",
120120
]),
121121
"cmdclass": {
122-
"sdist": basemap_data_hires_sdist,
122+
"sdist": sdist_zip,
123123
},
124124
"project_urls": {
125125
"Bug Tracker":

0 commit comments

Comments
 (0)