diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 779e4c9..3164063 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -51,7 +51,7 @@ jobs: - name: Coveralls run: coveralls env: - COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} coveralls-finish: name: Coveralls finish @@ -65,7 +65,7 @@ jobs: - name: Coveralls Finished run: coveralls --finish env: - GITHUB_TOKEN: ${{ secrets.PAT }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} release: name: Github Release diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 780c634..cff7de7 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -22,7 +22,7 @@ jobs: - name: Create distributions run: make dist - name: Publish a Python distribution to PyPI - uses: pypa/gh-action-pypi-publish@release/v1.9 + uses: pypa/gh-action-pypi-publish@release/v1 with: user: __token__ password: ${{ secrets.PYPI_TOKEN }} diff --git a/.gitignore b/.gitignore index 7b02a2b..a6a4b5e 100644 --- a/.gitignore +++ b/.gitignore @@ -94,3 +94,6 @@ ENV/ # pytest .pytest_cache + +# python-makelib +activate.sh diff --git a/Makefile b/Makefile index 12f7499..34a9b1e 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ PYDEPS_COMMON = \ # Assert the python-makelib version -PYTHON_MAKELIB_VERSION_REQUIRED = 1.5.5 +PYTHON_MAKELIB_VERSION_REQUIRED = 2 # Ensure the python-makelib is installed diff --git a/README.md b/README.md index 81c2fee..81cbc30 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ from yhttp import Application from yhttp.ext.auth import install as auth_install -app = Application() +app = Application('0.1.0', 'foo') auth = auth_install(app) app.settings.merge(f''' auth: @@ -88,3 +88,8 @@ setup( ```bash myapp auth --help ``` + +## Contribution + +### python-makelib +Install [python-makelib](https://github.com/pylover/python-makelib). diff --git a/activate.sh b/activate.sh deleted file mode 120000 index 69e62ee..0000000 --- a/activate.sh +++ /dev/null @@ -1 +0,0 @@ -make/activate.sh \ No newline at end of file diff --git a/setup.py b/setup.py index ebd32eb..a138bab 100644 --- a/setup.py +++ b/setup.py @@ -18,7 +18,7 @@ dependencies = [ - 'yhttp >= 6.2, < 7', + 'yhttp >= 7, < 8', 'pyjwt', 'redis', ] diff --git a/tests/conftest.py b/tests/conftest.py index 9ed44bb..05c281b 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -8,7 +8,7 @@ @pytest.fixture def yapp(): - return Application() + return Application('0.1.0', 'foo') @pytest.fixture diff --git a/tests/test_cli.py b/tests/test_cli.py index dfbdf6f..c9761c4 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -5,7 +5,7 @@ from yhttp.ext.auth import install -app = Application() +app = Application('0.1.0', 'foo') authorize = install(app)