-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from pinax/updates
Updates
- Loading branch information
Showing
13 changed files
with
152 additions
and
206 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: Lints and Tests | ||
on: [push] | ||
jobs: | ||
lint: | ||
name: Linting | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: isort | ||
uses: jamescurtin/isort-action@master | ||
|
||
- name: Lints | ||
uses: py-actions/flake8@v1 | ||
with: | ||
ignore: "E265,E501" | ||
max-line-length: "100" | ||
exclude: "pinax/images/migrations,docs" | ||
path: pinax | ||
|
||
|
||
test: | ||
name: Testing | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python: [3.6, 3.7, 3.8, 3.9, "3.10"] | ||
django: [2.2.*, 3.2.*] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
|
||
- name: Install Django and Testing Tools | ||
run: | | ||
pip install Django==${{ matrix.django }} coverage django-test-plus | ||
pip install . | ||
- name: Running Python Tests | ||
run: coverage run runtests.py | ||
- name: Upload Coverage Report | ||
if: matrix.django == '3.2.*' && matrix.python == '3.10' | ||
run: | | ||
pip install codecov | ||
coverage xml | ||
codecov --required -X search gcov pycov -f coverage.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
import django | ||
|
||
import pkg_resources | ||
|
||
default_app_config = "pinax.images.apps.AppConfig" | ||
if django.__version__ < "3.2": # Deprecated in 4.1 but needed in 2.2 still | ||
default_app_config = "pinax.images.apps.AppConfig" | ||
|
||
__version__ = pkg_resources.get_distribution("pinax-images").version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
from django.conf.urls import include, url | ||
from django.urls import include, path | ||
|
||
urlpatterns = [ | ||
url(r"^", include("pinax.images.urls", namespace="pinax_images")), | ||
path("", include("pinax.images.urls", namespace="pinax_images")), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
from django.conf.urls import url | ||
from django.urls import path | ||
|
||
from . import views | ||
|
||
app_name = "pinax_images" | ||
|
||
urlpatterns = [ | ||
url(r"^sets/new/upload/$", views.ImageSetUploadView.as_view(), name="imageset_new_upload"), | ||
url(r"^sets/(?P<pk>\d+)/upload/$", views.ImageSetUploadView.as_view(), name="imageset_upload"), | ||
url(r"^sets/(?P<pk>\d+)/$", views.ImageSetDetailView.as_view(), name="imageset_detail"), | ||
url(r"^(?P<pk>\d+)/delete/$", views.ImageDeleteView.as_view(), name="image_delete"), | ||
url(r"^(?P<pk>\d+)/make-primary/$", views.ImageTogglePrimaryView.as_view(), name="image_make_primary"), | ||
path("sets/new/upload/", views.ImageSetUploadView.as_view(), name="imageset_new_upload"), | ||
path("sets/<int:pk>/upload/", views.ImageSetUploadView.as_view(), name="imageset_upload"), | ||
path("sets/<int:pk>/", views.ImageSetDetailView.as_view(), name="imageset_detail"), | ||
path("<int:pk>/delete/", views.ImageDeleteView.as_view(), name="image_delete"), | ||
path("<int:pk>/make-primary/", views.ImageTogglePrimaryView.as_view(), name="image_make_primary"), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[build-system] | ||
requires = [ | ||
"setuptools>=42", | ||
"wheel" | ||
] | ||
build-backend = "setuptools.build_meta" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
[metadata] | ||
name = pinax-images | ||
version = 5.0.0 | ||
author = Pinax Team | ||
author_email = [email protected] | ||
description = an app for managing collections of images associated with a content object | ||
long_description = file: README.md | ||
long_description_content_type = text/markdown | ||
url = https://github.com/pinax/pinax-images/ | ||
license = MIT | ||
classifiers = | ||
Development Status :: 5 - Production/Stable | ||
Environment :: Web Environment | ||
Framework :: Django | ||
Framework :: Django :: 2.2 | ||
Framework :: Django :: 3.2 | ||
Intended Audience :: Developers | ||
License :: OSI Approved :: MIT License | ||
Operating System :: OS Independent | ||
Programming Language :: Python | ||
Programming Language :: Python :: 3 | ||
Programming Language :: Python :: 3.6 | ||
Programming Language :: Python :: 3.7 | ||
Programming Language :: Python :: 3.8 | ||
Programming Language :: Python :: 3.9 | ||
Programming Language :: Python :: 3.10 | ||
Topic :: Software Development :: Libraries :: Python Modules | ||
|
||
[options] | ||
package_dir = | ||
= pinax | ||
packages = find: | ||
install_requires = | ||
django>=2.2 | ||
django-imagekit>=4.0.2 | ||
pilkit>=2.0.0 | ||
pillow>=7.1.2 | ||
pytz>=2020.1 | ||
zip_safe = False | ||
|
||
[options.packages.find] | ||
where = pinax |
Oops, something went wrong.