From 47837f451618ebc5299ded7da75211976253355f Mon Sep 17 00:00:00 2001 From: Oliver Falk Date: Tue, 3 Jan 2023 15:37:51 +0100 Subject: [PATCH] Add the usual project files in order to build a tarball more easily --- MANIFEST.in | 10 ++++++++++ pyproject.toml | 3 +++ setup.cfg | 33 +++++++++++++++++++++++++++++++++ setup.py | 6 ++++++ 4 files changed, 52 insertions(+) create mode 100644 MANIFEST.in create mode 100644 pyproject.toml create mode 100644 setup.cfg create mode 100644 setup.py diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..1181259 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,10 @@ +include *.py +include *.md +include COPYING +include LICENSE +recursive-include templates * +recursive-include ivatar * +exclude .virtualenv +exclude libravatar.egg-info +global-exclude *.py[co] +global-exclude __pycache__ diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..94a5dae --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ['setuptools>=40.8.0', 'wheel'] +build-backend = 'setuptools.build_meta:__legacy__' diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..ee8d31d --- /dev/null +++ b/setup.cfg @@ -0,0 +1,33 @@ +[metadata] +name = libravatar +version = 1.7.0 +description = A Django application implementing libravatar.org +long_description = file: README.md +url = https://libravatar.org +author = Oliver Falk +author_email = oliver@linux-kernel.at +license = GPLv3 +classifiers = + Environment :: Web Environment + Framework :: Django + Framework :: Django :: 3.2 + Framework :: Django :: 4.0 + Framework :: Django :: 4.1 + License :: OSI Approved :: GNU General Public License v3 (GPLv3) + Operating System :: OS Independent + Programming Language :: Python + Programming Language :: Python :: 3 + Programming Language :: Python :: 3 :: Only + Programming Language :: Python :: 3.8 + Programming Language :: Python :: 3.9 + Programming Language :: Python :: 3.10 + Programming Language :: Python :: 3.11 + Topic :: Internet :: WWW/HTTP + Topic :: Internet :: WWW/HTTP :: Dynamic Content + +[options] +include_package_data = true +packages = find: +python_requires = >=3.8 +install_requires = + Django >= 3.2 diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..3524089 --- /dev/null +++ b/setup.py @@ -0,0 +1,6 @@ +# -*- coding: utf-8 -*- +from setuptools import setup, find_packages + +setup( + packages=find_packages(), +)