actions: fix python setup
parent
4340b678d0
commit
20c9a5caff
|
@ -11,11 +11,8 @@ jobs:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- uses: https://github.com/actions/setup-python@v2
|
- run: apt-get -y update && apt-get -y install python3-pip aspell-en
|
||||||
with:
|
- run: pip3 install .[full] .[dev]
|
||||||
python-version: 3.x
|
|
||||||
- run: pip install --upgrade pip
|
|
||||||
- run: pip install .[full] .[dev]
|
|
||||||
- run: isort --check-only --diff .
|
- run: isort --check-only --diff .
|
||||||
- run: pylint morss --rcfile=.pylintrc --disable=C,R,W --fail-under=8
|
- run: pylint morss --rcfile=.pylintrc --disable=C,R,W --fail-under=8
|
||||||
- run: pytest --cov=morss tests
|
- run: pytest --cov=morss tests
|
||||||
|
@ -28,7 +25,8 @@ jobs:
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- run: python3 -m pip install --upgrade build && python3 -m build
|
- run: apt-get -y update && apt-get -y install python3-pip python3-build
|
||||||
|
- run: python3 -m build
|
||||||
- name: Publish package
|
- name: Publish package
|
||||||
uses: https://github.com/pypa/gh-action-pypi-publish@release/v1
|
uses: https://github.com/pypa/gh-action-pypi-publish@release/v1
|
||||||
with:
|
with:
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -23,7 +23,7 @@ setup(
|
||||||
install_requires = ['lxml', 'bs4', 'python-dateutil', 'chardet'],
|
install_requires = ['lxml', 'bs4', 'python-dateutil', 'chardet'],
|
||||||
extras_require = {
|
extras_require = {
|
||||||
'full': ['redis', 'diskcache', 'gunicorn', 'setproctitle'],
|
'full': ['redis', 'diskcache', 'gunicorn', 'setproctitle'],
|
||||||
'dev': ['pylint', 'pytest', 'pytest-cov'],
|
'dev': ['pylint', 'pyenchant', 'pytest', 'pytest-cov'],
|
||||||
},
|
},
|
||||||
python_requires = '>=2.7',
|
python_requires = '>=2.7',
|
||||||
package_data = {package_name: ['feedify.ini']},
|
package_data = {package_name: ['feedify.ini']},
|
||||||
|
|
Loading…
Reference in New Issue