diff --git a/.gitignore b/.gitignore index b2c12e7..42f53d4 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,5 @@ htmlcov/ test_proj/media .python-version /test-media/ +.envrc +.direnv/ diff --git a/pyproject.toml b/pyproject.toml index 499f48d..66bcc54 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,20 +1,14 @@ -[tool.poetry] +[build-system] +requires = ["setuptools>=65.6.3", "wheel"] +build-backend = "setuptools.build_meta" + +[project] name = "django-avatar" -version = "7.0.1" description = "A Django app for handling user avatars" -authors = ["Eric Florenzano "] -maintainers = ["Johannes Wilm "] -license = "BSD-4-Clause" +authors = [{email = "floguy@gmail.com", name = "Eric Florenzano"}] +maintainers = [{email = "johannes@fiduswriter.org", name = "Johannes Wilm"}] +license = {text = "BSD-4-Clause"} readme = "README.rst" -packages = [ - { include = "avatar" }, -] -exclude = [ - { path = "tests"}, -] -homepage = "https://github.com/jazzband/django-avatar" -repository = "https://github.com/jazzband/django-avatar" -documentation = "https://django-avatar.readthedocs.io" keywords=["avatar", "django"] classifiers=[ "Development Status :: 5 - Production/Stable", @@ -34,17 +28,13 @@ classifiers=[ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", ] +dynamic = ["version", "dependencies"] -[tool.poetry.dependencies] -python = "^3.7" -Pillow = "^9.4.0" -django-appconf = "^1.0.5" -dnspython = "^2.3.0" - -[tool.poetry.group.dev.dependencies] -coverage = "^7.1.0" -python-magic = "^0.4.27" +[project.urls] +homepage = "https://github.com/jazzband/django-avatar" +repository = "https://github.com/jazzband/django-avatar" +documentation = "https://django-avatar.readthedocs.io" -[build-system] -requires = ["poetry-core"] -build-backend = "poetry.core.masonry.api" +[tool.setuptools.dynamic] +version = {attr = "avatar.__version__"} +dependencies = {file = "requirements.txt"} diff --git a/setup.py b/setup.py index d63cfff..e1c329e 100644 --- a/setup.py +++ b/setup.py @@ -20,35 +20,6 @@ def find_version(*file_paths): setup( - name="django-avatar", - version=find_version("avatar", "__init__.py"), - description="A Django app for handling user avatars", - long_description=read("README.rst"), - classifiers=[ - "Development Status :: 5 - Production/Stable", - "Environment :: Web Environment", - "Framework :: Django", - "Intended Audience :: Developers", - "Framework :: Django", - "Framework :: Django :: 3.2", - "Framework :: Django :: 4.0", - "Framework :: Django :: 4.1", - "License :: OSI Approved :: BSD License", - "Operating System :: OS Independent", - "Programming Language :: Python", - "Programming Language :: Python :: 3.6", - "Programming Language :: Python :: 3.7", - "Programming Language :: Python :: 3.8", - "Programming Language :: Python :: 3.9", - "Programming Language :: Python :: 3.10", - ], - keywords="avatar, django", - author="Eric Florenzano", - author_email="floguy@gmail.com", - maintainer="Johannes Wilm", - maintainer_email="johannes@fiduswriter.org", - url="https://github.com/jazzband/django-avatar/", - license="BSD", packages=find_packages(exclude=["tests"]), package_data={ "avatar": [ @@ -58,10 +29,5 @@ def find_version(*file_paths): "media/avatar/img/default.jpg", ], }, - install_requires=[ - "Pillow>=8.4.0", - "django-appconf>=1.0.5", - "dnspython>=2.3.0", - ], zip_safe=False, )