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 <thu@joinmodernhealth.com>
main
Thu Trang Pham 2021-01-21 13:38:34 -08:00 committed by GitHub
parent ea1e882f32
commit 591aa48ba0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 3 deletions

View File

@ -1,2 +1 @@
include *.rst recursive-include admin-confirm *
recursive-include admin-confirm/*

View File

@ -22,3 +22,6 @@ package:
upload-testpypi: upload-testpypi:
python3 -m twine upload --repository testpypi dist/django_admin_confirm-$(VERSION)* 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)*

View File

@ -6,7 +6,7 @@ README = open(os.path.join(here, "README.md")).read()
setup( setup(
name="django-admin-confirm", name="django-admin-confirm",
version="0.2", version="0.2.1",
packages=["admin_confirm"], packages=["admin_confirm"],
description="Adds confirmation to Django Admin changes, additions and actions", description="Adds confirmation to Django Admin changes, additions and actions",
long_description_content_type="text/markdown", long_description_content_type="text/markdown",
@ -22,4 +22,8 @@ setup(
project_urls={ project_urls={
"Release Notes": "https://github.com/TrangPham/django-admin-confirm/releases", "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,
) )