django-service 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- django_service-0.1.0/.pre-commit-config.yaml +48 -0
- django_service-0.1.0/CODEOWNERS +2 -0
- django_service-0.1.0/CONTRIBUTING.md +3 -0
- django_service-0.1.0/LICENSE +21 -0
- django_service-0.1.0/MANIFEST.in +15 -0
- django_service-0.1.0/PKG-INFO +122 -0
- django_service-0.1.0/README.md +58 -0
- django_service-0.1.0/mkdocs.yml +70 -0
- django_service-0.1.0/pyproject.toml +154 -0
- django_service-0.1.0/requirements/py310-django32.txt +26 -0
- django_service-0.1.0/requirements/py310-django42.txt +22 -0
- django_service-0.1.0/requirements/py311-django32.txt +22 -0
- django_service-0.1.0/requirements/py311-django42.txt +18 -0
- django_service-0.1.0/requirements/py38-django32.txt +26 -0
- django_service-0.1.0/requirements/py38-django42.txt +40 -0
- django_service-0.1.0/requirements/py39-django32.txt +26 -0
- django_service-0.1.0/requirements/py39-django42.txt +22 -0
- django_service-0.1.0/requirements/requirements.in +8 -0
- django_service-0.1.0/runtests.py +52 -0
- django_service-0.1.0/setup.cfg +4 -0
- django_service-0.1.0/setup.py +57 -0
- django_service-0.1.0/src/django_service.egg-info/PKG-INFO +122 -0
- django_service-0.1.0/src/django_service.egg-info/SOURCES.txt +44 -0
- django_service-0.1.0/src/django_service.egg-info/dependency_links.txt +1 -0
- django_service-0.1.0/src/django_service.egg-info/requires.txt +16 -0
- django_service-0.1.0/src/django_service.egg-info/top_level.txt +1 -0
- django_service-0.1.0/src/services/__init__.py +20 -0
- django_service-0.1.0/src/services/admin.py +80 -0
- django_service-0.1.0/src/services/apps.py +8 -0
- django_service-0.1.0/src/services/context_processors.py +36 -0
- django_service-0.1.0/src/services/migrations/0001_initial.py +352 -0
- django_service-0.1.0/src/services/migrations/__init__.py +0 -0
- django_service-0.1.0/src/services/models.py +79 -0
- django_service-0.1.0/src/services/sitemaps.py +25 -0
- django_service-0.1.0/src/services/static/js/service.js +25 -0
- django_service-0.1.0/src/services/templates/services/service_detail.html +242 -0
- django_service-0.1.0/src/services/templates/services/servicecategory_detail.html +73 -0
- django_service-0.1.0/src/services/templates/services/social.html +4 -0
- django_service-0.1.0/src/services/translation.py +33 -0
- django_service-0.1.0/src/services/urls.py +20 -0
- django_service-0.1.0/src/services/views.py +128 -0
- django_service-0.1.0/tests/__init__.py +0 -0
- django_service-0.1.0/tests/settings.py +70 -0
- django_service-0.1.0/tests/test_fake.py +24 -0
- django_service-0.1.0/tests/urls.py +14 -0
- django_service-0.1.0/tox.ini +47 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
repos:
|
|
2
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
3
|
+
rev: v4.4.0
|
|
4
|
+
hooks:
|
|
5
|
+
- id: check-added-large-files
|
|
6
|
+
- id: check-case-conflict
|
|
7
|
+
- id: check-json
|
|
8
|
+
- id: check-merge-conflict
|
|
9
|
+
- id: check-symlinks
|
|
10
|
+
- id: check-toml
|
|
11
|
+
- id: end-of-file-fixer
|
|
12
|
+
- id: trailing-whitespace
|
|
13
|
+
exclude: .bumpversion.cfg
|
|
14
|
+
- repo: https://github.com/asottile/pyupgrade
|
|
15
|
+
rev: v3.10.1
|
|
16
|
+
hooks:
|
|
17
|
+
- id: pyupgrade
|
|
18
|
+
args: [--py36-plus]
|
|
19
|
+
- repo: https://github.com/psf/black
|
|
20
|
+
rev: 23.7.0
|
|
21
|
+
hooks:
|
|
22
|
+
- id: black
|
|
23
|
+
- repo: https://github.com/asottile/blacken-docs
|
|
24
|
+
rev: 1.15.0
|
|
25
|
+
hooks:
|
|
26
|
+
- id: blacken-docs
|
|
27
|
+
additional_dependencies:
|
|
28
|
+
- black>=22.12.0
|
|
29
|
+
- repo: https://github.com/pycqa/isort
|
|
30
|
+
rev: 5.12.0
|
|
31
|
+
hooks:
|
|
32
|
+
- id: isort
|
|
33
|
+
args: ["--profile", "black"]
|
|
34
|
+
- repo: https://github.com/PyCQA/flake8
|
|
35
|
+
rev: 6.1.0
|
|
36
|
+
hooks:
|
|
37
|
+
- id: flake8
|
|
38
|
+
additional_dependencies:
|
|
39
|
+
- flake8-bugbear
|
|
40
|
+
- flake8-comprehensions
|
|
41
|
+
- flake8-tidy-imports
|
|
42
|
+
- flake8-typing-imports
|
|
43
|
+
- repo: https://github.com/mgedmin/check-manifest
|
|
44
|
+
rev: "0.49"
|
|
45
|
+
hooks:
|
|
46
|
+
- id: check-manifest
|
|
47
|
+
args: [--no-build-isolation]
|
|
48
|
+
additional_dependencies: ["Django>=3.2"]
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2010-present DLRSP (https://dlrsp.org) and other contributors.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
include *.py
|
|
2
|
+
include *.rst
|
|
3
|
+
include *.md
|
|
4
|
+
include *.yaml
|
|
5
|
+
include *.yml
|
|
6
|
+
include *.cfg
|
|
7
|
+
include tox.ini
|
|
8
|
+
include LICENSE
|
|
9
|
+
include CODEOWNERS
|
|
10
|
+
|
|
11
|
+
recursive-include requirements *.in *.txt
|
|
12
|
+
recursive-exclude requirements *.py
|
|
13
|
+
recursive-include src *.py *.html *.css *.js *.po *.mo *.gif *.png
|
|
14
|
+
recursive-include tests *.py
|
|
15
|
+
recursive-exclude docs *
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: django-service
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Django application provide simple category/service details
|
|
5
|
+
Author-email: DLRSP <dlrsp.dev@gmail.com>
|
|
6
|
+
License: MIT License
|
|
7
|
+
|
|
8
|
+
Copyright (c) 2010-present DLRSP (https://dlrsp.org) and other contributors.
|
|
9
|
+
|
|
10
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
11
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
12
|
+
in the Software without restriction, including without limitation the rights
|
|
13
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
14
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
15
|
+
furnished to do so, subject to the following conditions:
|
|
16
|
+
|
|
17
|
+
The above copyright notice and this permission notice shall be included in all
|
|
18
|
+
copies or substantial portions of the Software.
|
|
19
|
+
|
|
20
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
21
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
22
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
23
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
24
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
25
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
26
|
+
SOFTWARE.
|
|
27
|
+
|
|
28
|
+
Keywords: django,services
|
|
29
|
+
Classifier: Development Status :: 4 - Beta
|
|
30
|
+
Classifier: Intended Audience :: Developers
|
|
31
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
32
|
+
Classifier: Programming Language :: Python :: 3
|
|
33
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
34
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
35
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
36
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
37
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
38
|
+
Classifier: Framework :: Django
|
|
39
|
+
Classifier: Framework :: Django :: 4.2
|
|
40
|
+
Classifier: Environment :: Web Environment
|
|
41
|
+
Classifier: Operating System :: OS Independent
|
|
42
|
+
Classifier: Topic :: Internet :: WWW/HTTP
|
|
43
|
+
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
|
|
44
|
+
Classifier: Topic :: Internet :: WWW/HTTP :: WSGI :: Application
|
|
45
|
+
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
|
|
46
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
47
|
+
Requires-Python: >=3.8
|
|
48
|
+
Description-Content-Type: text/markdown
|
|
49
|
+
License-File: LICENSE
|
|
50
|
+
Requires-Dist: django
|
|
51
|
+
Requires-Dist: django-filer
|
|
52
|
+
Requires-Dist: django-filer-optimizer
|
|
53
|
+
Requires-Dist: django-modeltranslation
|
|
54
|
+
Requires-Dist: django-model-mixin
|
|
55
|
+
Requires-Dist: django-ordered-model
|
|
56
|
+
Requires-Dist: django-taggit==4.0.0
|
|
57
|
+
Requires-Dist: django-hashtag
|
|
58
|
+
Provides-Extra: test
|
|
59
|
+
Requires-Dist: coverage; extra == "test"
|
|
60
|
+
Requires-Dist: codecov; extra == "test"
|
|
61
|
+
Provides-Extra: lint
|
|
62
|
+
Requires-Dist: black; extra == "lint"
|
|
63
|
+
Requires-Dist: flake8; extra == "lint"
|
|
64
|
+
|
|
65
|
+
# django-service [](https://pypi.python.org/pypi/django-service)
|
|
66
|
+
|
|
67
|
+
[](https://pypi.python.org/pypi/django-service)
|
|
68
|
+
[](https://pypi.python.org/pypi/django-service)
|
|
69
|
+
[](https://pypi.python.org/pypi/django-service)
|
|
70
|
+
[](https://pypi.python.org/pypi/django-service)
|
|
71
|
+
[](https://pypi.python.org/pypi/django-service)
|
|
72
|
+
[](https://pypi.python.org/pypi/django-service)
|
|
73
|
+
|
|
74
|
+
## GitHub  
|
|
75
|
+
|
|
76
|
+
## Test [](https://codecov.io/github/DLRSP/django-service?branch=main) [](https://results.pre-commit.ci/latest/github/DLRSP/django-service/main) [](https://github.com/DLRSP/django-service/actions/workflows/ci.yaml)
|
|
77
|
+
|
|
78
|
+
## Check Demo Project
|
|
79
|
+
|
|
80
|
+
- Check the demo repo on [GitHub](https://github.com/DLRSP/example/tree/django-service)
|
|
81
|
+
|
|
82
|
+
## Requirements
|
|
83
|
+
|
|
84
|
+
- Python 3.8+ supported.
|
|
85
|
+
- Django 4.2+ supported.
|
|
86
|
+
|
|
87
|
+
## Setup
|
|
88
|
+
1. Install from **pip**:
|
|
89
|
+
```shell
|
|
90
|
+
pip install django-services
|
|
91
|
+
```
|
|
92
|
+
2. Modify `settings.py` by adding the app to `INSTALLED_APPS`:
|
|
93
|
+
```python
|
|
94
|
+
INSTALLED_APPS = (
|
|
95
|
+
# ...
|
|
96
|
+
"services",
|
|
97
|
+
# ...
|
|
98
|
+
)
|
|
99
|
+
```
|
|
100
|
+
3. Finally, modify your project `urls.py` with handlers for all errors:
|
|
101
|
+
```python
|
|
102
|
+
# ...other imports...
|
|
103
|
+
|
|
104
|
+
urlpatterns = [
|
|
105
|
+
# ...other urls...
|
|
106
|
+
]
|
|
107
|
+
```
|
|
108
|
+
4. Execute Django's command `migrate` inside your project's root:
|
|
109
|
+
```shell
|
|
110
|
+
python manage.py migrate
|
|
111
|
+
Running migrations:
|
|
112
|
+
Applying services.0001_initial... OK
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
## Run Example Project
|
|
116
|
+
```shell
|
|
117
|
+
git clone --depth=50 --branch=django-services https://github.com/DLRSP/example.git DLRSP/example
|
|
118
|
+
cd DLRSP/example
|
|
119
|
+
python manage.py runserver
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
Now browser the app @ http://127.0.0.1:8000
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# django-service [](https://pypi.python.org/pypi/django-service)
|
|
2
|
+
|
|
3
|
+
[](https://pypi.python.org/pypi/django-service)
|
|
4
|
+
[](https://pypi.python.org/pypi/django-service)
|
|
5
|
+
[](https://pypi.python.org/pypi/django-service)
|
|
6
|
+
[](https://pypi.python.org/pypi/django-service)
|
|
7
|
+
[](https://pypi.python.org/pypi/django-service)
|
|
8
|
+
[](https://pypi.python.org/pypi/django-service)
|
|
9
|
+
|
|
10
|
+
## GitHub  
|
|
11
|
+
|
|
12
|
+
## Test [](https://codecov.io/github/DLRSP/django-service?branch=main) [](https://results.pre-commit.ci/latest/github/DLRSP/django-service/main) [](https://github.com/DLRSP/django-service/actions/workflows/ci.yaml)
|
|
13
|
+
|
|
14
|
+
## Check Demo Project
|
|
15
|
+
|
|
16
|
+
- Check the demo repo on [GitHub](https://github.com/DLRSP/example/tree/django-service)
|
|
17
|
+
|
|
18
|
+
## Requirements
|
|
19
|
+
|
|
20
|
+
- Python 3.8+ supported.
|
|
21
|
+
- Django 4.2+ supported.
|
|
22
|
+
|
|
23
|
+
## Setup
|
|
24
|
+
1. Install from **pip**:
|
|
25
|
+
```shell
|
|
26
|
+
pip install django-services
|
|
27
|
+
```
|
|
28
|
+
2. Modify `settings.py` by adding the app to `INSTALLED_APPS`:
|
|
29
|
+
```python
|
|
30
|
+
INSTALLED_APPS = (
|
|
31
|
+
# ...
|
|
32
|
+
"services",
|
|
33
|
+
# ...
|
|
34
|
+
)
|
|
35
|
+
```
|
|
36
|
+
3. Finally, modify your project `urls.py` with handlers for all errors:
|
|
37
|
+
```python
|
|
38
|
+
# ...other imports...
|
|
39
|
+
|
|
40
|
+
urlpatterns = [
|
|
41
|
+
# ...other urls...
|
|
42
|
+
]
|
|
43
|
+
```
|
|
44
|
+
4. Execute Django's command `migrate` inside your project's root:
|
|
45
|
+
```shell
|
|
46
|
+
python manage.py migrate
|
|
47
|
+
Running migrations:
|
|
48
|
+
Applying services.0001_initial... OK
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Run Example Project
|
|
52
|
+
```shell
|
|
53
|
+
git clone --depth=50 --branch=django-services https://github.com/DLRSP/example.git DLRSP/example
|
|
54
|
+
cd DLRSP/example
|
|
55
|
+
python manage.py runserver
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
Now browser the app @ http://127.0.0.1:8000
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
site_name: django-services
|
|
2
|
+
site_url: https://github.com/DLRSP/django-service/
|
|
3
|
+
site_description: Django application provide simple category/services details
|
|
4
|
+
|
|
5
|
+
repo_name: DLRSP/django-services
|
|
6
|
+
repo_url: https://github.com/DLRSP/django-service/
|
|
7
|
+
|
|
8
|
+
theme:
|
|
9
|
+
name: 'material'
|
|
10
|
+
palette:
|
|
11
|
+
# - primary: 'black'
|
|
12
|
+
# - accent: 'indigo'
|
|
13
|
+
- scheme: default
|
|
14
|
+
toggle:
|
|
15
|
+
icon: material/weather-sunny
|
|
16
|
+
name: Switch to dark mode
|
|
17
|
+
- scheme: slate #
|
|
18
|
+
toggle:
|
|
19
|
+
icon: material/weather-night
|
|
20
|
+
name: Switch to light mode
|
|
21
|
+
features:
|
|
22
|
+
- navigation.instant
|
|
23
|
+
- navigation.top
|
|
24
|
+
- content.code.annotate
|
|
25
|
+
- content.tabs.link
|
|
26
|
+
- search.suggest
|
|
27
|
+
- search.highlight
|
|
28
|
+
icon:
|
|
29
|
+
repo: fontawesome/brands/github-alt
|
|
30
|
+
|
|
31
|
+
plugins:
|
|
32
|
+
- search
|
|
33
|
+
- git-revision-date
|
|
34
|
+
# - tags
|
|
35
|
+
|
|
36
|
+
extra:
|
|
37
|
+
analytics:
|
|
38
|
+
provider: custom
|
|
39
|
+
social:
|
|
40
|
+
- icon: fontawesome/brands/twitter
|
|
41
|
+
link: https://twitter.com/DlrspTwits
|
|
42
|
+
name: DLRSP on Twitter
|
|
43
|
+
- icon: fontawesome/solid/paper-plane
|
|
44
|
+
link: mailto:dlrsp.dev@gmail.com
|
|
45
|
+
- icon: fontawesome/brands/github
|
|
46
|
+
link: https://github.com/DLRSP
|
|
47
|
+
|
|
48
|
+
markdown_extensions:
|
|
49
|
+
- toc:
|
|
50
|
+
anchorlink: True
|
|
51
|
+
- pymdownx.tabbed:
|
|
52
|
+
alternate_style: true
|
|
53
|
+
- pymdownx.highlight:
|
|
54
|
+
- pymdownx.inlinehilite:
|
|
55
|
+
- pymdownx.superfences:
|
|
56
|
+
- pymdownx.snippets:
|
|
57
|
+
|
|
58
|
+
nav:
|
|
59
|
+
- Quickstart: 'index.md'
|
|
60
|
+
- Tutorials:
|
|
61
|
+
- 'Example': 'tutorial/example.md'
|
|
62
|
+
- 'Customize':
|
|
63
|
+
- 'Templates': 'tutorial/templates.md'
|
|
64
|
+
- 'Images': 'tutorial/images.md'
|
|
65
|
+
- Community:
|
|
66
|
+
- 'References': 'community/references.md'
|
|
67
|
+
- 'Contributing': 'community/contributing.md'
|
|
68
|
+
- 'Third-Party-Packages': 'community/third-party-packages.md'
|
|
69
|
+
|
|
70
|
+
copyright: Copyright © 2010-present DLRSP
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools >= 40.8.0", "django < 5"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "django-service"
|
|
7
|
+
description = "Django application provide simple category/service details"
|
|
8
|
+
readme = "README.md"
|
|
9
|
+
authors = [
|
|
10
|
+
{name = "DLRSP", email = "dlrsp.dev@gmail.com"},
|
|
11
|
+
]
|
|
12
|
+
requires-python = ">=3.8"
|
|
13
|
+
dynamic = ["dependencies", "version"]
|
|
14
|
+
license = {file = "LICENSE"}
|
|
15
|
+
keywords = ["django", "services"]
|
|
16
|
+
classifiers = [
|
|
17
|
+
# 3 - Alpha
|
|
18
|
+
# 4 - Beta
|
|
19
|
+
# 5 - Production/Stable
|
|
20
|
+
"Development Status :: 4 - Beta",
|
|
21
|
+
|
|
22
|
+
# Indicate who your project is intended for
|
|
23
|
+
"Intended Audience :: Developers",
|
|
24
|
+
|
|
25
|
+
# Pick your license
|
|
26
|
+
"License :: OSI Approved :: MIT License",
|
|
27
|
+
|
|
28
|
+
# Specify the Python versions
|
|
29
|
+
"Programming Language :: Python :: 3",
|
|
30
|
+
"Programming Language :: Python :: 3 :: Only",
|
|
31
|
+
"Programming Language :: Python :: 3.8",
|
|
32
|
+
"Programming Language :: Python :: 3.9",
|
|
33
|
+
"Programming Language :: Python :: 3.10",
|
|
34
|
+
"Programming Language :: Python :: 3.11",
|
|
35
|
+
|
|
36
|
+
# Specify the Django versions
|
|
37
|
+
"Framework :: Django",
|
|
38
|
+
"Framework :: Django :: 4.2",
|
|
39
|
+
|
|
40
|
+
# Specify the OS/Environment info
|
|
41
|
+
"Environment :: Web Environment",
|
|
42
|
+
"Operating System :: OS Independent",
|
|
43
|
+
|
|
44
|
+
# Specify the optional Topic
|
|
45
|
+
"Topic :: Internet :: WWW/HTTP",
|
|
46
|
+
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
|
|
47
|
+
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
|
|
48
|
+
"Topic :: Software Development :: Libraries :: Application Frameworks",
|
|
49
|
+
"Topic :: Software Development :: Libraries",
|
|
50
|
+
]
|
|
51
|
+
|
|
52
|
+
[project.optional-dependencies]
|
|
53
|
+
test = [
|
|
54
|
+
"coverage",
|
|
55
|
+
"codecov"
|
|
56
|
+
]
|
|
57
|
+
lint = [
|
|
58
|
+
"black",
|
|
59
|
+
"flake8"
|
|
60
|
+
]
|
|
61
|
+
|
|
62
|
+
[tool.setuptools]
|
|
63
|
+
package-dir = {"" = "src"}
|
|
64
|
+
|
|
65
|
+
[tool.setuptools.dynamic]
|
|
66
|
+
dependencies = {file = "requirements/requirements.in"}
|
|
67
|
+
version = {attr = "services.VERSION"}
|
|
68
|
+
|
|
69
|
+
[tool.setuptools.packages.find]
|
|
70
|
+
where = ["src"]
|
|
71
|
+
|
|
72
|
+
[tool.black]
|
|
73
|
+
target-version = ['py311']
|
|
74
|
+
|
|
75
|
+
[tool.isort]
|
|
76
|
+
profile = "black"
|
|
77
|
+
|
|
78
|
+
[tool.mypy]
|
|
79
|
+
check_untyped_defs = true
|
|
80
|
+
disallow_any_generics = true
|
|
81
|
+
disallow_incomplete_defs = true
|
|
82
|
+
disallow_untyped_defs = true
|
|
83
|
+
mypy_path = "src/"
|
|
84
|
+
no_implicit_optional = true
|
|
85
|
+
show_error_codes = true
|
|
86
|
+
warn_unreachable = true
|
|
87
|
+
warn_unused_ignores = true
|
|
88
|
+
|
|
89
|
+
[[tool.mypy.overrides]]
|
|
90
|
+
module = "tests.*"
|
|
91
|
+
allow_untyped_defs = true
|
|
92
|
+
|
|
93
|
+
[tool.pytest.ini_options]
|
|
94
|
+
addopts = """\
|
|
95
|
+
--strict-config
|
|
96
|
+
--strict-markers
|
|
97
|
+
--ds=tests.settings
|
|
98
|
+
"""
|
|
99
|
+
django_find_project = false
|
|
100
|
+
|
|
101
|
+
[tool.coverage.paths]
|
|
102
|
+
source = ["src", ".tox/*/site-packages"]
|
|
103
|
+
|
|
104
|
+
[tool.coverage.run]
|
|
105
|
+
branch = true
|
|
106
|
+
source = ["services"]
|
|
107
|
+
|
|
108
|
+
[tool.coverage.report]
|
|
109
|
+
show_missing = true
|
|
110
|
+
fail_under = 100
|
|
111
|
+
|
|
112
|
+
[tool.flake8]
|
|
113
|
+
max-line-length = 120
|
|
114
|
+
exclude = [
|
|
115
|
+
".git",
|
|
116
|
+
"__pycache__"
|
|
117
|
+
]
|
|
118
|
+
extend-ignore = [
|
|
119
|
+
"E203","E501","W503"
|
|
120
|
+
]
|
|
121
|
+
count = true
|
|
122
|
+
|
|
123
|
+
[tool.towncrier]
|
|
124
|
+
package = "services"
|
|
125
|
+
package_dir = "src"
|
|
126
|
+
filename = "CHANGELOG.rst"
|
|
127
|
+
directory = "news/"
|
|
128
|
+
version = "0.1.0"
|
|
129
|
+
|
|
130
|
+
# For rendering properly for this project
|
|
131
|
+
issue_format = "`#{issue} <https://github.com/DLRSP/django-service/issues/{issue}>`_"
|
|
132
|
+
# template = "tools/news/template.rst"
|
|
133
|
+
|
|
134
|
+
# Grouping of entries, within our changelog
|
|
135
|
+
type = [
|
|
136
|
+
{ name = "Process", directory = "process", showcontent = true },
|
|
137
|
+
{ name = "Deprecations and Removals", directory = "removal", showcontent = true },
|
|
138
|
+
{ name = "Features", directory = "feature", showcontent = true },
|
|
139
|
+
{ name = "Bug Fixes", directory = "bugfix", showcontent = true },
|
|
140
|
+
{ name = "Vendored Libraries", directory = "vendor", showcontent = true },
|
|
141
|
+
{ name = "Improved Documentation", directory = "doc", showcontent = true },
|
|
142
|
+
{ name = "Trivial Changes", directory = "trivial", showcontent = false },
|
|
143
|
+
]
|
|
144
|
+
|
|
145
|
+
# bump-my-version
|
|
146
|
+
[tool.bumpversion]
|
|
147
|
+
current_version = "0.1.0"
|
|
148
|
+
allow_dirty = true
|
|
149
|
+
|
|
150
|
+
[[tool.bumpversion.files]]
|
|
151
|
+
filename = "./setup.cfg"
|
|
152
|
+
|
|
153
|
+
[[tool.bumpversion.files]]
|
|
154
|
+
filename = "./src/services/__init__.py"
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
#
|
|
2
|
+
# This file is autogenerated by pip-compile with Python 3.10
|
|
3
|
+
# by the following command:
|
|
4
|
+
#
|
|
5
|
+
# pip-compile --allow-unsafe --generate-hashes --output-file=requirements/py310-django32.txt requirements/requirements.in
|
|
6
|
+
#
|
|
7
|
+
asgiref==3.8.1 \
|
|
8
|
+
--hash=sha256:3e1e3ecc849832fe52ccf2cb6686b7a55f82bb1d6aee72a58826471390335e47 \
|
|
9
|
+
--hash=sha256:c343bd80a0bec947a9860adb4c432ffa7db769836c64238fc34bdc3fec84d590
|
|
10
|
+
# via django
|
|
11
|
+
django==3.2.25 \
|
|
12
|
+
--hash=sha256:7ca38a78654aee72378594d63e51636c04b8e28574f5505dff630895b5472777 \
|
|
13
|
+
--hash=sha256:a52ea7fcf280b16f7b739cec38fa6d3f8953a5456986944c3ca97e79882b4e38
|
|
14
|
+
# via -r requirements/requirements.in
|
|
15
|
+
pytz==2024.2 \
|
|
16
|
+
--hash=sha256:2aa355083c50a0f93fa581709deac0c9ad65cca8a9e9beac660adcbd493c798a \
|
|
17
|
+
--hash=sha256:31c7c1817eb7fae7ca4b8c7ee50c72f93aa2dd863de768e1ef4245d426aa0725
|
|
18
|
+
# via django
|
|
19
|
+
sqlparse==0.5.3 \
|
|
20
|
+
--hash=sha256:09f67787f56a0b16ecdbde1bfc7f5d9c3371ca683cfeaa8e6ff60b4807ec9272 \
|
|
21
|
+
--hash=sha256:cf2196ed3418f3ba5de6af7e82c694a9fbdbfecccdfc72e281548517081f16ca
|
|
22
|
+
# via django
|
|
23
|
+
typing-extensions==4.12.2 \
|
|
24
|
+
--hash=sha256:04e5ca0351e0f3f85c6853954072df659d0d13fac324d0072316b67d7794700d \
|
|
25
|
+
--hash=sha256:1a7ead55c7e559dd4dee8856e3a88b41225abfe1ce8df57b7c13915fe121ffb8
|
|
26
|
+
# via asgiref
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
#
|
|
2
|
+
# This file is autogenerated by pip-compile with Python 3.10
|
|
3
|
+
# by the following command:
|
|
4
|
+
#
|
|
5
|
+
# pip-compile --allow-unsafe --generate-hashes --output-file=requirements/py310-django42.txt requirements/requirements.in
|
|
6
|
+
#
|
|
7
|
+
asgiref==3.8.1 \
|
|
8
|
+
--hash=sha256:3e1e3ecc849832fe52ccf2cb6686b7a55f82bb1d6aee72a58826471390335e47 \
|
|
9
|
+
--hash=sha256:c343bd80a0bec947a9860adb4c432ffa7db769836c64238fc34bdc3fec84d590
|
|
10
|
+
# via django
|
|
11
|
+
django==4.2.17 \
|
|
12
|
+
--hash=sha256:3a93350214ba25f178d4045c0786c61573e7dbfa3c509b3551374f1e11ba8de0 \
|
|
13
|
+
--hash=sha256:6b56d834cc94c8b21a8f4e775064896be3b4a4ca387f2612d4406a5927cd2fdc
|
|
14
|
+
# via -r requirements/requirements.in
|
|
15
|
+
sqlparse==0.5.3 \
|
|
16
|
+
--hash=sha256:09f67787f56a0b16ecdbde1bfc7f5d9c3371ca683cfeaa8e6ff60b4807ec9272 \
|
|
17
|
+
--hash=sha256:cf2196ed3418f3ba5de6af7e82c694a9fbdbfecccdfc72e281548517081f16ca
|
|
18
|
+
# via django
|
|
19
|
+
typing-extensions==4.12.2 \
|
|
20
|
+
--hash=sha256:04e5ca0351e0f3f85c6853954072df659d0d13fac324d0072316b67d7794700d \
|
|
21
|
+
--hash=sha256:1a7ead55c7e559dd4dee8856e3a88b41225abfe1ce8df57b7c13915fe121ffb8
|
|
22
|
+
# via asgiref
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
#
|
|
2
|
+
# This file is autogenerated by pip-compile with Python 3.11
|
|
3
|
+
# by the following command:
|
|
4
|
+
#
|
|
5
|
+
# pip-compile --allow-unsafe --generate-hashes --output-file=requirements/py311-django32.txt requirements/requirements.in
|
|
6
|
+
#
|
|
7
|
+
asgiref==3.8.1 \
|
|
8
|
+
--hash=sha256:3e1e3ecc849832fe52ccf2cb6686b7a55f82bb1d6aee72a58826471390335e47 \
|
|
9
|
+
--hash=sha256:c343bd80a0bec947a9860adb4c432ffa7db769836c64238fc34bdc3fec84d590
|
|
10
|
+
# via django
|
|
11
|
+
django==3.2.25 \
|
|
12
|
+
--hash=sha256:7ca38a78654aee72378594d63e51636c04b8e28574f5505dff630895b5472777 \
|
|
13
|
+
--hash=sha256:a52ea7fcf280b16f7b739cec38fa6d3f8953a5456986944c3ca97e79882b4e38
|
|
14
|
+
# via -r requirements/requirements.in
|
|
15
|
+
pytz==2024.2 \
|
|
16
|
+
--hash=sha256:2aa355083c50a0f93fa581709deac0c9ad65cca8a9e9beac660adcbd493c798a \
|
|
17
|
+
--hash=sha256:31c7c1817eb7fae7ca4b8c7ee50c72f93aa2dd863de768e1ef4245d426aa0725
|
|
18
|
+
# via django
|
|
19
|
+
sqlparse==0.5.3 \
|
|
20
|
+
--hash=sha256:09f67787f56a0b16ecdbde1bfc7f5d9c3371ca683cfeaa8e6ff60b4807ec9272 \
|
|
21
|
+
--hash=sha256:cf2196ed3418f3ba5de6af7e82c694a9fbdbfecccdfc72e281548517081f16ca
|
|
22
|
+
# via django
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
#
|
|
2
|
+
# This file is autogenerated by pip-compile with Python 3.11
|
|
3
|
+
# by the following command:
|
|
4
|
+
#
|
|
5
|
+
# pip-compile --allow-unsafe --generate-hashes --output-file=requirements/py311-django42.txt requirements/requirements.in
|
|
6
|
+
#
|
|
7
|
+
asgiref==3.8.1 \
|
|
8
|
+
--hash=sha256:3e1e3ecc849832fe52ccf2cb6686b7a55f82bb1d6aee72a58826471390335e47 \
|
|
9
|
+
--hash=sha256:c343bd80a0bec947a9860adb4c432ffa7db769836c64238fc34bdc3fec84d590
|
|
10
|
+
# via django
|
|
11
|
+
django==4.2.17 \
|
|
12
|
+
--hash=sha256:3a93350214ba25f178d4045c0786c61573e7dbfa3c509b3551374f1e11ba8de0 \
|
|
13
|
+
--hash=sha256:6b56d834cc94c8b21a8f4e775064896be3b4a4ca387f2612d4406a5927cd2fdc
|
|
14
|
+
# via -r requirements/requirements.in
|
|
15
|
+
sqlparse==0.5.3 \
|
|
16
|
+
--hash=sha256:09f67787f56a0b16ecdbde1bfc7f5d9c3371ca683cfeaa8e6ff60b4807ec9272 \
|
|
17
|
+
--hash=sha256:cf2196ed3418f3ba5de6af7e82c694a9fbdbfecccdfc72e281548517081f16ca
|
|
18
|
+
# via django
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
#
|
|
2
|
+
# This file is autogenerated by pip-compile with Python 3.8
|
|
3
|
+
# by the following command:
|
|
4
|
+
#
|
|
5
|
+
# pip-compile --allow-unsafe --generate-hashes --output-file=requirements/py38-django32.txt requirements/requirements.in
|
|
6
|
+
#
|
|
7
|
+
asgiref==3.8.1 \
|
|
8
|
+
--hash=sha256:3e1e3ecc849832fe52ccf2cb6686b7a55f82bb1d6aee72a58826471390335e47 \
|
|
9
|
+
--hash=sha256:c343bd80a0bec947a9860adb4c432ffa7db769836c64238fc34bdc3fec84d590
|
|
10
|
+
# via django
|
|
11
|
+
django==3.2.25 \
|
|
12
|
+
--hash=sha256:7ca38a78654aee72378594d63e51636c04b8e28574f5505dff630895b5472777 \
|
|
13
|
+
--hash=sha256:a52ea7fcf280b16f7b739cec38fa6d3f8953a5456986944c3ca97e79882b4e38
|
|
14
|
+
# via -r requirements/requirements.in
|
|
15
|
+
pytz==2024.2 \
|
|
16
|
+
--hash=sha256:2aa355083c50a0f93fa581709deac0c9ad65cca8a9e9beac660adcbd493c798a \
|
|
17
|
+
--hash=sha256:31c7c1817eb7fae7ca4b8c7ee50c72f93aa2dd863de768e1ef4245d426aa0725
|
|
18
|
+
# via django
|
|
19
|
+
sqlparse==0.5.3 \
|
|
20
|
+
--hash=sha256:09f67787f56a0b16ecdbde1bfc7f5d9c3371ca683cfeaa8e6ff60b4807ec9272 \
|
|
21
|
+
--hash=sha256:cf2196ed3418f3ba5de6af7e82c694a9fbdbfecccdfc72e281548517081f16ca
|
|
22
|
+
# via django
|
|
23
|
+
typing-extensions==4.12.2 \
|
|
24
|
+
--hash=sha256:04e5ca0351e0f3f85c6853954072df659d0d13fac324d0072316b67d7794700d \
|
|
25
|
+
--hash=sha256:1a7ead55c7e559dd4dee8856e3a88b41225abfe1ce8df57b7c13915fe121ffb8
|
|
26
|
+
# via asgiref
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
#
|
|
2
|
+
# This file is autogenerated by pip-compile with Python 3.8
|
|
3
|
+
# by the following command:
|
|
4
|
+
#
|
|
5
|
+
# pip-compile --allow-unsafe --generate-hashes --output-file=requirements/py38-django42.txt requirements/requirements.in
|
|
6
|
+
#
|
|
7
|
+
asgiref==3.8.1 \
|
|
8
|
+
--hash=sha256:3e1e3ecc849832fe52ccf2cb6686b7a55f82bb1d6aee72a58826471390335e47 \
|
|
9
|
+
--hash=sha256:c343bd80a0bec947a9860adb4c432ffa7db769836c64238fc34bdc3fec84d590
|
|
10
|
+
# via django
|
|
11
|
+
backports-zoneinfo==0.2.1 \
|
|
12
|
+
--hash=sha256:17746bd546106fa389c51dbea67c8b7c8f0d14b5526a579ca6ccf5ed72c526cf \
|
|
13
|
+
--hash=sha256:1b13e654a55cd45672cb54ed12148cd33628f672548f373963b0bff67b217328 \
|
|
14
|
+
--hash=sha256:1c5742112073a563c81f786e77514969acb58649bcdf6cdf0b4ed31a348d4546 \
|
|
15
|
+
--hash=sha256:4a0f800587060bf8880f954dbef70de6c11bbe59c673c3d818921f042f9954a6 \
|
|
16
|
+
--hash=sha256:5c144945a7752ca544b4b78c8c41544cdfaf9786f25fe5ffb10e838e19a27570 \
|
|
17
|
+
--hash=sha256:7b0a64cda4145548fed9efc10322770f929b944ce5cee6c0dfe0c87bf4c0c8c9 \
|
|
18
|
+
--hash=sha256:8439c030a11780786a2002261569bdf362264f605dfa4d65090b64b05c9f79a7 \
|
|
19
|
+
--hash=sha256:8961c0f32cd0336fb8e8ead11a1f8cd99ec07145ec2931122faaac1c8f7fd987 \
|
|
20
|
+
--hash=sha256:89a48c0d158a3cc3f654da4c2de1ceba85263fafb861b98b59040a5086259722 \
|
|
21
|
+
--hash=sha256:a76b38c52400b762e48131494ba26be363491ac4f9a04c1b7e92483d169f6582 \
|
|
22
|
+
--hash=sha256:da6013fd84a690242c310d77ddb8441a559e9cb3d3d59ebac9aca1a57b2e18bc \
|
|
23
|
+
--hash=sha256:e55b384612d93be96506932a786bbcde5a2db7a9e6a4bb4bffe8b733f5b9036b \
|
|
24
|
+
--hash=sha256:e81b76cace8eda1fca50e345242ba977f9be6ae3945af8d46326d776b4cf78d1 \
|
|
25
|
+
--hash=sha256:e8236383a20872c0cdf5a62b554b27538db7fa1bbec52429d8d106effbaeca08 \
|
|
26
|
+
--hash=sha256:f04e857b59d9d1ccc39ce2da1021d196e47234873820cbeaad210724b1ee28ac \
|
|
27
|
+
--hash=sha256:fadbfe37f74051d024037f223b8e001611eac868b5c5b06144ef4d8b799862f2
|
|
28
|
+
# via django
|
|
29
|
+
django==4.2.17 \
|
|
30
|
+
--hash=sha256:3a93350214ba25f178d4045c0786c61573e7dbfa3c509b3551374f1e11ba8de0 \
|
|
31
|
+
--hash=sha256:6b56d834cc94c8b21a8f4e775064896be3b4a4ca387f2612d4406a5927cd2fdc
|
|
32
|
+
# via -r requirements/requirements.in
|
|
33
|
+
sqlparse==0.5.3 \
|
|
34
|
+
--hash=sha256:09f67787f56a0b16ecdbde1bfc7f5d9c3371ca683cfeaa8e6ff60b4807ec9272 \
|
|
35
|
+
--hash=sha256:cf2196ed3418f3ba5de6af7e82c694a9fbdbfecccdfc72e281548517081f16ca
|
|
36
|
+
# via django
|
|
37
|
+
typing-extensions==4.12.2 \
|
|
38
|
+
--hash=sha256:04e5ca0351e0f3f85c6853954072df659d0d13fac324d0072316b67d7794700d \
|
|
39
|
+
--hash=sha256:1a7ead55c7e559dd4dee8856e3a88b41225abfe1ce8df57b7c13915fe121ffb8
|
|
40
|
+
# via asgiref
|