Skip to content

Commit

Permalink
new cfl package
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Nov 15, 2024
1 parent 0e5b01e commit 0a06726
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 5 deletions.
5 changes: 3 additions & 2 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

## ℹ️ HOW-TO: Make the python-package editable.
#
# 1. Comment out the git-codeforlife package under [packages].
Expand All @@ -22,11 +23,11 @@ name = "pypi"
# 5. Run `pipenv install --dev` in your terminal.

[packages]
codeforlife = {ref = "v0.21.0", git = "https://github.com/ocadotechnology/codeforlife-package-python.git"}
codeforlife = {ref = "v0.22.0", git = "https://github.com/ocadotechnology/codeforlife-package-python.git"}
# 🚫 Don't add [packages] below that are inherited from the CFL package.

[dev-packages]
codeforlife = {ref = "v0.21.0", git = "https://github.com/ocadotechnology/codeforlife-package-python.git", extras = ["dev"]}
codeforlife = {ref = "v0.22.0", git = "https://github.com/ocadotechnology/codeforlife-package-python.git", extras = ["dev"]}
# codeforlife = {file = "../codeforlife-package-python", editable = true, extras = ["dev"]}
# 🚫 Don't add [dev-packages] below that are inherited from the CFL package.

Expand Down
6 changes: 3 additions & 3 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions api/fixtures/sites.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[
{
"model": "sites.site",
"pk": 2,
"fields": {
"domain": "localhost:8000",
"name": "localhost:8000"
}
},
{
"model": "sites.site",
"pk": 3,
"fields": {
"domain": "127.0.0.1:8000",
"name": "127.0.0.1:8000"
}
}
]
4 changes: 4 additions & 0 deletions api/management/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
"""
© Ocado Group
Created on 15/11/2024 at 12:24:46(+00:00).
"""
4 changes: 4 additions & 0 deletions api/management/commands/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
"""
© Ocado Group
Created on 15/11/2024 at 12:24:52(+00:00).
"""
7 changes: 7 additions & 0 deletions api/management/commands/load_fixtures.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
"""
© Ocado Group
Created on 15/11/2024 at 12:26:15(+00:00).
"""

# pylint: disable-next=unused-import
from codeforlife.commands import LoadFixtures as Command
7 changes: 7 additions & 0 deletions api/management/commands/summarize_fixtures.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
"""
© Ocado Group
Created on 15/11/2024 at 12:26:21(+00:00).
"""

# pylint: disable-next=unused-import
from codeforlife.commands import SummarizeFixtures as Command

0 comments on commit 0a06726

Please sign in to comment.