Skip to content

Commit

Permalink
switch to setuptools, fixes #227
Browse files Browse the repository at this point in the history
  • Loading branch information
johanneswilm committed Feb 23, 2023
1 parent 1077a6b commit 5025be2
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 60 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ htmlcov/
test_proj/media
.python-version
/test-media/
.envrc
.direnv/
42 changes: 16 additions & 26 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <floguy@gmail.com>"]
maintainers = ["Johannes Wilm <johannes@fiduswriter.org>"]
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",
Expand All @@ -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"}
34 changes: 0 additions & 34 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand All @@ -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,
)

0 comments on commit 5025be2

Please sign in to comment.