From 591aa48ba0bfaf5f0a41b98f1c65a27ff176bf99 Mon Sep 17 00:00:00 2001 From: Thu Trang Pham Date: Thu, 21 Jan 2021 13:38:34 -0800 Subject: [PATCH] fix(ISSUE-4): pip install missing templates (#5) * feat(ISSUE-4): fix(ISSUE-4): missing template and css files in package * feat(ISSUE-4): chore: add makefile command to upload to pypi Co-authored-by: Thu Trang Pham --- MANIFEST.in | 3 +-- Makefile | 3 +++ setup.py | 6 +++++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/MANIFEST.in b/MANIFEST.in index da2b519..0bee47e 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,2 +1 @@ -include *.rst -recursive-include admin-confirm/* \ No newline at end of file +recursive-include admin-confirm * diff --git a/Makefile b/Makefile index c541d1b..9aa3455 100644 --- a/Makefile +++ b/Makefile @@ -22,3 +22,6 @@ package: upload-testpypi: python3 -m twine upload --repository testpypi dist/django_admin_confirm-$(VERSION)* + +i-have-tested-with-testpypi-and-am-ready-to-release: + python3 -m twine upload --repository pypi dist/django_admin_confirm-$(VERSION)* diff --git a/setup.py b/setup.py index d50196b..9c95ef2 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ setup( name="django-admin-confirm", - version="0.2", + version="0.2.1", packages=["admin_confirm"], description="Adds confirmation to Django Admin changes, additions and actions", long_description_content_type="text/markdown", @@ -22,4 +22,8 @@ project_urls={ "Release Notes": "https://github.com/TrangPham/django-admin-confirm/releases", }, + # ISSUE-4: Ensure that package includes template and css folders + # list files in MANIFEST.in + include_package_data=True, + )