Skip to content

Commit

Permalink
Merge pull request #25 from rstudio/install-requires
Browse files Browse the repository at this point in the history
  • Loading branch information
wch authored Mar 16, 2022
2 parents 323b697 + 83d4f21 commit fb8e485
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 13 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ jobs:
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
- name: Install
run: |
make install
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Install
run: |
make install
- name: Run unit tests
run: |
make test
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,5 @@ dist: clean ## builds source and wheel package
python3 setup.py bdist_wheel
ls -l dist

install: clean ## install the package to the active Python's site-packages
python3 setup.py install
install: dist ## install the package to the active Python's site-packages
python3 -m pip install --force-reinstall dist/htmltools*.whl
10 changes: 5 additions & 5 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
black==21.9b0
flake8==3.9.2
pytest==6.2.4
pre-commit==2.15.0
snapshottest==0.6.0
black>=21.9b0
flake8>=3.9.2
pytest>=6.2.4
pre-commit>=2.15.0
snapshottest>=0.6.0
wheel
3 changes: 0 additions & 3 deletions requirements.txt

This file was deleted.

6 changes: 6 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
[flake8]
ignore = E203, E302, E402, E501, F403, F405, W503

[options]
install_requires =
typing_extensions>=3.10.0.0
packaging>=20.9
ipython>=7.31.1

0 comments on commit fb8e485

Please sign in to comment.