Skip to content

Commit 671255b

Browse files
authored
Merge pull request #30 from nansencenter/update_packaging
Update packaging
2 parents 0765766 + 5268290 commit 671255b

File tree

3 files changed

+35
-38
lines changed

3 files changed

+35
-38
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
password: ${{ secrets.DOCKER_PASS }}
3939

4040
- name: Cache Docker layers
41-
uses: actions/cache@v3
41+
uses: actions/cache@v4
4242
with:
4343
path: /tmp/.buildx-cache
4444
key: ${{ runner.os }}-buildx-${{ github.sha }}
@@ -89,7 +89,7 @@ jobs:
8989
9090
- name: 'Install Python 3.11'
9191
if: ${{ env.latest }}
92-
uses: actions/setup-python@v4
92+
uses: actions/setup-python@v5
9393
with:
9494
python-version: '3.11'
9595

@@ -110,16 +110,14 @@ jobs:
110110
uses: actions/checkout@v4
111111

112112
- name: 'Install Python 3.11'
113-
uses: actions/setup-python@v4
113+
uses: actions/setup-python@v5
114114
with:
115115
python-version: '3.11'
116116

117117
- name: 'Build Python package'
118-
env:
119-
GEOSPAAS_REST_API_RELEASE: ${{ github.ref_name }}
120118
run: >
121-
pip install wheel &&
122-
python setup.py sdist bdist_wheel
119+
pip install build &&
120+
python -m build
123121
124122
- name: 'Deploy package to the Github release'
125123
env:

pyproject.toml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
[build-system]
2+
requires = ["setuptools", "setuptools_scm"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[tool.setuptools_scm]
6+
7+
[project]
8+
name = "geospaas_rest_api"
9+
description = "REST API for GeoSPaaS"
10+
readme = "README.md"
11+
authors = [{name = "Adrien Perrin", email = "adrien.perrin@nersc.no"}]
12+
license = {file = "LICENSE"}
13+
classifiers = [
14+
"Programming Language :: Python :: 3",
15+
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
16+
"Operating System :: POSIX :: Linux",
17+
]
18+
requires-python = ">=3.7"
19+
dependencies = [
20+
"django_geo_spaas",
21+
"django-filter",
22+
"djangorestframework",
23+
"djangorestframework-filters==1.0.0dev2",
24+
"markdown",
25+
]
26+
urls = {Repository = "https://github.com/nansencenter/django-geo-spaas-rest-api"}
27+
dynamic = ["version"]
28+
29+
[tool.setuptools]
30+
packages = ["geospaas_rest_api"]

setup.py

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)