diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 04e2143..fa18140 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -8,9 +8,9 @@ jobs: deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: '3.9' - name: Install Dependencies @@ -18,10 +18,10 @@ jobs: sudo apt-get install pandoc python -m pip install --upgrade pip pip install pypandoc - pip install -r requirements.txt + pip install -e ".[dev,test]" - name: Test Package run: | - python setup.py test + python -m unittest - name: Build Package run: | python setup.py bdist_wheel sdist diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e7b49be..2158f10 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,24 +11,24 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ ubuntu-20.04, macos-latest ] + os: [ ubuntu-latest, macos-latest ] python-version: [ 3.8, 3.9 ] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version}} - name: Install Dependencies run: | python -m pip install --upgrade pip - pip install -r requirements.txt + pip install -e ".[dev,test]" - name: Lint with PyCodeStyle run: | pycodestyle . - name: Run Unit Tests run: | - python setup.py test + python -m unittest - name: Build a Wheel run: | python setup.py bdist_wheel diff --git a/README.md b/README.md index 43fd2ed..a792a80 100644 --- a/README.md +++ b/README.md @@ -117,7 +117,7 @@ $ make html First install the development requirements by running: ``` -$ pip install -r requirements.txt +pip install -e ".[dev,test]" ``` After you've installed the requirements, decide on the development work you diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index a721f22..0000000 --- a/requirements.txt +++ /dev/null @@ -1,11 +0,0 @@ -behave == 1.2.5 -coverage == 4.4.1 -psutil >= 5.2.2 -pycodestyle >= 2.3.1 -setuptools -six -sphinx == 1.4.8 -sphinx-argparse == 0.1.15 -sphinx_rtd_theme == 0.2.4 -sphinxcontrib-napoleon == 0.5.3 -wheel diff --git a/setup.cfg b/setup.cfg index fcad35f..22f5e1c 100644 --- a/setup.cfg +++ b/setup.cfg @@ -11,3 +11,19 @@ universal = 1 [behave] color = True summary = True + +[options.extras_require] + dev = + behave==1.2.5 + coverage==4.4.1 + psutil>=5.2.2 + pycodestyle>=2.3.1 + setuptools>=70.2.0 + six + sphinx==1.4.8 + sphinx-argparse==0.1.15 + sphinx_rtd_theme==0.2.4 + sphinxcontrib-napoleon==0.5.3 + wheel + test = + mock==2.0.0