Skip to content

Commit c08076c

Browse files
committed
Simplify a few part of pyproject.toml #1608
Signed-off-by: tdruez <tdruez@nexb.com>
1 parent 7e03c7b commit c08076c

3 files changed

Lines changed: 4 additions & 23 deletions

File tree

Makefile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,6 @@ docs:
143143
rm -rf docs/_build/
144144
@${ACTIVATE} sphinx-build docs/ docs/_build/
145145

146-
bump:
147-
@echo "-> Bump the version"
148-
@${ACTIVATE} bumpver update --no-fetch --patch
149-
150146
docker-images:
151147
@echo "-> Build Docker services"
152148
docker compose build
@@ -163,4 +159,4 @@ offline-package: docker-images
163159
@mkdir -p dist/
164160
@tar -cf dist/scancodeio-offline-package-`git describe --tags`.tar build/
165161

166-
.PHONY: virtualenv conf dev envfile install doc8 check valid check-deploy clean migrate upgrade postgresdb sqlitedb backupdb run run-docker-dev test fasttest docs bump docker-images offline-package
162+
.PHONY: virtualenv conf dev envfile install doc8 check valid check-deploy clean migrate upgrade postgresdb sqlitedb backupdb run run-docker-dev test fasttest docs docker-images offline-package

RELEASE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
- Create a new `release-x.x.x` branch
66
- Update the version in:
7-
- `pyproject.toml` (2 entries)
7+
- `pyproject.toml`
88
- `scancodeio/__init__.py`
99
- `CHANGELOG.rst` (set date)
1010
- Commit and push this branch
@@ -24,7 +24,7 @@
2424
```
2525
cd scancode.io
2626
source .venv/bin/activate
27-
pip install build
27+
python -m pip install build
2828
python -m build --sdist --wheel --outdir dist/ .
2929
```
3030

pyproject.toml

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build-system]
2-
requires = ["setuptools", "wheel"]
2+
requires = ["setuptools"]
33
build-backend = "setuptools.build_meta"
44

55
[project]
@@ -109,8 +109,6 @@ dev = [
109109
"sphinx-rtd-theme==3.0.2",
110110
"sphinx-rtd-dark-mode==1.3.0",
111111
"sphinxcontrib-django==2.5",
112-
# Release
113-
"bumpver==2024.1130"
114112
]
115113
android_analysis = [
116114
"android_inspector==0.0.1"
@@ -193,16 +191,3 @@ max-complexity = 10
193191
"scanpipe/pipes/spdx.py" = ["UP006", "UP035"]
194192
# Allow complexity in management commands
195193
"scanpipe/management/commands/*" = ["C901"]
196-
197-
[tool.bumpver]
198-
version_pattern = "MAJOR.MINOR.PATCH"
199-
current_version = "35.0.0"
200-
201-
[tool.bumpver.file_patterns]
202-
"pyproject.toml" = [
203-
'version = {version}',
204-
'current_version = "{version}"'
205-
]
206-
"scancodeio/__init__.py" = [
207-
"{version}"
208-
]

0 commit comments

Comments
 (0)