File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 runs-on : ubuntu-latest
88 steps :
99 - name : Checkout Repository
10- uses : actions/checkout@v2
10+ uses : actions/checkout@v3
1111 - name : Set up Python
12- uses : actions/setup-python@v2
12+ uses : actions/setup-python@v3
1313 with :
1414 python-version : " 3.10"
1515 - name : Install Dependencies
2323 pythonversion : ["3.7", "3.8", "3.9", "3.10"]
2424 steps :
2525 - name : Checkout Repository
26- uses : actions/checkout@v2
26+ uses : actions/checkout@v3
2727 - name : Set up Python
28- uses : actions/setup-python@v2
28+ uses : actions/setup-python@v3
2929 with :
3030 python-version : ${{ matrix.pythonversion }}
3131 - name : Install Dependencies
Original file line number Diff line number Diff line change @@ -10,25 +10,15 @@ jobs:
1010 runs-on : ubuntu-latest
1111 steps :
1212 - name : Checkout Repository
13- uses : actions/checkout@v2
13+ uses : actions/checkout@v3
1414 - name : Set up Python
15- uses : actions/setup-python@v2
15+ uses : actions/setup-python@v3
1616 with :
1717 python-version : " 3.10"
18- - name : Install pypa/build
19- run : >-
20- python -m
21- pip install
22- build
23- --user
24- - name : Build a binary wheel and a source tarball
25- run : >-
26- python -m
27- build
28- --sdist
29- --wheel
30- --outdir dist/
31- .
18+ - name : Build package
19+ run : |
20+ make install
21+ make build
3222 # Uncomment for your project
3323 # - name: Publish to PyPI
3424 # uses: pypa/gh-action-pypi-publish@master
Original file line number Diff line number Diff line change @@ -10,19 +10,16 @@ help:
1010
1111# # build - Builds the project in preparation for release
1212build :
13- $(PYTHON_BINARY ) setup.py sdist bdist_wheel
13+ $(VIRTUAL_BIN ) /python -m build
1414
1515# # coverage - Test the project and generate an HTML coverage report
1616coverage :
1717 $(VIRTUAL_BIN ) /pytest --cov=$(PROJECT_NAME ) --cov-branch --cov-report=html --cov-report=term-missing
1818
1919# # clean - Remove the virtual environment and clear out .pyc files
2020clean :
21- rm -rf $(VIRTUAL_ENV )
21+ rm -rf $(VIRTUAL_ENV ) dist build * .egg-info .coverage
2222 find . -name ' *.pyc' -delete
23- rm -rf dist
24- rm -rf build
25- rm -rf * .egg-info
2623
2724# # black - Runs the Black Python formatter against the project
2825black :
Original file line number Diff line number Diff line change 99]
1010
1111DEV_REQUIREMENTS = [
12- 'black' ,
12+ 'black == 22.*' ,
13+ 'build == 0.7.*' ,
1314 'coveralls == 3.*' ,
14- 'flake8' ,
15- 'isort' ,
16- 'mypy' ,
15+ 'flake8 == 4.* ' ,
16+ 'isort == 5.* ' ,
17+ 'mypy == 0.942 ' ,
1718 'pytest == 7.*' ,
1819 'pytest-cov == 3.*' ,
20+ 'twine == 4.*' ,
1921]
2022
2123setuptools .setup (
You can’t perform that action at this time.
0 commit comments