Skip to content

Commit ab578ed

Browse files
update pyproject ans CD
2 parents e207aa8 + 1d1ae84 commit ab578ed

File tree

3 files changed

+22
-22
lines changed

3 files changed

+22
-22
lines changed

.github/workflows/CD.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,16 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Checkout
12-
uses: actions/checkout@v3
12+
uses: actions/checkout@v4
13+
with:
14+
fetch-depth: 0
15+
- name: Python Semantic Release
16+
uses: python-semantic-release/python-semantic-release@master
17+
with:
18+
github_token: ${{ secrets.GITHUB_TOKEN }}
1319
- name: Build
1420
run: |
21+
cat pyproject.toml
1522
python3 -m pip install --upgrade build
1623
python3 -m build
1724
- name: Upload

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
.pytest_cache
22
dist
33
venv
4-
__pycache__
4+
__pycache__

pyproject.toml

Lines changed: 13 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ build-backend = "setuptools.build_meta"
55

66
[project]
77
name = "OpenGeodeWeb-Back"
8-
version = "0.0.14"
8+
version = "1.1.0-rc.1"
9+
dynamic = ["dependencies"]
910
authors = [
10-
{ name="Geode-solutions", email="contact@geode-solutions.com" },
11+
{ name="Geode-solutions", email="team-web@geode-solutions.com" },
1112
]
1213
description = "OpenGeodeWeb-Back is an open source framework that proposes handy python functions and wrappers for the OpenGeode ecosystem"
1314
readme = "README.md"
@@ -17,33 +18,25 @@ classifiers = [
1718
"License :: OSI Approved :: MIT License",
1819
"Operating System :: OS Independent",
1920
]
20-
dependencies = [
21-
"geode-viewables>=2.0.3",
22-
"opengeode-core>=14.4.1",
23-
"opengeode-geosciences>=7.1.1",
24-
"opengeode-geosciencesio>=4.1.6",
25-
"opengeode-inspector>=3.0.7",
26-
"opengeode-io>=6.0.10",
27-
]
2821

2922
[project.urls]
3023
"Homepage" = "https://github.com/Geode-solutions/OpenGeodeWeb-Back"
3124
"Bug Tracker" = "https://github.com/Geode-solutions/OpenGeodeWeb-Back/issues"
3225

33-
[tool.setuptools.packages.find]
34-
where = ["src"]
35-
namespaces = false
36-
3726
[tool.setuptools.dynamic]
3827
dependencies = {file = ["requirements.txt"]}
3928

29+
[tool.semantic_release]
30+
version_toml = [
31+
"pyproject.toml:project.version",
32+
]
33+
34+
[tool.semantic_release.remote.token]
35+
env = "GH_TOKEN"
36+
4037
[tool.semantic_release.branches.master]
41-
version_variable = "pyproject.toml:version"
42-
version_source = "commit"
43-
prerelease = false
38+
match = "master"
4439

4540
[tool.semantic_release.branches.next]
46-
version_variable = "pyproject.toml:version"
47-
version_source = "commit"
48-
prerelease_tag = "rc"
41+
match = "next"
4942
prerelease = true

0 commit comments

Comments
 (0)