-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from moshthepitt/add-django-model-reviews
Add django model reviews
- Loading branch information
Showing
45 changed files
with
2,918 additions
and
2,424 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
name-template: v$NEXT_PATCH_VERSION | ||
tag-template: v$NEXT_PATCH_VERSION | ||
template: | | ||
## What’s Changed | ||
$CHANGES |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
exclude: '/snapshots/' | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v3.1.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,3 +20,5 @@ black | |
pre-commit | ||
mypy | ||
tblib | ||
snapshottest | ||
freezegun |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,56 @@ | ||
""" | ||
Setup.py for small_small_hr | ||
""" | ||
from os import path | ||
"""Setup.py for small_small_hr.""" | ||
import os | ||
import sys | ||
|
||
from setuptools import find_packages, setup | ||
|
||
import small_small_hr as sshr | ||
|
||
# read the contents of your README file | ||
with open( | ||
path.join(path.abspath(path.dirname(__file__)), "README.md"), | ||
encoding="utf-8") as f: | ||
os.path.join(os.path.abspath(os.path.dirname(__file__)), "README.md"), | ||
encoding="utf-8", | ||
) as f: | ||
LONG_DESCRIPTION = f.read() | ||
|
||
# convenience command to publish | ||
if sys.argv[-1] == "publish": | ||
if os.system("pip freeze | grep twine"): | ||
print("twine not installed.\nUse `pip install twine`.\nExiting.") | ||
sys.exit() | ||
os.system("rm -rf build/ *.egg-info/") | ||
os.system("python setup.py sdist bdist_wheel") | ||
os.system("twine upload dist/* --skip-existing") | ||
print("You probably want to also tag the version now:") | ||
print(f" git tag -a v{sshr.__version__} -m 'version {sshr.__version__}'") | ||
print(" git push --tags") | ||
sys.exit() | ||
|
||
setup( | ||
name="small-small-hr", | ||
version=__import__("small_small_hr").__version__, | ||
version=sshr.__version__, | ||
description="Minimal human resource management app for Django", | ||
long_description=LONG_DESCRIPTION, | ||
long_description_content_type="text/markdown", | ||
license="MIT", | ||
author="Kelvin Jayanoris", | ||
author_email="[email protected]", | ||
url="https://github.com/moshthepitt/small-small-hr", | ||
packages=find_packages(exclude=["docs", "tests"]), | ||
packages=find_packages(exclude=["docs", "*.egg-info", "build", "tests.*", "tests"]), | ||
install_requires=[ | ||
"Django >= 2.0.11", | ||
"Django >= 2.2", | ||
"voluptuous", | ||
"psycopg2-binary", | ||
"sorl-thumbnail", | ||
"django-private-storage", | ||
"django-model-reviews", | ||
"phonenumberslite", | ||
"django-phonenumber-field", | ||
"django-crispy-forms", | ||
"djangorestframework", | ||
"sorl-thumbnail", | ||
"Pillow", | ||
"django-mptt", | ||
], | ||
classifiers=[ | ||
"Programming Language :: Python", | ||
|
@@ -44,4 +61,5 @@ | |
"Framework :: Django :: 2.2", | ||
"Framework :: Django :: 3.0", | ||
], | ||
include_package_data=True, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
""" | ||
Main init file for small_small_hr | ||
""" | ||
VERSION = (0, 1, 9) | ||
"""Main init file for small_small_hr.""" | ||
VERSION = (0, 2, 0) | ||
__version__ = ".".join(str(v) for v in VERSION) | ||
# pylint: disable=invalid-name | ||
default_app_config = "small_small_hr.apps.SmallSmallHrConfig" # noqa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
"""Constants.""" | ||
HOURS = "hours" | ||
MINUTES = "minutes" | ||
STAFF = "staff" | ||
OVERTIME_APPLICATION_EMAIL_TEMPLATE = "overtime_application" | ||
OVERTIME_COMPLETED_EMAIL_TEMPLATE = "overtime_completed" | ||
LEAVE_APPLICATION_EMAIL_TEMPLATE = "leave_application" | ||
LEAVE_COMPLETED_EMAIL_TEMPLATE = "leave_completed" | ||
EMAIL_TEMPLATE_PATH = "small_small_hr/email" |
Oops, something went wrong.