|
| 1 | +[build-system] |
| 2 | +requires = ["hatchling", "hatch-odoo"] |
| 3 | +build-backend = "hatchling.build" |
| 4 | + |
| 5 | + |
| 6 | +[project] |
| 7 | +name = "oca-custom" |
| 8 | +version = "0.1.0" |
| 9 | +description = "Odoo by OCA" |
| 10 | +# readme = "README.md" |
| 11 | +requires-python = "==3.9.*" |
| 12 | +dynamic = ["dependencies"] |
| 13 | + |
| 14 | +[tool.hatch.build] |
| 15 | +packages = ["./"] |
| 16 | + |
| 17 | +# Enable the hatch-odoo metadata hook to generate dependencies from addons manifests. |
| 18 | +[tool.hatch.metadata.hooks.odoo-addons-dependencies] |
| 19 | +# Enable the hatch-odoo build hook to locate the Odoo addons and package them in odoo/addons. |
| 20 | +# if not provided, "locals" modules (those in './') are not found and cannot be installed... |
| 21 | +[tool.hatch.build.hooks.odoo-addons-dirs] |
| 22 | + |
| 23 | +[tool.hatch-odoo] |
| 24 | +# dependencies that are not in the addons manifest |
| 25 | +dependencies = [ |
| 26 | + "odoo==14.0.*", |
| 27 | + # indirect unrealeased dependencies |
| 28 | + "odoo-addons-design-themes==14.0.*", |
| 29 | + # Add some constraints to Odoo deps that should be in their setup.py |
| 30 | + "Babel==2.9.1", |
| 31 | + "chardet==3.0.4", |
| 32 | + "decorator==4.3.0", |
| 33 | + "docutils==0.14", |
| 34 | + "ebaysdk==2.1.5", |
| 35 | + "freezegun==0.3.15", |
| 36 | + "gevent==20.9.0 ", |
| 37 | + # gevent==21.8.0 ", |
| 38 | + "greenlet==1.1.2", |
| 39 | + "idna==2.6", |
| 40 | + "Jinja2==2.11.2", |
| 41 | + "libsass>=0.18.0", |
| 42 | + "lxml==4.6.5", |
| 43 | + "Mako==1.0.7", |
| 44 | + "MarkupSafe==1.1.0", |
| 45 | + "num2words==0.5.6", |
| 46 | + "ofxparse==0.19", |
| 47 | + # ofxparse==0.21", |
| 48 | + "passlib==1.7.1", |
| 49 | + "Pillow==8.1.1", |
| 50 | + "polib==1.1.0", |
| 51 | + "psutil==5.6.6", |
| 52 | + "psycopg2==2.9.10", |
| 53 | + "pydot==1.4.1", |
| 54 | + "PyPDF2==1.26.0", |
| 55 | + "pyserial==3.4", |
| 56 | + "python-dateutil==2.7.3", |
| 57 | + "pytz", |
| 58 | + "pyusb==1.0.2", |
| 59 | + "qrcode==6.1", |
| 60 | + "reportlab==3.5.55", |
| 61 | + "requests==2.21.0", |
| 62 | + # requests==2.25.1; python_version > '3.9' # (Jammy) versions < 2.25 aren't compatible w/ urllib3 1.26. Bullseye = 2.25.1. min version = 2.22.0 (Focal)", |
| 63 | + # urllib3==1.26.5; python_version > '3.9' # (Jammy) indirect / min version = 1.25.8 (Focal with security backports)", |
| 64 | + "zeep==3.2.0", |
| 65 | + "python-stdnum==1.8", |
| 66 | + "vobject==0.9.6.1", |
| 67 | + "Werkzeug==0.16.1 ", |
| 68 | + # Werkzeug==2.0.2 ; python_version > '3.9' # (Jammy)", |
| 69 | + "XlsxWriter==1.1.2", |
| 70 | + "xlwt==1.3.*", |
| 71 | + "xlrd==1.2.0", |
| 72 | + # TODO: add constraints in github connector module |
| 73 | + "PyGithub<2.0.0", |
| 74 | +] |
| 75 | +addons_dirs = ["./"] |
| 76 | + |
| 77 | +[tool.uv] |
| 78 | +# On OCA 14.0 series translations commits are realeased |
| 79 | +# in pre-release state |
| 80 | +prerelease = "allow" |
| 81 | +# tell uv when dependencies may change |
| 82 | +cache-keys = [ |
| 83 | + { file = "pyproject.toml" }, |
| 84 | + { file = "**/__manifest__.py" }, |
| 85 | +] |
| 86 | + |
| 87 | +dev-dependencies = [ |
| 88 | + "parameterized>=0.9.0", |
| 89 | + "pytest>8", |
| 90 | + "pytest-odoo>=2", |
| 91 | + "pytest-cov>=5.0.0", |
| 92 | + "pytest-xdist>=3.6.1", |
| 93 | + "manifestoo>=1.0", |
| 94 | + "odoo-test-helper", |
| 95 | + "websocket-client", |
| 96 | +] |
| 97 | + |
| 98 | + |
| 99 | +[tool.uv.sources] |
| 100 | +odoo = { git = "https://github.com/OCA/OCB", branch = "14.0" } |
| 101 | +odoo-addons-design-themes = { git = "https://github.com/petrus-v/design-themes", branch = "14.0-oca-20250317" } |
| 102 | + |
| 103 | +odoo14-addon-membership-delegated-partner-line = { git = "https://github.com/OCA/vertical-association", rev = "refs/pull/151/head", subdirectory = "setup/membership_delegated_partner_line" } |
| 104 | + |
| 105 | + |
| 106 | +[tool.pytest] |
| 107 | +addopts = "-v -s --cov-report term-missing" |
| 108 | + |
| 109 | +[tool.coverage.run] |
| 110 | +branch = true |
| 111 | +omit = [ |
| 112 | + "./**/tests/*", |
| 113 | + "./**/__manifest__.py", |
| 114 | +] |
0 commit comments