initial commit
This commit is contained in:
70
setup.py
Normal file
70
setup.py
Normal file
@@ -0,0 +1,70 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import json
|
||||
|
||||
from setuptools import find_packages, setup
|
||||
|
||||
install_requires: list = ["setuptools<81", "ocyan.main"]
|
||||
|
||||
# Add frets dependencies
|
||||
with open("w74_live_matrix_44/ocyan.json", encoding="utf-8") as fp:
|
||||
config = json.loads(fp.read())
|
||||
plugins = config["ocyan_plugins"]
|
||||
install_requires.extend(plugins)
|
||||
|
||||
# MandelBlog platform baseline. Keep this explicit so fresh projects do not
|
||||
# drift ahead of the currently supported runtime matrix.
|
||||
install_requires.extend(
|
||||
[
|
||||
"Django>=5.2,<5.3",
|
||||
"wagtail==7.4.1",
|
||||
]
|
||||
)
|
||||
|
||||
if any(plugin.startswith("ocyan.plugin.oscar") for plugin in plugins):
|
||||
install_requires.extend(
|
||||
[
|
||||
"django-oscar==4.1",
|
||||
"django-oscar-api==3.3.0",
|
||||
]
|
||||
)
|
||||
|
||||
if "ocyan.plugin.oscar_elasticsearch" in plugins:
|
||||
install_requires.append("elasticsearch<9")
|
||||
|
||||
if "ocyan.plugin.oscar_communications" in plugins:
|
||||
install_requires.append(
|
||||
"django-oscar-invoices @ git+https://github.com/django-oscar/"
|
||||
"django-oscar-invoices.git@d770f2ef024c781a14e6e1137a84c53c81726d6a"
|
||||
)
|
||||
|
||||
extras_require: dict = {
|
||||
"test": [
|
||||
"ruff",
|
||||
"pylint-django",
|
||||
"vdt.versionplugin.wheel",
|
||||
"coverage",
|
||||
"ocyan.plugin.testing",
|
||||
],
|
||||
"prd": ["psycopg2-binary>=2.9.9,<3"],
|
||||
}
|
||||
|
||||
PACKAGE_CLASSIFIERS = [
|
||||
"License :: Other/Proprietary License",
|
||||
"Framework :: Ocyan",
|
||||
]
|
||||
|
||||
setup(
|
||||
name="mandel-w74_live_matrix_44",
|
||||
version="0.1.0",
|
||||
url="https://git.mandelblog.com/mandel-projects/w74_live_matrix_44",
|
||||
author="Motolani Olaiya",
|
||||
author_email="motolaniolaiya@gmail.com",
|
||||
description="Ocyan project: w74_live_matrix_44",
|
||||
packages=find_packages(),
|
||||
include_package_data=True,
|
||||
python_requires=">=3.12,<3.13",
|
||||
install_requires=install_requires,
|
||||
extras_require=extras_require,
|
||||
entry_points={"console_scripts": ["manage.py=w74_live_matrix_44.main:main"]},
|
||||
classifiers=PACKAGE_CLASSIFIERS,
|
||||
)
|
||||
Reference in New Issue
Block a user