Skip to content

Commit

Permalink
Add sample app and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
christianwgd committed Dec 29, 2021
1 parent 325b0eb commit dec3d30
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 7 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@

<!-- GENERATOR_PLACEHOLDER -->

## 0.7.5

## Changed
- Include sample app in repository
- Added basic tests
- Moved release information to CHANGELOG.md

### Fixed
- Replace blanks in cache file names with underscores

## 0.7.4

### Updated
Expand Down
5 changes: 4 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
include LICENSE
include README.md
recursive-include django_bootstrap_icons/static *
recursive-exclude django_bootstrap_icons_sample
exclude manage.py
exclude CHANGELOG.md
exclude sample-app-result.png
recursive-exclude django_bootstrap_icons_sample
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,4 +214,20 @@ This project is licensed under the MIT License - see the
* Thanks to [Material Design Icons](https://google.github.io/material-design-icons/)!

## Releases
- see CHANGELOG.md
- see CHANGELOG.md

## Run the sample app
```
git clone https://github.com/christianwgd/django-bootstrap-icons.git
cd django-bootstrap-icons
<create a virtual environment with your preferred tooling (virtualenv/venv/pipenv)
pip install -U -r requirements.txt
python manage.py migrate
python manage.py runserver
```

## Run the tests
Setup the sample app (see above)
```
python manage.py test
```
5 changes: 0 additions & 5 deletions django_bootstrap_icons_sample/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@
# https://docs.djangoproject.com/en/3.2/howto/static-files/

STATIC_ROOT = os.path.join(BASE_DIR, 'django_bootstrap_icons_sample/static')
print(STATIC_ROOT)
STATIC_URL = '/static/'

# Default primary key field type
Expand All @@ -145,7 +144,3 @@
<path d="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"/>\
</svg>'
BS_ICONS_CUSTOM_PATH = 'custom-icons'

BS_ICONS_BASE_URL = 'https://cdn.jsdelivr.net/npm/[email protected]/'


0 comments on commit dec3d30

Please sign in to comment.