Skip to content

Commit ae18dae

Browse files
committed
initalize package with uv
1 parent a6a2b8c commit ae18dae

21 files changed

Lines changed: 109 additions & 41 deletions

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.13

.travis.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

README.md

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,29 @@ django-resumable-async-upload is a django app to allow you to upload large files
77
## Installation
88

99
- pip install django-resumable-async-upload
10-
- Add `admin_async_upload` to your `INSTALLED_APPS`
11-
- Add `re_path(r"^admin_async_upload/", include("admin_async_upload.urls")),` to your urls.py
12-
- Add a model field eg: `from admin_resumable.models import ResumableFileField`
10+
- Add `django_resumable_async_upload` to your `INSTALLED_APPS`
11+
- Add `re_path(r"^django_resumable_async_upload/", include("django_resumable_async_upload.urls")),` to your urls.py
12+
- Add in your models field
1313

1414
```
15-
class Foo(models.Model):
16-
bar = models.CharField(max_length=200)
17-
foo = AsyncFileField()
15+
from django_resumable_async_upload.models import AsyncFileField
16+
17+
class Foo(models.Model):
18+
bar = models.CharField(max_length=200)
19+
foo = AsyncFileField()
20+
```
21+
22+
- Add in your admin form:
23+
24+
```
25+
from django_resumable_async_upload.fields import FormResumableMultipleFileField
26+
from django_resumable_async_upload.widgets import ResumableAdminWidget
27+
28+
class MultiUploadForm(forms.ModelForm):
29+
files = FormResumableMultipleFileField(
30+
required=False,
31+
widget=ResumableAdminWidget(attrs={"model": File, "field_name": "file"}),
32+
)
1833
```
1934

2035
Optional Settings:
@@ -32,7 +47,7 @@ Optional Param for `AsyncFileField`
3247

3348
## Versions
3449

35-
4.2.0 - inital fork of django-admin-async-upload 3.0.4 with support for Django 4 and later. Includes admin form updates to pause, resume, cancel and track progress of upload.
50+
0.1.0 - inital fork of django-async-upload 4.0.1 with support for Django 4 and later. Includes admin form updates to pause, resume, cancel and track progress of upload. Also supports uploads of multiple files
3651

3752
## Compatibility
3853

pyproject.toml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
[project]
2+
name = "django-resumable-async-upload"
3+
version = "0.1.1"
4+
description = "A Django app for the uploading of large files from the django admin site."
5+
readme = "README.md"
6+
authors = [
7+
{ name = "Paige Williams", email = "pwilliams@ecotrust.org" }
8+
]
9+
requires-python = ">=3.13"
10+
11+
dependencies = ["Django>=3.0.14"]
12+
classifiers=[
13+
"Environment :: Web Environment",
14+
"Framework :: Django",
15+
"Intended Audience :: Developers",
16+
"License :: OSI Approved :: MIT License",
17+
"Operating System :: OS Independent",
18+
"Programming Language :: Python",
19+
"Programming Language :: Python :: 3.12",
20+
"Topic :: Internet :: WWW/HTTP",
21+
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
22+
]
23+
24+
[project.urls]
25+
Homepage = "https://github.com/Ecotrust/django-resumable-async-upload"
26+
Issues = "https://github.com/Ecotrust/django-resumable-async-upload/issues"
27+
28+
[build-system]
29+
requires = ["uv_build>=0.9.16,<0.10.0"]
30+
build-backend = "uv_build"

setup.cfg

Lines changed: 0 additions & 2 deletions
This file was deleted.

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
setup(
1111
name="django-resumable-async-upload",
1212
version="4.2.0",
13-
packages=["admin_async_upload"],
13+
packages=["admin_resumable_async_upload"],
1414
include_package_data=True,
1515
package_data={
1616
"admin_async_upload": [
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)