Lots of helper functions and useful widgets.
Project description
Overview:
This package contains various useful helper functions.
Installation:
-
Add a requirement to your requirements.txt:
ai-django-core
-
Add module to
INSTALLED_APPS
:ai
-
Run migrations
Contribute
-
Clone the project locally
-
Create a new branch for your feature
-
Change the dependency in your requirements.txt to a local (editable) one that points to your local file system:
-e /Users/felix/Documents/workspace/ai-django-core
-
Ensure the code passes the tests
-
Run:
python setup.py develop
-
Create a pull request
Publish to PyPi
-
Increment version in main
__init__.py
-
Update
Changelog
inReadme.md
-
Create pull request / merge to master
-
Run:
- Make sure you have all the required packages installed
pip install twine wheel
- Create a file in your home directory:
~/.pypirc
[distutils] index-servers= pypi testpypi [pypi] repository: https://upload.pypi.org/legacy/ username: ambient-innovation [testpypi] repository: https://test.pypi.org/legacy/ username: ambient-innovation
- Empty
dist
directory - Create distribution
python setup.py sdist bdist_wheel
- Upload to Test-PyPi
twine upload --repository testpypi dist/*
- Check at Test-PyPi if it looks nice
- Upload to real PyPi
twine upload dist/*
- Make sure you have all the required packages installed
Tests
-
Check coverage
pytest --cov=ai-django-core
-
Run tests
pytest
Changelog
-
1.2.7 (2019-07-11)
- Added email testing class
EmailTestService
to provide a wrapper for better email unittests
- Added email testing class
-
1.2.6 (2019-07-02)
- Added helper class
tz_today()
to provide an easy getter for a timezone-aware today
- Added helper class
-
1.2.5 (2019-06-25)
- Added helper class
DateHelper
to provide constants to use in djangos ORM lookup__week_day
- Added helper class
-
1.2.4 (2019-05-20)
- More refactoring on
CurrentUserMiddleware
to make it more easy to override internal functions
- More refactoring on
-
1.2.3 (2019-05-20)
- Moved
get_current_user
function insideCurrentUserMiddleware
as a static method to enable devs to override it
- Moved
-
1.2.2 (2019-04-05)
- Updated deployment documentation
- Added markdown support to Readme file
-
1.2.1 (2019-03-25)
- Fixed bug causing
CommonInfo
middleware to not setlastmodified_by
on object creation
- Fixed bug causing
-
1.2.0 (2019-03-19)
- Added
CommonInfo
middleware
- Added
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for ai_django_core-1.2.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cefa8f3af70e49ec3d2b445c3fb60488f1a54dbd8201dbaa36282c46b0b786a3 |
|
MD5 | f0ad0b52588a8b014227c006b7ace034 |
|
BLAKE2b-256 | 19c48e8f44f62d341b9115287485bdf0a5f359fac1d14ebd41ebafc4c84cf197 |