diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 12cf1941..88137021 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,14 +11,14 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set up Python - uses: actions/setup-python@v3 + uses: actions/setup-python@v4 with: - python-version: 3.8 + python-version: 3.11 - name: Get pip cache dir id: pip-cache @@ -36,12 +36,11 @@ jobs: - name: Install dependencies run: | python -m pip install -U pip - python -m pip install -U setuptools twine wheel + python -m pip install -U setuptools build twine - name: Build package run: | - python setup.py --version - python setup.py sdist --format=gztar bdist_wheel + python -m build twine check dist/* - name: Upload packages to Jazzband diff --git a/MANIFEST.in b/MANIFEST.in deleted file mode 100644 index cc6584e5..00000000 --- a/MANIFEST.in +++ /dev/null @@ -1,5 +0,0 @@ -include *.txt *.py *.rst setup.cfg -include docs/*.rst -exclude *.pyc -recursive-include tests * -recursive-include tinymce * diff --git a/pyproject.toml b/pyproject.toml index 7a7acb89..015d4d8d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,53 @@ +[build-system] +requires = ["setuptools"] +build-backend = "setuptools.build_meta" + +[project] +name = "django-tinymce" +version = "3.6.1" +description = """ +A Django application that contains a widget to render a +form field as a TinyMCE editor.""" +readme = "README.rst" +authors = [ + {name = "Aljosa Mohorovic", email = "aljosa.mohorovic@gmail.com"}, +] +maintainers = [ + {name = "Rémy Hubscher", email = "hubscher.remy@gmail.com"}, + {name = "Claude Paroz", email = "claude@2xlibre.net"}, +] +license = {text = "MIT License"} +requires-python = ">=3.8" +dependencies = [ + "django>=3.2", +] +keywords = ["django", "widget", "tinymce"] +classifiers = [ + "Development Status :: 5 - Production/Stable", + "Environment :: Web Environment", + "Framework :: Django", + "Framework :: Django :: 3.2", + "Framework :: Django :: 4.2", + "Framework :: Django :: 5.0", + "Intended Audience :: Developers", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", + "Programming Language :: Python", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Topic :: Software Development :: Libraries :: Application Frameworks", + "Topic :: Software Development :: Libraries :: Python Modules", +] + +[project.urls] +Homepage = "https://github.com/jazzband/django-tinymce" +Documentation = "https://django-tinymce.readthedocs.org/" +Changelog = "https://github.com/jazzband/django-tinymce/blob/master/CHANGELOG.rst" + [tool.black] line-length = 99 skip-numeric-underscore-normalization = true diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 81049c3a..00000000 --- a/setup.cfg +++ /dev/null @@ -1,2 +0,0 @@ -[zest.releaser] -create-wheel = yes diff --git a/setup.py b/setup.py deleted file mode 100755 index 8423b0a6..00000000 --- a/setup.py +++ /dev/null @@ -1,58 +0,0 @@ -#!/usr/bin/env python -import codecs -import os - -from setuptools import find_packages, setup - -here = os.path.abspath(os.path.dirname(__file__)) - - -def read_file(filename): - """Open a related file and return its content.""" - with codecs.open(os.path.join(here, filename), encoding="utf-8") as f: - content = f.read() - return content - - -README = read_file("README.rst") -CHANGELOG = read_file("CHANGELOG.rst") - - -setup( - name="django-tinymce", - version="3.6.1", - packages=find_packages(exclude=["tests*"]), - include_package_data=True, - author="Aljosa Mohorovic", - author_email="aljosa.mohorovic@gmail.com", - description=( - "A Django application that contains a widget to render a " - "form field as a TinyMCE editor." - ), - long_description=README + "\n\n" + CHANGELOG, - license="MIT License", - keywords="django widget tinymce", - zip_safe=False, - classifiers=[ - "Development Status :: 5 - Production/Stable", - "Environment :: Web Environment", - "Framework :: Django", - "Framework :: Django :: 3.2", - "Framework :: Django :: 4.2", - "Framework :: Django :: 5.0", - "Intended Audience :: Developers", - "License :: OSI Approved :: MIT License", - "Operating System :: OS Independent", - "Programming Language :: Python", - "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.8", - "Programming Language :: Python :: 3.9", - "Programming Language :: Python :: 3.10", - "Programming Language :: Python :: 3.11", - "Programming Language :: Python :: 3.12", - "Topic :: Software Development :: Libraries :: Application Frameworks", - "Topic :: Software Development :: Libraries :: Python Modules", - ], - platforms=["any"], - url="https://github.com/jazzband/django-tinymce", -)