Skip to content

Commit

Permalink
try pyproject.toml, add oembed_info to video
Browse files Browse the repository at this point in the history
  • Loading branch information
benzkji committed Nov 3, 2024
1 parent ce6c5ae commit cda2db3
Show file tree
Hide file tree
Showing 4 changed files with 85 additions and 42 deletions.
17 changes: 17 additions & 0 deletions djangocms_baseplugins/video/migrations/0012_video_oembed_info.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated by Django 3.2.25 on 2024-11-03 09:44

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
("video", "0011_auto_20230501_1509"),
]

operations = [
migrations.AddField(
model_name="video",
name="oembed_info",
field=models.JSONField(blank=True, default=dict),
),
]
23 changes: 23 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
[build-system]
requires = ["setuptools >= 61.0", "setuptools-scm"]
build-backend = "setuptools.build_meta"

[project]
name = "djangocms-baseplugins"
dynamic = ["version"]
dependencies = [
"django",
"django-cms",
"django-filer",
]

#[project.optional-dependencies]
#filer = ["django-filer"]
#requests = ["requests"]

[tool.setuptools.packages]
find = {} # Scan the project directory with the default parameters

[tool.setuptools_scm]
# can be empty if no extra settings are needed, presence enables setuptools-scm

[tool.ruff]
# Enable the pycodestyle (`E`) and Pyflakes (`F`) rules by default.
# Unlike Flake8, Ruff doesn't enable pycodestyle warnings (`W`) or
Expand Down
7 changes: 3 additions & 4 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# -r requirements_text.txt

# when creating new migrations, the oldest supported version shall be used!
django-cms==3.4.6
django==2.2.28
django-cms==3.4.6
django-polymorphic==1.2.0
django-cms<4>
django<5
django-filer<4
80 changes: 42 additions & 38 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,41 +1,45 @@
# coding: utf-8
import os

from setuptools import find_packages, setup

# not so bad: http://joebergantine.com/blog/2015/jul/17/releasing-package-pypi/
version = __import__("djangocms_baseplugins").__version__
from setuptools import setup

setup()

def read(fname):
# read the contents of a text file
return open(os.path.join(os.path.dirname(__file__), fname)).read()


setup(
name="djangocms-baseplugins",
version=version,
url="https://github.com/bnzk/djangocms-baseplugins",
license="BSD",
platforms=["OS Independent"],
description="djangocms_baseplugins",
long_description=read("PYPI.rst"),
author="Ben Stähli",
author_email="[email protected]",
packages=find_packages(),
install_requires=(
"django>=1.8",
"django-cms>=3.3",
),
include_package_data=True,
zip_safe=False,
classifiers=[
"Development Status :: 4 - Beta",
"Framework :: Django",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Topic :: Internet :: WWW/HTTP",
],
)
# coding: utf-8
# import os
#
#
# # not so bad: http://joebergantine.com/blog/2015/jul/17/releasing-package-pypi/
# version = __import__("djangocms_baseplugins").__version__
#
#
# def read(fname):
# # read the contents of a text file
# return open(os.path.join(os.path.dirname(__file__), fname)).read()
#
#
# setup(
# name="djangocms-baseplugins",
# version=version,
# url="https://github.com/bnzk/djangocms-baseplugins",
# license="BSD",
# platforms=["OS Independent"],
# description="djangocms_baseplugins",
# long_description=read("PYPI.rst"),
# author="Ben Stähli",
# author_email="[email protected]",
# packages=find_packages(),
# install_requires=(
# "django>=1.8",
# "django-cms>=3.3",
# ),
# include_package_data=True,
# zip_safe=False,
# classifiers=[
# "Development Status :: 4 - Beta",
# "Framework :: Django",
# "Intended Audience :: Developers",
# "License :: OSI Approved :: BSD License",
# "Operating System :: OS Independent",
# "Programming Language :: Python",
# "Topic :: Internet :: WWW/HTTP",
# ],
# )

0 comments on commit cda2db3

Please sign in to comment.