Skip to content

Commit

Permalink
Merge pull request #32 from StateFarmIns/pyproject-wheel
Browse files Browse the repository at this point in the history
Pyproject wheel
  • Loading branch information
MichaelKim0407 authored Nov 7, 2023
2 parents 436fd43 + a534f8c commit a985161
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools twine
python -m pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist
python setup.py sdist bdist_wheel
twine upload dist/*
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ jobs:
strategy:
matrix:
python-version:
- '3.6'
- '3.7'
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'

steps:
- uses: actions/checkout@v2
Expand All @@ -25,8 +25,8 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools
# For 3.12, setuptools doesn't come pre-installed
python -m pip install --upgrade pip setuptools
pip install -e .[ci]
- name: Lint with flake8
run: |
Expand Down
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
'pytest-cov>=2',

'flake8-builtins',
'flake8-commas',
# Cannot install on python 3.12, project is archived
'flake8-commas ; python_version < "3.12"',
'flake8-fixme',
'flake8-print',
'flake8-quotes',
Expand Down Expand Up @@ -64,12 +65,12 @@

'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',

'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Software Development :: Quality Assurance',
Expand Down

0 comments on commit a985161

Please sign in to comment.