Skip to content

Commit 0da55d3

Browse files
committed
pyproject.toml + poetry [ENG-9692]
1 parent f5b9312 commit 0da55d3

File tree

2 files changed

+94
-3
lines changed

2 files changed

+94
-3
lines changed

pyproject.toml

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
[project]
2+
name = "django-elasticsearch-metrics"
3+
version = "2022.0.6"
4+
description = "Django app for storing time-series metrics in Elasticsearch."
5+
authors = [
6+
{name = "CenterForOpenScience", email = "[email protected]"}
7+
]
8+
readme = "README.md"
9+
license = "MIT"
10+
requires-python = ">=3.5"
11+
import-names = ["elasticsearch_metrics"]
12+
keywords = [
13+
"django",
14+
"elastic",
15+
"elasticsearch",
16+
"elasticsearch-dsl",
17+
"time-series",
18+
"metrics",
19+
"statistics",
20+
]
21+
classifiers = [
22+
"Operating System :: OS Independent",
23+
"Programming Language :: Python",
24+
"Programming Language :: Python :: 3",
25+
"Programming Language :: Python :: 3.5",
26+
"Programming Language :: Python :: 3.6",
27+
"Programming Language :: Python :: 3.7",
28+
"Programming Language :: Python :: 3.8",
29+
"Programming Language :: Python :: 3.9",
30+
"Programming Language :: Python :: 3.10",
31+
"Framework :: Django",
32+
"Framework :: Django :: 1.11",
33+
"Framework :: Django :: 2.0",
34+
"Framework :: Django :: 2.1",
35+
"Framework :: Django :: 2.2",
36+
"Framework :: Django :: 3.0",
37+
"Framework :: Django :: 3.1",
38+
"Framework :: Django :: 3.2",
39+
"Framework :: Django :: 4.0",
40+
"Framework :: Django :: 4.1",
41+
"Environment :: Web Environment",
42+
"Intended Audience :: Developers",
43+
"Topic :: Internet :: WWW/HTTP",
44+
"Topic :: Software Development :: Libraries :: Python Modules",
45+
]
46+
dependencies = [
47+
"elasticsearch6-dsl>=6.3.0,<7.0.0",
48+
]
49+
50+
[project.urls]
51+
repository = "http://github.com/CenterForOpenScience/django-elasticsearch-metrics"
52+
changelog = "https://github.com/CenterForOpenScience/django-elasticsearch-metrics/blob/master/CHANGELOG.md"
53+
54+
[dependency-groups]
55+
tests = [
56+
"pytest",
57+
"mock",
58+
"pytest-django==3.10.0",
59+
"factory-boy==2.11.1",
60+
]
61+
lint = [
62+
"flake8==5.0.4",
63+
'flake8-bugbear==18.8.0; python_version >= "3.5"',
64+
"pre-commit==2.17.0",
65+
]
66+
dev = [
67+
{ include-group = "tests" },
68+
{ include-group = "lint" },
69+
"konch>=3.0.0",
70+
"tox",
71+
]
72+
73+
[tool.poetry.group.tests]
74+
optional = true
75+
76+
[tool.poetry.group.lint]
77+
optional = true
78+
79+
[tool.poetry.group.dev]
80+
optional = true
81+
82+
[tool.poetry]
83+
exclude = ["tests"]
84+
85+
[build-system]
86+
requires = ["poetry-core>=2.0.0,<3.0.0"]
87+
build-backend = "poetry.core.masonry.api"

testbox.Dockerfile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1-
FROM python:3.9-slim as testbox
1+
FROM python:3.13-slim as testbox
2+
3+
RUN apt-get update \
4+
&& apt-get install -y pipx \
5+
&& pipx install poetry
26

37
RUN mkdir -p /code
48
WORKDIR /code
59
COPY ./ /code
610

7-
RUN pip install .[dev]
11+
RUN poetry install . --with dev
812

9-
CMD ["tox"]
13+
CMD ["poetry", "run", "tox"]

0 commit comments

Comments
 (0)