Skip to content

Commit

Permalink
Move config into pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
stevelacey committed Jan 31, 2023
1 parent f5d2ba9 commit b2424ec
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 79 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ RUN pip3 install pipenv==2020.11.15

COPY Pipfile Pipfile
COPY Pipfile.lock Pipfile.lock
COPY setup.py setup.py
COPY pyproject.toml pyproject.toml
COPY worf/ worf/

RUN pipenv install --dev --deploy --python 3.10.9
4 changes: 2 additions & 2 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ verify_ssl = true
name = "pypi"

[packages]
# Packages are maintained in setup.py under install_requires
worf = {editable = true, path = "."}
# Packages are maintained in pyproject.toml under dependencies
worf = {path = "."}

[dev-packages]
autoflake = "*"
Expand Down
41 changes: 41 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,37 @@
[project]
name = "worf"
url = "https://github.com/gundotio/worf"
description = "Wade's own REST Framework: A more Djangonic approach to REST APIs"
authors = [
{name = "Wade Williams", email = "[email protected]"},
{name = "Steve Lacey", email = "[email protected]"},
]
keywords = ["django", "rest", "framework", "api"]
license = "MIT"
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Web Environment",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.0",
"Framework :: Django :: 4.1",
"Framework :: Django",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"Django>=3.0.0,<4.2",
"dj-url-filter>=0.4.2",
"marshmallow>=3.18.0",
]
dynamic = ["readme", "version"]
requires-python = ">=3.9"
zip-safe = false

[tool.black]
line-length = 88

Expand Down Expand Up @@ -45,3 +79,10 @@ known_django = "django"
known_firstparty = "worf"
profile = "black"
sections = "FUTURE,STDLIB,THIRDPARTY,DJANGO,FIRSTPARTY,LOCALFOLDER"

[tool.setuptools.dynamic]
version = {attr = "worf.__version__"}
readme = {file = ["README.md"], content-type = "text/markdown"}

[tool.setuptools.packages.find]
exclude = ["tests*"]
16 changes: 0 additions & 16 deletions setup.cfg

This file was deleted.

60 changes: 0 additions & 60 deletions setup.py

This file was deleted.

0 comments on commit b2424ec

Please sign in to comment.