Skip to content

Commit 040b25e

Browse files
authored
release(1.3.4): Bump development dependencies and re-build documentation (#10)
1 parent 8e2faf5 commit 040b25e

34 files changed

+399
-397
lines changed

.github/workflows/pipeline.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: CI & CD
33
on:
44
push:
55
branches:
6+
- main
67
- master
78
pull_request:
89

@@ -14,20 +15,21 @@ jobs:
1415
strategy:
1516
matrix:
1617
os: [ ubuntu-latest ]
18+
python-version: ['3.6.15']
1719
steps:
18-
- uses: actions/checkout@v2
19-
- uses: actions/setup-python@v2
20+
- uses: actions/checkout@v3
21+
- uses: actions/setup-python@v3
2022
with:
21-
python-version: '3.6.15'
23+
python-version: ${{ matrix.python-version }}
2224
- name: deps
2325
timeout-minutes: 1
2426
run: sh pyscript.sh install
2527
- name: security-analysis
2628
timeout-minutes: 1
27-
run: sh pyscript.sh security_analysis
29+
run: sh pyscript.sh security-analysis
2830
- name: static-analysis
2931
timeout-minutes: 1
30-
run: sh pyscript.sh static_analysis
32+
run: sh pyscript.sh static-analysis
3133
- name: test
3234
timeout-minutes: 3
3335
run: sh pyscript.sh test
@@ -36,18 +38,19 @@ jobs:
3638
run: sh pyscript.sh clean
3739

3840
CD:
39-
if: github.ref == 'refs/heads/master'
41+
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
4042
needs: CI
4143
timeout-minutes: 15
4244
runs-on: ${{ matrix.os }}
4345
strategy:
4446
matrix:
4547
os: [ ubuntu-latest ]
48+
python-version: ['3.6.15']
4649
steps:
47-
- uses: actions/checkout@v2
48-
- uses: actions/setup-python@v2
50+
- uses: actions/checkout@v3
51+
- uses: actions/setup-python@v3
4952
with:
50-
python-version: '3.6.15'
53+
python-version: ${{ matrix.python-version }}
5154
- name: deps
5255
timeout-minutes: 1
5356
run: sh pyscript.sh install

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ repos:
99
stages: [ commit-msg ]
1010
- id: security-analysis
1111
name: security-analysis
12-
entry: sh pyscript.sh security_analysis
12+
entry: sh pyscript.sh security-analysis
1313
language: system
1414
stages: [ commit-msg ]
1515
- id: static-analysis
1616
name: static-analysis
17-
entry: sh pyscript.sh static_analysis
17+
entry: sh pyscript.sh static-analysis
1818
language: system
1919
stages: [ commit-msg ]
2020
- repo: https://github.com/pre-commit/pre-commit-hooks

Dockerfile

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,24 @@
1-
FROM docker.io/library/python:3.6.15-slim as development
1+
FROM docker.io/library/python:3.6.15-slim AS production
22

33
WORKDIR /app
44

5-
RUN apt update && apt install -y gcc
5+
COPY LICENSE pyproject.toml pyscript.sh README.md requirements.txt setup.py ./
66

7-
COPY .pre-commit-config.yaml LICENSE pyproject.toml pyscript.sh README.md requirements.txt requirements-dev.txt setup.py ./
8-
COPY aioddd ./aioddd/
9-
COPY tests ./tests/
7+
RUN apt update -y && python3 -m pip install --upgrade pip
108

11-
RUN sh pyscript.sh install
9+
COPY aioddd ./aioddd/
1210

1311
ENTRYPOINT ["sh", "pyscript.sh"]
1412
CMD []
13+
14+
FROM production AS development
15+
16+
RUN apt install -y gcc
17+
18+
COPY .pre-commit-config.yaml requirements-dev.txt ./
19+
20+
RUN sh pyscript.sh install
21+
22+
COPY docs ./docs
23+
COPY docs_src ./docs_src
24+
COPY tests ./tests

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2020 Denis NA
3+
Copyright (c) 2020 - 2022 aiopy
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ pip install aioddd
1212

1313
## Documentation
1414

15-
- Visit [aioddd docs](https://ticdenis.github.io/python-aioddd/).
15+
- Visit [aioddd docs](https://aiopy.github.io/python-aioddd/).
1616

1717
## Usage
1818

@@ -85,4 +85,4 @@ Please make sure to update tests as appropriate.
8585

8686
## License
8787

88-
[MIT](https://github.com/ticdenis/python-aioddd/blob/master/LICENSE)
88+
[MIT](https://github.com/aiopy/python-aioddd/blob/master/LICENSE)

aioddd/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,5 @@
9797
'Timestamp',
9898
'StrDateTime',
9999
)
100+
101+
__version__ = '1.3.4'

aioddd/events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def encode(self, msg: Event) -> Dict[str, Any]:
5353
}
5454

5555
def decode(self, data: Dict[str, Any]) -> Event:
56-
attributes = self.event_type.Attributes(**data['attributes']) # type: ignore
56+
attributes = self.event_type.Attributes(**data['attributes'])
5757
meta = self.event_type.Meta(id=data['id'], type=data['type'], occurred_on=data['occurred_on'])
5858
return self.event_type(attributes=attributes, meta=meta)
5959

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
services:
2-
test:
2+
aioddd:
33
build:
44
context: .
55
dockerfile: Dockerfile
66
target: development
7-
command: coverage
7+
image: ghcr.io/aiopy/python-aioddd:${VERSION:-latest}
88
volumes:
99
- .:/app
1010

docs/404.html

Lines changed: 66 additions & 57 deletions
Large diffs are not rendered by default.

docs/assets/javascripts/bundle.748e2769.min.js

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

0 commit comments

Comments
 (0)