Skip to content

Commit

Permalink
Move manifest into pyproject.toml package-data
Browse files Browse the repository at this point in the history
Also change pypi build to use hynek/build-and-inspect-python-package to
hopefully avoid this happening again
  • Loading branch information
radiac committed Aug 27, 2024
1 parent b9b37fb commit b9533a0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 17 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,10 @@ jobs:
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --upgrade setuptools build wheel
- name: Build a binary wheel and a source tarball
run: |
python -m build
- name: Build and check package
uses: hynek/build-and-inspect-python-package@v2
- name: Publish to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
2 changes: 0 additions & 2 deletions MANIFEST.in

This file was deleted.

8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ Changelog = "https://django-tagulous.readthedocs.io/en/latest/changelog.html"
Repository = "https://github.com/radiac/django-tagulous"
Issues = "https://github.com/radiac/django-tagulous/issues"

[tool.setuptools]
include-package-data = true

[tool.setuptools.packages.find]
include = ["tagulous*"]
exclude = ["docs*", "tests*", "examples*", "src*", "dist*"]
exclude = ["docs*", "tests*", "examples*", "dist*"]

[tool.setuptools.package-data]
tagulous = ["static/**/*", "templates/**/*"]

[tool.setuptools.dynamic]
version = {attr = "tagulous.__version__"}
Expand Down
2 changes: 1 addition & 1 deletion tagulous/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
Django Tagulous - Fabulous Tags
"""

__version__ = "2.0.0"
__version__ = "2.1.0-rc1"
__license__ = "BSD"
__author__ = "Richard Terry"

0 comments on commit b9533a0

Please sign in to comment.