Skip to content

Commit 24ada68

Browse files
committed
[IMP] make package pip-installable
It can be installed with ```bash python3 -m pip install git+https://github.com/odoo/upgrade-util@master ```
1 parent bba1b8a commit 24ada68

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@
1010
# hg stuff
1111
*.orig
1212
status
13+
14+
# artefacts
15+
src/_version.py

pyproject.toml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
[project]
2+
name = "odoo_upgrade"
3+
authors = [
4+
{ name = "Odoo Upgrade Team", email = "[email protected]" }
5+
]
6+
dynamic = ["version"]
7+
dependencies = ["markdown"]
8+
9+
[build-system]
10+
requires = ["hatchling", "hatch-vcs"]
11+
build-backend = "hatchling.build"
12+
13+
[tool.hatch.build]
14+
only-include = ["src"]
15+
16+
[tool.hatch.build.sources]
17+
"src" = "odoo/upgrade"
18+
19+
[tool.hatch.version]
20+
source = "vcs"
21+
raw-options.version_scheme = "calver-by-date"
22+
23+
[tool.hatch.build.hooks.vcs]
24+
version-file = "src/_version.py"
25+
126
[tool.black]
227
line-length = 120
328

0 commit comments

Comments
 (0)