Skip to content

Commit

Permalink
fix: update Credly Badges plugin layout
Browse files Browse the repository at this point in the history
  • Loading branch information
wowkalucky committed Jan 17, 2024
1 parent 766860c commit 34de203
Show file tree
Hide file tree
Showing 27 changed files with 19 additions and 121 deletions.
4 changes: 2 additions & 2 deletions credentials/apps/badges/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ def ready(self):
"""
Performs initial registrations for checks, signals, etc.
"""
from . import signals # pylint: disable=unused-import,import-outside-toplevel
from . checks import badges_checks # pylint: disable=unused-import,import-outside-toplevel
from . import handlers # pylint: disable=unused-import,import-outside-toplevel
from .checks import badges_checks # pylint: disable=unused-import,import-outside-toplevel
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
"""
Credly Badges admin configuration.
"""
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
"""
Credly Badges checks.
"""
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
"""
Credly Badges signal handlers.
"""
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
"""
Credly Badges DB models.
"""
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
"""
Credly Badges app toggles.
"""
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
# Main requirements of the plugin application.
-c constraints.txt

credentials.apps.badges
3 changes: 0 additions & 3 deletions credentials/apps/badges/distribution/credly_badges/admin.py

This file was deleted.

29 changes: 0 additions & 29 deletions credentials/apps/badges/distribution/credly_badges/apps.py

This file was deleted.

3 changes: 0 additions & 3 deletions credentials/apps/badges/distribution/credly_badges/checks.py

This file was deleted.

3 changes: 0 additions & 3 deletions credentials/apps/badges/distribution/credly_badges/models.py

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions credentials/apps/badges/distribution/credly_badges/toggles.py

This file was deleted.

4 changes: 0 additions & 4 deletions credentials/apps/badges/distribution/credly_badges/urls.py

This file was deleted.

File renamed without changes.
6 changes: 0 additions & 6 deletions credentials/apps/badges/settings/base.py

This file was deleted.

6 changes: 0 additions & 6 deletions credentials/apps/badges/settings/production.py

This file was deleted.

6 changes: 0 additions & 6 deletions credentials/apps/badges/settings/test.py

This file was deleted.

2 changes: 1 addition & 1 deletion credentials/apps/badges/toggles.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Toggles for badges app.
Badges app toggles.
"""

from edx_toggles.toggles import SettingToggle
Expand Down
26 changes: 1 addition & 25 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,4 @@ known_first_party = ["credentials"]
lines_after_imports = 2
combine_as_imports = true
skip = ["migrations", "settings"]
include_trailing_comma = true

[project]
# https://packaging.python.org/en/latest/specifications/declaring-project-metadata/
name = "credentials"
license = { file = "LICENSE" }
classifiers = [
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: GNU Affero General Public License v3",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Framework :: Django :: 3",
]
dynamic = ["version", "dependencies", "optional-dependencies"]

[tool.setuptools]
packages = ["credentials"]

[tool.setuptools.dynamic]
dependencies = { file = "requirements/all.txt" }

[project.entry-points."credentials.djangoapp"]
badges = "credentials.apps.badges.apps:BadgesConfig"
include_trailing_comma = true
10 changes: 0 additions & 10 deletions requirements/common_constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,6 @@
# See BOM-2721 for more details.
# Below is the copied and edited version of common_constraints

# This is a temporary solution to override the real common_constraints.txt
# In edx-lint, until the pyjwt constraint in edx-lint has been removed.
# See BOM-2721 for more details.
# Below is the copied and edited version of common_constraints

# This is a temporary solution to override the real common_constraints.txt
# In edx-lint, until the pyjwt constraint in edx-lint has been removed.
# See BOM-2721 for more details.
# Below is the copied and edited version of common_constraints

# A central location for most common version constraints
# (across edx repos) for pip-installation.
#
Expand Down

0 comments on commit 34de203

Please sign in to comment.