forked from nautobot/nautobot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
195 lines (188 loc) · 6.14 KB
/
pyproject.toml
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
[tool.poetry]
name = "nautobot"
# Primary package version gets set here. This is used for publishing, and once
# installed, `nautobot.__version__` will have this version number.
version = "1.2.8-beta.1"
description = "Source of truth and network automation platform."
authors = ["Network to Code <[email protected]>"]
license = "Apache-2.0"
homepage = "https://nautobot.com"
repository = "https://github.com/nautobot/nautobot"
documentation = "https://nautobot.readthedocs.io"
readme = "README.md"
keywords = ["Nautobot"]
classifiers = [
"Intended Audience :: Developers",
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
]
packages = [
{include = "nautobot"}
]
include = [
"CHANGELOG.md",
"CONTRIBUTING.md",
"LICENSE.txt",
"NOTICE",
]
[tool.poetry.dependencies]
python = "^3.6"
# Background task processing
celery = [
{version = "~5.2.2", python = "^3.7"},
{version = "~5.1.2", python = "<3.7"},
]
# Fundamental web framework for Nautobot
Django = "~3.1.12"
# Adds AJAX capabilities to django-tables2
django-ajax-tables = "~1.1.1"
# LDAP Support
django-auth-ldap = {version = "~3.0.0", optional = true}
# Caching with Redis
django-cacheops = "~5.1"
# Base functionality for task scheduling with Celery
django-celery-beat = "^2.2.0"
# Management of app configuration via the Django admin UI
django-constance = {version = "~2.8.0", extras = ["database"]}
# Permit cross-domain API requests
django-cors-headers = "~3.7.0"
# Support for encrypted database fields
django-cryptography = "~1.0"
# Store files in the database for background tasks
django-db-file-storage = "~0.5.5"
# AutoSlugField and shell_plus
django-extensions = "~3.1.5"
# Advanced query filters
django-filter = "~2.4.0"
# Health check endpoint
django-health-check = "^3.16.4"
# Django Jinja - jinja2 backend for django, used to easily register custom jinja filters and render jinja.
django-jinja = "<2.8.0"
# Modified Preorder Tree Traversal - tree structure for Region, RackGroup, etc.
django-mptt = "~0.11.0"
# Prometheus metrics for Django
django-prometheus = "~2.1.0"
# Redis cache for Django used for distributed locking
django-redis = "~5.2.0"
# RQ (Redis Queueing) for background handlin of webhooks, jobs, etc.
django-rq = "~2.4.1"
# External Storage support (i.e. S3)
django-storages = {version = "~1.12.3", optional = true}
# Advanced HTML tables
django-tables2 = "~2.3.4"
# Tags
django-taggit = "~1.3.0"
# Represent time zones in Django
django-timezone-field = "~4.1.2"
# Run production webservers such as uWSGI/gunicorn as a Django management command.
django-webserver = "~1.2.0"
# REST API framework
djangorestframework = "~3.12.4"
# Swagger schema generation for the REST API
drf-yasg = {extras = ["validation"], version = "~1.20.0"}
# Git integrations for Python
GitPython = "3.1.18"
# GraphQL support
graphene-django = "~2.15.0"
# Graphene Optimizer
graphene-django-optimizer = "~0.8.0"
# Package version detection in older versions of Python
importlib-metadata = {version = "~4.4", python = "<3.10"}
# Template rendering engine
Jinja2 = "~2.11.3"
# Optional data validation of config contexts
jsonschema = "~3.2.0"
# Rendering of markdown files to HTML
Markdown = "~3.3.6"
# Escape text to use HTML and XML. NOTE: later versions are not compatible with Jinja2 2.x
MarkupSafe = "2.0.1"
# MySQL database adapter
mysqlclient = {version = "~2.0.3", optional = true}
# NAPALM automation library
napalm = {version = "^3.3.1", optional = true}
# IP prefix and address handling
netaddr = "~0.8.0"
# Library of network related Jinja Filters
netutils = "~1.0.0"
# Image processing library
Pillow = [
{version = "~9.0.0", python = "^3.7"},
{version = "~8.3.2", python = "<3.7"},
]
# PostgreSQL database adapter
psycopg2-binary = "~2.8.6"
# Cryptographic library
pycryptodome = "~3.10.1"
# The uWSGI WSGI HTTP server as a Python module
pyuwsgi = "~2.0.19.1.post0"
# YAML parsing and rendering
PyYAML = "~5.4.1"
# Social authentication core
social-auth-core = {extras = ["openidconnect", "saml"], version = "~4.1.0", optional = true}
# Social authentication/registration with support for many auth providers
social-auth-app-django = "^4.0.0"
# Rendering of SVG images (for rack elevations, etc.)
svgwrite = "~1.4.1"
[tool.poetry.extras]
all = ["django-auth-ldap", "django-storages", "mysqlclient", "napalm", "social-auth-core"]
ldap = ["django-auth-ldap"]
mysql = ["mysqlclient"]
napalm = ["napalm"]
# This is not currently possible, there is a feature request with Poetry https://github.com/python-poetry/poetry/issues/3913
# openid = ["social-auth-core[openidconnect]"]
remote_storage = ["django-storages"]
# This is not currently possible, there is a feature request with Poetry https://github.com/python-poetry/poetry/issues/3913
# saml = ["social-auth-core[saml]"]
sso = ["social-auth-core"]
[tool.poetry.dev-dependencies]
# Code style enforcement
black = {version="^21.10b0", python="^3.6.2"}
# Test code coverage measurement
coverage = "~5.4"
# Tool for debugging Django
django-debug-toolbar = "~3.2.1"
# Nautobot dummy plugin used for testing
dummy-plugin = {path = "examples/dummy_plugin", develop = true}
# Code style checking and limited static analysis
flake8 = "~3.9.1"
# Alternative to Make, CLI based on `tasks.py`
invoke = "~1.5.0"
# Allow Markdown files to include other files
mkdocs-include-markdown-plugin = "~3.0.1"
# Rendering docs to HTML
mkdocs = "~1.2.3"
# Integration Tests
requests = "~2.25.1"
# Selenium web drivers for live integration testing
selenium = "~3.141.0"
# Abstraction layer for working with Selenium
splinter = "~0.14.0"
[tool.poetry.scripts]
nautobot-server = "nautobot.core.cli:main"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 120
target-version = ['py36']
include = '\.pyi?$'
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
)
'''