File tree Expand file tree Collapse file tree 4 files changed +32
-4
lines changed Expand file tree Collapse file tree 4 files changed +32
-4
lines changed Original file line number Diff line number Diff line change @@ -119,8 +119,8 @@ jobs:
119
119
set -e
120
120
. /etc/profile
121
121
python -m twine check \
122
- ${{ env.PKGDIR }}/dist/*.tar.gz \
122
+ ${{ env.PKGDIR }}/dist/*.zip \
123
123
${{ env.PKGDIR }}/dist/*.whl
124
124
python -m twine upload --skip-existing \
125
- ${{ env.PKGDIR }}/dist/*.tar.gz \
125
+ ${{ env.PKGDIR }}/dist/*.zip \
126
126
${{ env.PKGDIR }}/dist/*.whl
Original file line number Diff line number Diff line change @@ -119,8 +119,8 @@ jobs:
119
119
set -e
120
120
. /etc/profile
121
121
python -m twine check \
122
- ${{ env.PKGDIR }}/dist/*.tar.gz \
122
+ ${{ env.PKGDIR }}/dist/*.zip \
123
123
${{ env.PKGDIR }}/dist/*.whl
124
124
python -m twine upload --skip-existing \
125
- ${{ env.PKGDIR }}/dist/*.tar.gz \
125
+ ${{ env.PKGDIR }}/dist/*.zip \
126
126
${{ env.PKGDIR }}/dist/*.whl
Original file line number Diff line number Diff line change 8
8
import itertools
9
9
from setuptools import setup
10
10
from setuptools import find_packages
11
+ from setuptools .command .sdist import sdist
11
12
12
13
13
14
def get_content (name , splitlines = False ):
@@ -22,6 +23,16 @@ def get_content(name, splitlines=False):
22
23
return content
23
24
24
25
26
+ class basemap_data_sdist (sdist ):
27
+ """Custom `sdist` so that it will force to save in zip format."""
28
+
29
+ def finalize_options (self ):
30
+ """Enforce zip format before calling `finalize_options`."""
31
+
32
+ self .formats = ["zip" ]
33
+ sdist .finalize_options (self )
34
+
35
+
25
36
# Define some helper lists.
26
37
basenames = [
27
38
"countries" ,
@@ -128,6 +139,9 @@ def get_content(name, splitlines=False):
128
139
"!=3.1.*" ,
129
140
"<4" ,
130
141
]),
142
+ "cmdclass" : {
143
+ "sdist" : basemap_data_sdist ,
144
+ },
131
145
"project_urls" : {
132
146
"Bug Tracker" :
133
147
"https://github.com/matplotlib/basemap/issues" ,
Original file line number Diff line number Diff line change 8
8
import itertools
9
9
from setuptools import setup
10
10
from setuptools import find_packages
11
+ from setuptools .command .sdist import sdist
11
12
12
13
13
14
def get_content (name , splitlines = False ):
@@ -22,6 +23,16 @@ def get_content(name, splitlines=False):
22
23
return content
23
24
24
25
26
+ class basemap_data_hires_sdist (sdist ):
27
+ """Custom `sdist` so that it will force to save in zip format."""
28
+
29
+ def finalize_options (self ):
30
+ """Enforce zip format before calling `finalize_options`."""
31
+
32
+ self .formats = ["zip" ]
33
+ sdist .finalize_options (self )
34
+
35
+
25
36
# Define some helper lists.
26
37
basenames = [
27
38
"countries" ,
@@ -106,6 +117,9 @@ def get_content(name, splitlines=False):
106
117
"!=3.1.*" ,
107
118
"<4" ,
108
119
]),
120
+ "cmdclass" : {
121
+ "sdist" : basemap_data_hires_sdist ,
122
+ },
109
123
"project_urls" : {
110
124
"Bug Tracker" :
111
125
"https://github.com/matplotlib/basemap/issues" ,
You can’t perform that action at this time.
0 commit comments