-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
103 additions
and
102 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
|
@@ -2,4 +2,4 @@ bandit==1.7.4 | |
black==22.1.0 | ||
flake8==4.0.1 | ||
isort==5.10.1 | ||
pydocstyle==6.1.1 | ||
pydocstyle[toml]==6.1.1 |
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,71 @@ | ||
[build-system] | ||
requires = ["flit_core>=3.2", "flit_scm", "wheel"] | ||
build-backend = "flit_scm:buildapi" | ||
|
||
[project] | ||
name = "django-s3file" | ||
authors = [ | ||
{ name = "Johannes Maron", email = "[email protected]" } | ||
] | ||
readme = "README.rst" | ||
license = { file = "LICENSE" } | ||
dynamic = ["version", "description"] | ||
classifiers = [ | ||
"Development Status :: 6 - Mature", | ||
"Environment :: Web Environment", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python", | ||
"Programming Language :: JavaScript", | ||
"Topic :: Software Development", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Framework :: Django", | ||
"Framework :: Django :: 3.2", | ||
"Framework :: Django :: 4.0", | ||
] | ||
requires-python = ">=3.9" | ||
dependencies = [ | ||
"django>=2.0", | ||
"django-storages", | ||
"boto3", | ||
] | ||
|
||
[project.optional-dependencies] | ||
test = [ | ||
"pytest >=2.7.3", | ||
"pytest-cov", | ||
"pytest-django", | ||
"selenium", | ||
] | ||
|
||
[project.urls] | ||
Project-URL = "https://github.com/codingjoe/django-s3file" | ||
|
||
[tool.flit.module] | ||
name = "s3file" | ||
|
||
[tool.setuptools_scm] | ||
write_to = "s3file/_version.py" | ||
|
||
[tool.pytest.ini_options] | ||
minversion = "6.0" | ||
addopts = "--cov=s3file --cov-report xml --tb=short -rxs" | ||
testpaths = [ | ||
"tests", | ||
] | ||
DJANGO_SETTINGS_MODULE = "tests.testapp.settings" | ||
|
||
[tool.isort] | ||
atomic = true | ||
line_length = 88 | ||
known_first_party = "s3file, tests" | ||
include_trailing_comma = true | ||
default_section = "THIRDPARTY" | ||
combine_as_imports = true | ||
|
||
[tool.pydocstyle] | ||
add_ignore = "D1" |
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 +1,11 @@ | ||
default_app_config = "s3file.apps.S3FileConfig" | ||
"""A lightweight file uploader input for Django and Amazon S3.""" | ||
|
||
import django | ||
|
||
from . import _version | ||
|
||
__version__ = _version.version | ||
VERSION = _version.version_tuple | ||
|
||
if django.VERSION < (4, 0): | ||
default_app_config = "s3file.apps.S3FileConfig" |
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,78 +1,8 @@ | ||
[metadata] | ||
name = django-s3file | ||
author = Johannes Hoppe | ||
author_email = [email protected] | ||
description = A lightweight file uploader input for Django and Amazon S3 | ||
long_description = file: README.rst | ||
long_description_content_type = text/x-rst | ||
url = https://github.com/codingjoe/django-s3file | ||
license = MIT | ||
license_files = LICENSE | ||
classifier = | ||
Development Status :: 6 - Mature | ||
Environment :: Web Environment | ||
Framework :: Django | ||
Intended Audience :: Developers | ||
License :: OSI Approved :: MIT License | ||
Operating System :: OS Independent | ||
Programming Language :: Python | ||
Programming Language :: JavaScript | ||
Topic :: Software Development | ||
Programming Language :: Python :: 3 | ||
Programming Language :: Python :: 3 :: Only | ||
Programming Language :: Python :: 3.6 | ||
Programming Language :: Python :: 3.7 | ||
Programming Language :: Python :: 3.8 | ||
Programming Language :: Python :: 3.9 | ||
Framework :: Django | ||
Framework :: Django :: 2.2 | ||
Framework :: Django :: 3.1 | ||
|
||
[options] | ||
include_package_data = True | ||
packages = find: | ||
install_requires = | ||
django>=2.0 | ||
django-storages | ||
boto3 | ||
setup_requires = | ||
setuptools_scm | ||
pytest-runner | ||
tests_require = | ||
pytest | ||
pytest-cov | ||
pytest-django | ||
selenium | ||
|
||
[options.package_data] | ||
* = *.txt, *.rst, *.html, *.po | ||
|
||
[options.packages.find] | ||
exclude = | ||
tests | ||
|
||
[bdist_wheel] | ||
universal = 1 | ||
|
||
[aliases] | ||
test = pytest | ||
|
||
[tool:pytest] | ||
addopts = --cov=s3file --cov-report xml --tb=short -rxs | ||
DJANGO_SETTINGS_MODULE=tests.testapp.settings | ||
|
||
[flake8] | ||
max-line-length=88 | ||
select = C,E,F,W,B,B950 | ||
ignore = E203, E501, W503, E731 | ||
|
||
[pydocstyle] | ||
add_ignore = D1 | ||
|
||
[isort] | ||
atomic = true | ||
line_length = 88 | ||
known_first_party = s3file, tests | ||
include_trailing_comma = True | ||
default_section=THIRDPARTY | ||
combine_as_imports = true | ||
|
||
|
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