Skip to content

Commit 3431f75

Browse files
committed
(env): add pyproject.toml w/ poetry build-system
- use poetry primarily for dependency management moving forward - would also like to use for simplifying packaging as well in the future - add most of everything from MANIFEST.in, setup.cfg, and setup.py into poetry sections - TODO: remove MANIFEST.in, setup.cfg, setup.py etc once the builds are completely equivalent - currently doesn't build a (dated) egg, has less keywords, and custom URLs may not work in this version (needs a 1.0.0 prerelease probably) - setup.py in tarball is missing a lot, including classifiers, long_description_content_type, keywords, project_urls, and is using distutils instead of setuptools - think most are fixed in the 1.0.0 prereleases - tarball is also missing egg-info - unsupported by poetry and probably unnecessary anyway tbh, not sure if any users used eggs - PKG-INFO has keywords comma separated instead of space separated as the setup.py (i.e. non-poetry) does
1 parent b0cbb8d commit 3431f75

File tree

1 file changed

+73
-0
lines changed

1 file changed

+73
-0
lines changed

pyproject.toml

+73
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
[tool.poetry]
2+
name = "django-serializable-model"
3+
version = "0.0.5"
4+
description = "Django classes to make your models, managers, and querysets serializable, with built-in support for related objects in ~100 LoC"
5+
readme = "README.md"
6+
7+
packages = [
8+
{ include = "django_serializable_model.py" },
9+
# this is the original, unintended name, and should be removed in the
10+
# first breaking/major release, v1.0.0. See `serializable.py` comment.
11+
{ include = "serializable.py" }
12+
]
13+
include = [
14+
"LICENSE",
15+
"CHANGELOG.md"
16+
]
17+
18+
authors = ["Anton Gilgur"]
19+
license = "Apache-2.0"
20+
homepage = "https://github.com/agilgur5/django-serializable-model"
21+
repository = "https://github.com/agilgur5/django-serializable-model"
22+
documentation = "https://github.com/agilgur5/django-serializable-model"
23+
24+
classifiers=[
25+
"Natural Language :: English",
26+
"Intended Audience :: Developers",
27+
"Topic :: Software Development :: Libraries",
28+
"License :: OSI Approved :: Apache Software License",
29+
30+
"Development Status :: 3 - Alpha",
31+
"Operating System :: OS Independent",
32+
"Programming Language :: Python :: 2",
33+
"Programming Language :: Python :: 2.7",
34+
"Programming Language :: Python :: 3",
35+
"Framework :: Django",
36+
"Framework :: Django :: 1.4",
37+
"Framework :: Django :: 1.5",
38+
"Framework :: Django :: 1.6",
39+
"Framework :: Django :: 1.7",
40+
"Framework :: Django :: 1.8",
41+
"Framework :: Django :: 1.9",
42+
"Framework :: Django :: 1.10",
43+
"Framework :: Django :: 1.11",
44+
"Framework :: Django :: 2.0",
45+
"Framework :: Django :: 2.1",
46+
"Framework :: Django :: 2.2"
47+
]
48+
keywords=[
49+
"django",
50+
"serializer",
51+
"serializers",
52+
"serializer-django",
53+
"serialize",
54+
"json",
55+
"dict",
56+
"queryset",
57+
"model",
58+
"modelmanager",
59+
"full",
60+
"wadofstuff"
61+
]
62+
63+
[tool.poetry.urls]
64+
"Tracker" = "https://github.com/agilgur5/django-serializable-model/issues"
65+
66+
[tool.poetry.dependencies]
67+
python = "^2.7 || ^3"
68+
69+
[tool.poetry.dev-dependencies]
70+
71+
[build-system]
72+
requires = ["poetry>=0.12"]
73+
build-backend = "poetry.masonry.api"

0 commit comments

Comments
 (0)