Skip to content
Snippets Groups Projects
Commit 91274a3a authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Merge branch 'update-meta' into 'master'

Update meta information

See merge request !2
parents f7e2b980 1f4984aa
No related branches found
No related tags found
1 merge request!2Update meta information
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## Unreleased
## 1.1
### Added
- Add changelog
### Changed
- Use poetry as packaging system and replace ``setup.py`` with ``pyproject.toml``.
### Removed
- Remove support for Django versions below 2.2.
## 1.0.3.post1
### Changed
- Relicence under Apache License 2.0.
- Move repository to AlekSIS group on edugit.org.
## 1.0.3.post0
### Fixed
- Add missing instructions in README.rst.
## 1.0.3
### Fixed
- Replace ``Context`` objects with plain dictionaries in template tag code.
## 1.0.2
### Fixed
- Include template tags in package distribution.
- Fix dictionary lookup in template tags.
## 1.0
### Added
- Add template tags to readably include JavaScript/CSS files in templates.
include LICENCE
recursive-include django_any_js/templates *
......@@ -15,21 +15,21 @@ In your settings:
::
INSTALLED_APPS = [
...,
'django_any_js',
...
]
...,
"django_any_js",
...,
]
ANY_JS = {
'DataTables': {
'js_url': '/javascript/jquery-datatables/dataTables.bootstrap4.min.js',
'css_url': '/javascript/jquery-datatables/css/dataTables.bootstrap4.min.css'
}
}
"DataTables": {
"js_url": "/javascript/jquery-datatables/dataTables.bootstrap4.min.js",
"css_url": "/javascript/jquery-datatables/css/dataTables.bootstrap4.min.css",
}
}
In your template:
::
{% load ... any_js %}
{% load any_js %}
{% include_js "DataTables" %}
{% include_css "DataTables" %}
[tool.poetry]
name = "django-any-js"
version = "1.1"
description = "Include JavaScript/CSS libraries with readable template tags"
authors = ["Dominik George <dominik.george@teckids.org>"]
maintainers = ["Dominik George <dominik.george@teckids.org>", "Jonathan Weth <dev@jonathanweth.de>"]
license = "Apache-2.0"
repository = "https://edugit.org/AlekSIS/libs/django-any-js"
include = ["CHANGELOG.rst", "LICENCE"]
readme = "README.rst"
classifiers = [
"Environment :: Web Environment",
"Framework :: Django",
"Framework :: Django :: 2.2",
"Framework :: Django :: 3.0",
"Framework :: Django :: 3.1",
"Framework :: Django :: 3.2",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
]
[tool.poetry.dependencies]
python = "^3.7"
Django = ">=2.2, <4.0"
[tool.poetry.dev-dependencies]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
import os
from setuptools import setup
MYDIR = os.path.dirname(__file__)
setup(
name='django-any-js',
version='1.0.3.post1',
keywords=['django', 'javascript'],
description='Include JavaScript libraries with readable template tags',
long_description=open(os.path.join(MYDIR, "README.rst"),
"r", encoding="utf-8").read(),
url='https://edugit.org/AlekSIS/libs/django-any-js',
author='Dominik George',
author_email='dominik.george@teckids.org',
packages=['django_any_js', 'django_any_js.templatetags'],
include_package_data=True,
install_requires=['Django>=1.11'],
classifiers=[
'Environment :: Web Environment',
'Framework :: Django',
'Framework :: Django :: 1.11',
'Framework :: Django :: 2.0',
'Framework :: Django :: 2.1',
'Framework :: Django :: 2.2',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
],
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment