File tree Expand file tree Collapse file tree 3 files changed +21
-10
lines changed Expand file tree Collapse file tree 3 files changed +21
-10
lines changed Original file line number Diff line number Diff line change @@ -116,12 +116,11 @@ jobs:
116116 python-version : ' 3.x'
117117 - name : Install dependencies
118118 run : |
119- python -m pip install --upgrade pip wheel setuptools_scm
120- pip install --upgrade -r CI_REQUIREMENTS.txt
121- pip install --upgrade twine
119+ python -m pip install --upgrade pip
120+ pip install --upgrade twine build
122121 - name : Build package
123122 run : |
124- python setup.py sdist bdist_wheel clean
123+ python -m build
125124 - name : Deploy
126125 env :
127126 TWINE_USERNAME : ${{ secrets.PYPI_USERNAME }}
Original file line number Diff line number Diff line change @@ -9,5 +9,6 @@ exclude .gitignore .dockerignore
99prune test
1010prune .github
1111prune .azure_pipelines
12+ prune .tox
1213prune doc
1314exclude CODEOWNERS CODE_OF_CONDUCT.md _config.yml
Original file line number Diff line number Diff line change 33# PEP 508 specifications for PEP 518.
44requires = [
55 " setuptools>=45" , # PSF/ZPL
6- " wheel" ,
76 " setuptools_scm[toml]>=6.2" ,
87]
98build-backend =" setuptools.build_meta"
@@ -24,9 +23,21 @@ maintainers=[
2423]
2524dynamic = [" version" , " classifiers" , " dependencies" ]
2625
27- [tool .setuptools ]
28- packages = [" exec_helpers" , " exec_helpers.async_api" ]
29- package-data ={"exec_helpers" =[" py.typed" ], "*" =[" *.pyi" ]}
26+ [tool .setuptools .package-data ]
27+ exec_helpers =[
28+ " py.typed" ,
29+ " *.pyi" ,
30+ " */*.pyi"
31+ ]
32+
33+ [tool .setuptools .packages .find ]
34+ exclude = [
35+ " doc" ,
36+ " test" ,
37+ " .*"
38+ ]
39+ include = [" exec_helpers" ]
40+ namespaces = false
3041
3142[tool .setuptools .dynamic ]
3243dependencies = {file = [" requirements.txt" ]}
@@ -39,8 +50,8 @@ yaml = ["PyYAML>=3.12"]
3950all_formats = [" defusedxml" , " lxml>=4.6.2" , " PyYAML>=3.12" ]
4051all-formats = [" defusedxml" , " lxml>=4.6.2" , " PyYAML>=3.12" ]
4152
42- [tool .bdist_wheel ]
43- universal = false
53+ [tool .distutils . bdist_wheel ]
54+ universal = 0
4455
4556[tool .black ]
4657line-length = 120
You can’t perform that action at this time.
0 commit comments