-
Notifications
You must be signed in to change notification settings - Fork 12
/
setup.py
104 lines (100 loc) · 3.21 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
from __future__ import annotations
from pathlib import Path
from setuptools import find_namespace_packages, setup
readme_file = Path(__file__).parent / 'README.md'
if readme_file.exists():
with readme_file.open() as f:
long_description = f.read()
else:
# When this is first installed in development Docker, README.md is not available
long_description = ''
setup(
name='dandiapi',
description='',
# Determine version with scm
use_scm_version={'version_scheme': 'post-release'},
long_description=long_description,
long_description_content_type='text/markdown',
license='Apache 2.0',
author='Kitware, Inc.',
author_email='[email protected]',
keywords='',
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Framework :: Django :: 3.0',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python',
],
python_requires='>=3.11',
packages=find_namespace_packages(include=['dandiapi*']),
include_package_data=True,
install_requires=[
'celery',
'dandi',
# Pin dandischema to exact version to make explicit which schema version is being used
'dandischema==0.10.2', # schema version 0.6.8
'django~=4.1.0',
'django-admin-display',
# Require 0.58.0 as it is the first version to support postgres' native
# JSONField for SocialAccount.extra_data
'django-allauth>=0.58.0',
'django-click',
'django-configurations[database,email]',
'django-extensions',
'django-filter',
'django-guardian',
'django-oauth-toolkit>=1.7,<2',
# TODO: pin this until we figure out what the cause of
# https://github.com/dandi/dandi-archive/issues/1894 is.
'djangorestframework==3.14.0',
'djangorestframework-yaml',
'drf-extensions',
'drf-yasg',
'fsspec[http]',
'jsonschema',
'boto3[s3]',
'more_itertools',
'requests',
's3-log-parse',
'zarr-checksum>=0.2.8',
# Production-only
'django-composed-configuration[prod]>=0.23.0',
'django-s3-file-field[s3]>=1.0.0',
'django-storages[s3]==1.14.3',
'gunicorn',
# Development-only, but required
'django-minio-storage',
'minio>7',
'tqdm',
],
extras_require={
'dev': [
'django-composed-configuration[dev]>=0.23.0',
'django-debug-toolbar',
'django-s3-file-field[minio]',
'ipython',
'tox',
'memray',
'boto3-stubs[s3]',
'django-stubs',
'djangorestframework-stubs',
'types-setuptools',
],
'test': [
'factory-boy',
'freezegun',
'pytest',
'pytest-cov',
'pytest-django',
'pytest-factoryboy',
'pytest-memray',
'pytest-mock',
],
},
)