diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 2b1e40f..b72a5db 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -10,7 +10,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: "3.x" - name: Install pypa/build @@ -22,7 +22,7 @@ jobs: - name: Build a binary wheel and a source tarball run: python3 -m build - name: Store the distribution packages - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: python-package-distributions path: dist/ @@ -42,7 +42,7 @@ jobs: steps: - name: Download all the dists - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: python-package-distributions path: dist/ @@ -63,12 +63,12 @@ jobs: steps: - name: Download all the dists - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: python-package-distributions path: dist/ - name: Sign the dists with Sigstore - uses: sigstore/gh-action-sigstore-python@v1.2.3 + uses: sigstore/gh-action-sigstore-python@v2.1.1 with: inputs: >- ./dist/*.tar.gz diff --git a/.github/workflows/sphinx.yml b/.github/workflows/sphinx.yml index 98940bf..f63907f 100644 --- a/.github/workflows/sphinx.yml +++ b/.github/workflows/sphinx.yml @@ -13,7 +13,7 @@ jobs: with: publish: false documentation_path: ./docs/source - - uses: peaceiris/actions-gh-pages@v3 + - uses: peaceiris/actions-gh-pages@v4 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ${{ steps.deployment.outputs.artifact }} diff --git a/pyproject.toml b/pyproject.toml index 83c6f1d..432cd8e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,6 +15,14 @@ classifiers = [ "Programming Language :: Python :: 3", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Operating System :: OS Independent", + "Programming Language :: Python :: 3 :: Only", + "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", + "Intended Audience :: Developers", + "Intended Audience :: Financial and Insurance Industry", + "Natural Language :: English", + "Topic :: Office/Business :: Financial :: Investment", + "Topic :: Software Development :: Libraries :: Python Modules", + "Topic :: Software Development :: Libraries", ] keywords = ["bse", "bse-stock-data", "stock-market-api", "stock-news-api"] dependencies = ["requests>=2.31.0", "mthrottle>=0.0.1"] @@ -22,3 +30,9 @@ dependencies = ["requests>=2.31.0", "mthrottle>=0.0.1"] [project.urls] "Homepage" = "https://github.com/BennyThadikaran/BseIndiaApi" "Bug Tracker" = "https://github.com/BennyThadikaran/BseIndiaApi/issues" + +[tool.hatch.build.targets.sdist] +exclude = ["docs", "tests", ".github", "src/samples", "src/examples"] + +[tool.hatch.build.targets.wheel] +exclude = ["docs", "tests", ".github", "src/samples", "src/examples"] diff --git a/src/examples/get_all_announcements.py b/src/examples/get_all_announcements.py index d8ce2ab..8c31e84 100644 --- a/src/examples/get_all_announcements.py +++ b/src/examples/get_all_announcements.py @@ -28,7 +28,7 @@ ann.extend(res['Table']) - if len(ann) == total_count: + if len(ann) >= total_count: break # Next two line are optional and prints percent completion status