Skip to content

Commit be38832

Browse files
committed
Standardised pyproject.toml and adjusted Makefile.
1 parent 7613627 commit be38832

File tree

5 files changed

+61
-83
lines changed

5 files changed

+61
-83
lines changed

.github/workflows/github-actions.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Install Poetry
2525
run: make install-poetry
2626
- name: Install packages
27-
run: make install-packages
27+
run: make install
2828
- name: Start EventStoreDB
2929
run: make start-eventstoredb
3030
- name: Lint

Makefile

Lines changed: 11 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -15,39 +15,18 @@ install-poetry:
1515

1616
.PHONY: install
1717
install:
18-
$(POETRY) sync -vv $(opts)
18+
$(POETRY) sync --all-extras $(opts)
1919

20-
.PHONY: install-packages
21-
install-packages:
22-
$(POETRY) sync --no-root -vv $(opts)
20+
.PHONY: update
21+
update: update-lock install
2322

24-
.PHONY: update-lockfile
25-
update-lockfile:
26-
$(POETRY) lock
23+
.PHONY: update-lock
24+
update-lock:
25+
$(POETRY) update --lock -v
2726

28-
.PHONY: update-packages
29-
update-packages: update-lockfile install-packages
3027

31-
32-
.PHONY: install-pre-commit-hooks
33-
install-pre-commit-hooks:
34-
ifeq ($(opts),)
35-
$(POETRY) run pre-commit install
36-
endif
37-
38-
.PHONY: uninstall-pre-commit-hooks
39-
uninstall-pre-commit-hooks:
40-
ifeq ($(opts),)
41-
$(POETRY) run pre-commit uninstall
42-
endif
43-
44-
.PHONY: lock-packages
45-
lock-packages:
46-
$(POETRY) lock -vv --no-update
47-
48-
.PHONY: update-packages
49-
update-packages:
50-
$(POETRY) update -vv
28+
.PHONY: lint
29+
lint: lint-python
5130

5231
.PHONY: lint-black
5332
lint-black:
@@ -68,8 +47,9 @@ lint-mypy:
6847
.PHONY: lint-python
6948
lint-python: lint-black lint-flake8 lint-isort lint-mypy
7049

71-
.PHONY: lint
72-
lint: lint-python
50+
51+
.PHONY: fmt
52+
fmt: fmt-black fmt-isort
7353

7454
.PHONY: fmt-black
7555
fmt-black:
@@ -79,8 +59,6 @@ fmt-black:
7959
fmt-isort:
8060
$(POETRY) run isort .
8161

82-
.PHONY: fmt
83-
fmt: fmt-black fmt-isort
8462

8563
.PHONY: test
8664
test:

README.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -372,10 +372,6 @@ Use the Makefile to create a new Poetry virtual environment for the
372372
project and install the project's package dependencies into it,
373373
using the following command.
374374

375-
$ make install-packages
376-
377-
It's also possible to also install the project in 'editable mode'.
378-
379375
$ make install
380376

381377
Please note, if you create the virtual environment in this way, and then try to
@@ -409,7 +405,7 @@ You can reformat the code using the following command.
409405

410406
Tests belong in `./tests`. Code-under-test belongs in `./eventsourcing_eventstoredb`.
411407

412-
Edit package dependencies in `pyproject.toml`. Update installed packages (and the
413-
`poetry.lock` file) using the following command.
408+
Edit package dependencies in `pyproject.toml`. Update `poetry.lock` and installed packages
409+
using the following command.
414410

415-
$ make update-packages
411+
$ make update

poetry.lock

Lines changed: 25 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,26 @@
1-
[tool.poetry]
1+
[build-system]
2+
requires = ["poetry-core>=1.0.0"]
3+
build-backend = "poetry.core.masonry.api"
4+
5+
[project]
26
name = "eventsourcing-eventstoredb"
3-
version = "1.2.0b3"
7+
version = "1.2.0b4"
8+
dependencies = [
9+
"eventsourcing>=9.4.1,<10.0",
10+
"kurrentdbclient>=1.0.2,<2.0",
11+
]
412
description = "Python package for eventsourcing with EventStoreDB"
13+
license = { text = "BSD-3-Clause" }
14+
readme = "README.md"
15+
requires-python = ">=3.9.2"
516
authors = [
6-
"John Bywater <john.bywater@appropriatesoftware.net>",
17+
{ "name" = "John Bywater", "email" = "john.bywater@appropriatesoftware.net" },
718
]
8-
license = "BSD 3-Clause"
919
classifiers = [
1020
# "Development Status :: 3 - Alpha",
1121
"Development Status :: 4 - Beta",
1222
# "Development Status :: 5 - Production/Stable",
23+
"Intended Audience :: Developers",
1324
"License :: OSI Approved :: BSD License",
1425
"Programming Language :: Python :: 3",
1526
"Programming Language :: Python :: 3.10",
@@ -18,24 +29,20 @@ classifiers = [
1829
"Programming Language :: Python :: 3.13",
1930
"Programming Language :: Python :: 3.9",
2031
"Programming Language :: Python",
32+
"Topic :: Software Development :: Libraries :: Python Modules",
2133
]
22-
readme = "README.md"
34+
35+
[project.urls]
2336
homepage = "https://github.com/pyeventsourcing/eventsourcing-eventstoredb"
2437
repository = "https://github.com/pyeventsourcing/eventsourcing-eventstoredb"
25-
include = ["eventsourcing_eventstoredb/py.typed"]
26-
27-
[tool.poetry.dependencies]
28-
python = ">=3.9,<4.0,!=3.9.0,!=3.9.1"
29-
eventsourcing = { version = "9.4.0b2" }
30-
#eventsourcing = { path = "../eventsourcing/", develop = true }
31-
#esdbclient = { path = "../esdbclient/", develop = true }
32-
kurrentdbclient = { version = "1.0" }
3338

39+
[tool.poetry]
40+
include = ["eventsourcing_eventstoredb/py.typed"]
3441

3542
[tool.poetry.group.dev.dependencies]
3643
black = { version = "*", allow-prereleases = true }
3744
flake8 = "*"
38-
flake8-broken-line = "*"
45+
flake8-broken-line = { version = "*", python = ">=3.9.2,<4.0"}
3946
flake8-bugbear = "*"
4047
flake8-coding = "*"
4148
flake8-isort = "*"
@@ -49,10 +56,6 @@ pytest-cov = "*"
4956
pycryptodome = "*"
5057
types-protobuf = "*"
5158

52-
[build-system]
53-
requires = ["poetry-core>=1.0.0"]
54-
build-backend = "poetry.core.masonry.api"
55-
5659
[tool.black]
5760
line-length = 88
5861
target-version = ["py38"]

0 commit comments

Comments
 (0)