mirror of
https://github.com/frappe/bench.git
synced 2025-01-09 08:30:39 +00:00
Merge branch 'develop' into staging
This commit is contained in:
commit
4d26419be5
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@ -22,7 +22,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
npm install @semantic-release/git @semantic-release/exec --no-save
|
npm install @semantic-release/git @semantic-release/exec --no-save
|
||||||
python3 -m pip install wheel twine
|
python3 -m pip install wheel twine
|
||||||
python3 -m pip install git+https://github.com/pypa/hatch
|
python3 -m pip install git+https://github.com/pypa/hatch@hatch-v1.9.2
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
env:
|
env:
|
||||||
|
@ -278,12 +278,17 @@ def check_existing_dir(bench_path, repo_name):
|
|||||||
def get_current_version(app, bench_path="."):
|
def get_current_version(app, bench_path="."):
|
||||||
current_version = None
|
current_version = None
|
||||||
repo_dir = get_repo_dir(app, bench_path=bench_path)
|
repo_dir = get_repo_dir(app, bench_path=bench_path)
|
||||||
|
pyproject_path = os.path.join(repo_dir, "pyproject.toml")
|
||||||
config_path = os.path.join(repo_dir, "setup.cfg")
|
config_path = os.path.join(repo_dir, "setup.cfg")
|
||||||
init_path = os.path.join(repo_dir, os.path.basename(repo_dir), "__init__.py")
|
init_path = os.path.join(repo_dir, os.path.basename(repo_dir), "__init__.py")
|
||||||
setup_path = os.path.join(repo_dir, "setup.py")
|
setup_path = os.path.join(repo_dir, "setup.py")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if os.path.exists(config_path):
|
pyproject = get_pyproject(pyproject_path)
|
||||||
|
if pyproject:
|
||||||
|
current_version = pyproject.get("project", {}).get("version")
|
||||||
|
|
||||||
|
if not current_version and os.path.exists(config_path):
|
||||||
from setuptools.config import read_configuration
|
from setuptools.config import read_configuration
|
||||||
|
|
||||||
config = read_configuration(config_path)
|
config = read_configuration(config_path)
|
||||||
|
@ -44,7 +44,7 @@ Source = "https://github.com/frappe/bench"
|
|||||||
|
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = [
|
requires = [
|
||||||
"hatchling>=1.6.0,<1.9.4",
|
"hatchling>=1.6.0,<=1.21.0",
|
||||||
]
|
]
|
||||||
build-backend = "hatchling.build"
|
build-backend = "hatchling.build"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user