diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 6eb69c5..8c60245 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -19,7 +19,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip setuptools - python -m pip install -r requires/lint.txt + python -m pip install '.[ci]' - name: Flake8 run: | flake8 sprockets tests.py @@ -37,7 +37,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip setuptools - python -m pip install -r requires/testing.txt + python -m pip install '.[ci]' python -m pip install -e '.[msgpack]' - name: Dump packages run: python -m pip freeze @@ -48,7 +48,7 @@ jobs: coverage xml -o ./coverage.xml - name: Send coverage data to codecov.io uses: codecov/codecov-action@v1.3.2 - if: github.event_name == 'push' + if: github.event_name == 'push' && github.repository == 'sprockets/sprockets.mixins.media_type' with: file: ./coverage.xml flags: unittests diff --git a/CONTRIBUTING b/CONTRIBUTING index 4ad338a..c937ef9 100644 --- a/CONTRIBUTING +++ b/CONTRIBUTING @@ -18,7 +18,7 @@ you you don't have a choice. That is why we run our tests using tox. The next step is to install the development tools that this project uses. These are listed in *requires/development.txt*:: - $ env/bin/pip install -qr requires/development.txt + $ env/bin/pip install '.[dev]' At this point, you will have everything that you need to develop at your disposal. Use the unittest runner to run the test suite or the coverage @@ -45,7 +45,7 @@ tool chest. It provides the following commands: **./setup.py build_sphinx** Generate the documentation using sphinx. -**./setup.py flake8** +**flake8 sprockets tests.py** Run flake8 over the code and report style violations. If any of the preceding commands give you problems, then you will have to diff --git a/requires/development.txt b/requires/development.txt deleted file mode 100644 index f6ea5a6..0000000 --- a/requires/development.txt +++ /dev/null @@ -1,4 +0,0 @@ --e .[msgpack] --r docs.txt --r lint.txt --r testing.txt diff --git a/requires/docs.txt b/requires/docs.txt deleted file mode 100644 index 3c555e5..0000000 --- a/requires/docs.txt +++ /dev/null @@ -1,2 +0,0 @@ -sphinx==4.2.0 -sphinxcontrib-httpdomain==1.7.0 diff --git a/requires/installation.txt b/requires/installation.txt deleted file mode 100644 index 0fbae78..0000000 --- a/requires/installation.txt +++ /dev/null @@ -1,2 +0,0 @@ -ietfparse>=1.5.1,<2 -tornado>=5,<7 diff --git a/requires/lint.txt b/requires/lint.txt deleted file mode 100644 index 694f7a4..0000000 --- a/requires/lint.txt +++ /dev/null @@ -1 +0,0 @@ -flake8==3.9.2 diff --git a/requires/testing.txt b/requires/testing.txt deleted file mode 100644 index 1500af8..0000000 --- a/requires/testing.txt +++ /dev/null @@ -1,2 +0,0 @@ -coverage==5.5 -tox==3.24.3 diff --git a/setup.cfg b/setup.cfg index 6638b6a..fa30768 100644 --- a/setup.cfg +++ b/setup.cfg @@ -36,7 +36,7 @@ install_requires = [options.extras_require] msgpack = u-msgpack-python>=2.5.0,<3 -testing = +ci = coverage==5.5 flake8==3.9.2 dev =