diff --git a/.python-version b/.python-version new file mode 100644 index 0000000..171a6a9 --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.12.1 diff --git a/CHANGES.md b/CHANGELOG.md similarity index 100% rename from CHANGES.md rename to CHANGELOG.md diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt deleted file mode 100644 index 4d7d525..0000000 --- a/CONTRIBUTORS.txt +++ /dev/null @@ -1,5 +0,0 @@ -Karim A. (Directeur) -Eric Florenzano -Stéphane Raimbault -S. Kossouho -Joffrey M. diff --git a/MANIFEST.in b/MANIFEST.in deleted file mode 100644 index d9864c1..0000000 --- a/MANIFEST.in +++ /dev/null @@ -1,5 +0,0 @@ -include CHANGES.md CONTRIBUTORS.txt LICENSE.txt README.md - -graft webstack_django_sorting - -global-exclude *.py[cod] __pycache__ *.so diff --git a/pyproject.toml b/pyproject.toml index c64bc4a..94dd90f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,48 @@ +[project] +name = "webstack-django-sorting" +version = "2.3.1" +description = "Easy sorting of tables with Django" +authors = [ + { name = "Karim A. (aka Directeur)", email = "directeur@gmail.com" }, + { name = "Eric Florenzano", email = "floguy@gmail.com" }, + { name = "Stéphane Raimbault", email = "stephane.raimbault@webstack.fr" }, + { name = "S. Kossouho", email = "artscoop93@gmail.com" }, + { name = "Joffrey M.", email = "joffrey.mander@polyconseil.fr" }, +] +maintainers = [ + { name = "Stéphane Raimbault", email = "stephane.raimbault@webstack.fr" }, +] +dependencies = ["Django>=3.0, <6.0"] +readme = "README.md" +requires-python = ">=3.6" +license = "BSD-3-Clause" +keywords = ["django", "sorting", "table"] +classifiers = [ + "Development Status :: 5 - Production/Stable", + "Programming Language :: Python :: 3", + "Environment :: Web Environment", + "Framework :: Django", + "License :: OSI Approved :: BSD License", + "Operating System :: OS Independent", + "Intended Audience :: Developers", + "Natural Language :: English", +] + +[project.urls] +repository = "https://github.com/webstack/webstack-django-sorting.git" +changelog = "https://github.com/webstack/webstack-django-sorting/blob/master/CHANGELOG.md" +"Bug Tracker" = "https://github.com/webstack/webstack-django-sorting/issues" + [build-system] -requires = ["setuptools>=42", "wheel"] -build-backend = "setuptools.build_meta" +requires = ["hatchling"] +build-backend = "hatchling.build" + +[tool.rye] +managed = true +dev-dependencies = [] + +[tool.hatch.metadata] +allow-direct-references = true -[tool.black] -target-version = ["py311"] -line_length = 88 +[tool.hatch.build.targets.wheel] +packages = ["src/webstack_django_sorting"] diff --git a/requirements-dev.lock b/requirements-dev.lock new file mode 100644 index 0000000..ebe0598 --- /dev/null +++ b/requirements-dev.lock @@ -0,0 +1,18 @@ +# generated by rye +# use `rye lock` or `rye sync` to update this lockfile +# +# last locked with the following flags: +# pre: false +# features: [] +# all-features: false +# with-sources: false +# generate-hashes: false +# universal: false + +-e file:. +asgiref==3.8.1 + # via django +django==5.1 + # via webstack-django-sorting +sqlparse==0.5.1 + # via django diff --git a/requirements.lock b/requirements.lock new file mode 100644 index 0000000..ebe0598 --- /dev/null +++ b/requirements.lock @@ -0,0 +1,18 @@ +# generated by rye +# use `rye lock` or `rye sync` to update this lockfile +# +# last locked with the following flags: +# pre: false +# features: [] +# all-features: false +# with-sources: false +# generate-hashes: false +# universal: false + +-e file:. +asgiref==3.8.1 + # via django +django==5.1 + # via webstack-django-sorting +sqlparse==0.5.1 + # via django diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 65fc9fe..0000000 --- a/setup.cfg +++ /dev/null @@ -1,25 +0,0 @@ -[metadata] -name = webstack-django-sorting -version = 2.3.1 -author = Stéphane Raimbault -author_email = stephane.raimbault@webstack.fr -description = Easy sorting of tables with Django -long_description = file: README.md -long_description_content_type = text/markdown -url = http://github.com/webstack/webstack-django-sorting -project_urls = - Bug Tracker = https://github.com/webstack/webstack-django-sorting/issues -classifiers = - Programming Language :: Python :: 3 - License :: OSI Approved :: BSD License - Operating System :: OS Independent - Intended Audience :: Developers - Natural Language :: English - Framework :: Django - Environment :: Web Environment - -[options] -packages = find: -python_requires = >=3.6 -install_requires = - Django>=3.0,<6.0 diff --git a/testproj/README.md b/src/testproj/README.md similarity index 100% rename from testproj/README.md rename to src/testproj/README.md diff --git a/testproj/manage.py b/src/testproj/manage.py similarity index 100% rename from testproj/manage.py rename to src/testproj/manage.py diff --git a/testproj/requirements.txt b/src/testproj/requirements.txt similarity index 100% rename from testproj/requirements.txt rename to src/testproj/requirements.txt diff --git a/testproj/testproj/__init__.py b/src/testproj/testproj/__init__.py similarity index 100% rename from testproj/testproj/__init__.py rename to src/testproj/testproj/__init__.py diff --git a/testproj/testproj/asgi.py b/src/testproj/testproj/asgi.py similarity index 100% rename from testproj/testproj/asgi.py rename to src/testproj/testproj/asgi.py diff --git a/testproj/testproj/settings.py b/src/testproj/testproj/settings.py similarity index 100% rename from testproj/testproj/settings.py rename to src/testproj/testproj/settings.py diff --git a/testproj/testproj/static/css/style.css b/src/testproj/testproj/static/css/style.css similarity index 100% rename from testproj/testproj/static/css/style.css rename to src/testproj/testproj/static/css/style.css diff --git a/testproj/testproj/testapp/__init__.py b/src/testproj/testproj/testapp/__init__.py similarity index 100% rename from testproj/testproj/testapp/__init__.py rename to src/testproj/testproj/testapp/__init__.py diff --git a/testproj/testproj/testapp/admin.py b/src/testproj/testproj/testapp/admin.py similarity index 100% rename from testproj/testproj/testapp/admin.py rename to src/testproj/testproj/testapp/admin.py diff --git a/testproj/testproj/testapp/fixtures/secretfiles.json b/src/testproj/testproj/testapp/fixtures/secretfiles.json similarity index 100% rename from testproj/testproj/testapp/fixtures/secretfiles.json rename to src/testproj/testproj/testapp/fixtures/secretfiles.json diff --git a/testproj/testproj/testapp/jinja2/env.py b/src/testproj/testproj/testapp/jinja2/env.py similarity index 100% rename from testproj/testproj/testapp/jinja2/env.py rename to src/testproj/testproj/testapp/jinja2/env.py diff --git a/testproj/testproj/testapp/jinja2/secret_list.jinja2 b/src/testproj/testproj/testapp/jinja2/secret_list.jinja2 similarity index 100% rename from testproj/testproj/testapp/jinja2/secret_list.jinja2 rename to src/testproj/testproj/testapp/jinja2/secret_list.jinja2 diff --git a/testproj/testproj/testapp/jinja2/secret_list_nulls_first.jinja2 b/src/testproj/testproj/testapp/jinja2/secret_list_nulls_first.jinja2 similarity index 100% rename from testproj/testproj/testapp/jinja2/secret_list_nulls_first.jinja2 rename to src/testproj/testproj/testapp/jinja2/secret_list_nulls_first.jinja2 diff --git a/testproj/testproj/testapp/jinja2/secret_list_nulls_last.jinja2 b/src/testproj/testproj/testapp/jinja2/secret_list_nulls_last.jinja2 similarity index 100% rename from testproj/testproj/testapp/jinja2/secret_list_nulls_last.jinja2 rename to src/testproj/testproj/testapp/jinja2/secret_list_nulls_last.jinja2 diff --git a/testproj/testproj/testapp/migrations/0001_initial.py b/src/testproj/testproj/testapp/migrations/0001_initial.py similarity index 100% rename from testproj/testproj/testapp/migrations/0001_initial.py rename to src/testproj/testproj/testapp/migrations/0001_initial.py diff --git a/testproj/testproj/testapp/migrations/__init__.py b/src/testproj/testproj/testapp/migrations/__init__.py similarity index 100% rename from testproj/testproj/testapp/migrations/__init__.py rename to src/testproj/testproj/testapp/migrations/__init__.py diff --git a/testproj/testproj/testapp/models.py b/src/testproj/testproj/testapp/models.py similarity index 100% rename from testproj/testproj/testapp/models.py rename to src/testproj/testproj/testapp/models.py diff --git a/testproj/testproj/testapp/templates/home.html b/src/testproj/testproj/testapp/templates/home.html similarity index 100% rename from testproj/testproj/testapp/templates/home.html rename to src/testproj/testproj/testapp/templates/home.html diff --git a/testproj/testproj/testapp/templates/secret_list.html b/src/testproj/testproj/testapp/templates/secret_list.html similarity index 100% rename from testproj/testproj/testapp/templates/secret_list.html rename to src/testproj/testproj/testapp/templates/secret_list.html diff --git a/testproj/testproj/testapp/templates/secret_list_nulls_first.html b/src/testproj/testproj/testapp/templates/secret_list_nulls_first.html similarity index 100% rename from testproj/testproj/testapp/templates/secret_list_nulls_first.html rename to src/testproj/testproj/testapp/templates/secret_list_nulls_first.html diff --git a/testproj/testproj/testapp/templates/secret_list_nulls_last.html b/src/testproj/testproj/testapp/templates/secret_list_nulls_last.html similarity index 100% rename from testproj/testproj/testapp/templates/secret_list_nulls_last.html rename to src/testproj/testproj/testapp/templates/secret_list_nulls_last.html diff --git a/testproj/testproj/testapp/tests.py b/src/testproj/testproj/testapp/tests.py similarity index 100% rename from testproj/testproj/testapp/tests.py rename to src/testproj/testproj/testapp/tests.py diff --git a/testproj/testproj/testapp/views.py b/src/testproj/testproj/testapp/views.py similarity index 100% rename from testproj/testproj/testapp/views.py rename to src/testproj/testproj/testapp/views.py diff --git a/testproj/testproj/urls.py b/src/testproj/testproj/urls.py similarity index 100% rename from testproj/testproj/urls.py rename to src/testproj/testproj/urls.py diff --git a/testproj/testproj/wsgi.py b/src/testproj/testproj/wsgi.py similarity index 100% rename from testproj/testproj/wsgi.py rename to src/testproj/testproj/wsgi.py diff --git a/webstack_django_sorting/__init__.py b/src/webstack_django_sorting/__init__.py similarity index 100% rename from webstack_django_sorting/__init__.py rename to src/webstack_django_sorting/__init__.py diff --git a/webstack_django_sorting/common.py b/src/webstack_django_sorting/common.py similarity index 100% rename from webstack_django_sorting/common.py rename to src/webstack_django_sorting/common.py diff --git a/webstack_django_sorting/jinja2_globals.py b/src/webstack_django_sorting/jinja2_globals.py similarity index 100% rename from webstack_django_sorting/jinja2_globals.py rename to src/webstack_django_sorting/jinja2_globals.py diff --git a/webstack_django_sorting/settings.py b/src/webstack_django_sorting/settings.py similarity index 100% rename from webstack_django_sorting/settings.py rename to src/webstack_django_sorting/settings.py diff --git a/webstack_django_sorting/templatetags/__init__.py b/src/webstack_django_sorting/templatetags/__init__.py similarity index 100% rename from webstack_django_sorting/templatetags/__init__.py rename to src/webstack_django_sorting/templatetags/__init__.py diff --git a/webstack_django_sorting/templatetags/sorting_tags.py b/src/webstack_django_sorting/templatetags/sorting_tags.py similarity index 100% rename from webstack_django_sorting/templatetags/sorting_tags.py rename to src/webstack_django_sorting/templatetags/sorting_tags.py