Skip to content

Commit

Permalink
Merge pull request #373 from pinax/version-3.3.1
Browse files Browse the repository at this point in the history
Include migrations and bump version to 3.3.1
  • Loading branch information
uhurusurfa committed Sep 10, 2023
2 parents 2fab0e7 + b79d26e commit f1d025d
Show file tree
Hide file tree
Showing 36 changed files with 30 additions and 19 deletions.
3 changes: 2 additions & 1 deletion .deepsource.toml
Expand Up @@ -3,7 +3,8 @@ version = 1
exclude_patterns = [
"makemigrations.py",
"runtests.py",
"tests/**",
"account/tests/**",
"account/tests/test_*.py",
]

[[analyzers]]
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/ci.yaml
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Lint with ruff
run: |
ruff --format=github --target-version=py311 account tests
ruff --format=github --target-version=py311 account
test:
name: Testing
Expand Down Expand Up @@ -51,10 +51,6 @@ jobs:
shell: bash
run: pip install Django==${{ matrix.django }} 'django-appconf>=1.0.4' 'pytz>=2020.4'

- name: Install test utilities
shell: bash
run: pip install pytest pytest-django

- name: Running Python Tests
shell: bash
run: pytest
run: python3 runtests.py
8 changes: 8 additions & 0 deletions CHANGELOG.md
Expand Up @@ -3,6 +3,14 @@
BI indicates a backward incompatible change. Take caution when upgrading to a
version with these. Your code will need to be updated to continue working.

## 3.3.1

* #373 Re-include migrations in distribution

## 3.3.0

* #370 Drop Django 2.2, fix timezone-aware comparison, packaging tweaks

## 3.2.1

* #364 - Performance fix to admin classes
Expand Down
3 changes: 2 additions & 1 deletion MANIFEST.in
@@ -1,12 +1,13 @@
global-exclude *.py[cod]
include CHANGELOG.md
include LICENSE
include README.md
recursive-include account *.html
recursive-include account *.txt
recursive-include account/locale *
recursive-include account/migrations *.py
recursive-include docs *.rst
exclude tox.ini
recursive-exclude django_user_accounts.egg-info *
recursive-exclude tests *
exclude docs/conf.py
exclude docs/Makefile
2 changes: 1 addition & 1 deletion account/__init__.py
@@ -1 +1 @@
__version__ = "3.3.0"
__version__ = "3.3.1"
File renamed without changes.
4 changes: 2 additions & 2 deletions tests/settings.py → account/tests/settings.py
Expand Up @@ -7,7 +7,7 @@
"django.contrib.sites",
"django.contrib.messages",
"account",
"tests",
"account.tests",
]
DATABASES = {
"default": {
Expand All @@ -16,7 +16,7 @@
}
}
SITE_ID = 1
ROOT_URLCONF = "tests.urls"
ROOT_URLCONF = "account.tests.urls"
SECRET_KEY = "notasecret"
TEMPLATES = [
{
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions makemigrations.py
Expand Up @@ -11,7 +11,7 @@
"django.contrib.contenttypes",
"django.contrib.sites",
"account",
"tests"
"account.tests"
],
MIDDLEWARE_CLASSES=[],
DATABASES={
Expand All @@ -21,7 +21,7 @@
}
},
SITE_ID=1,
ROOT_URLCONF="tests.urls",
ROOT_URLCONF="account.tests.urls",
SECRET_KEY="notasecret",
)

Expand Down
2 changes: 1 addition & 1 deletion manage.py
Expand Up @@ -3,7 +3,7 @@
import sys

if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "tests.settings")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "account.tests.settings")

from django.core.management import execute_from_command_line

Expand Down
11 changes: 8 additions & 3 deletions pyproject.toml
Expand Up @@ -47,8 +47,8 @@ skip_glob = "account/migrations/*,docs"
include_trailing_comma = "True"

[tool.pytest.ini_options]
testpaths = ["tests"]
DJANGO_SETTINGS_MODULE = "tests.settings"
testpaths = ["account/tests"]
DJANGO_SETTINGS_MODULE = "account.tests.settings"

[tool.ruff]
line-length = 120
Expand All @@ -57,7 +57,12 @@ line-length = 120
"account/migrations/**.py" = ["E501"]

[tool.setuptools]
packages = ["account"]
package-dir = {"" = "."}
include-package-data = true
zip-safe = false

[tool.setuptools.dynamic]
version = {attr = "account.__version__"}

[tool.setuptools.package-data]
account = ["locale/*/LC_MESSAGES/*"]
4 changes: 2 additions & 2 deletions runtests.py
Expand Up @@ -6,7 +6,7 @@


def runtests(*test_args):
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "tests.settings")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "account.tests.settings")
django.setup()

parent = os.path.dirname(os.path.abspath(__file__))
Expand All @@ -15,7 +15,7 @@ def runtests(*test_args):
from django.test.runner import DiscoverRunner
runner_class = DiscoverRunner
if not test_args:
test_args = ["tests"]
test_args = ["account/tests"]

failures = runner_class(verbosity=1, interactive=True, failfast=False).run_tests(test_args)
sys.exit(failures)
Expand Down

0 comments on commit f1d025d

Please sign in to comment.