Skip to content

Commit

Permalink
Merge pull request #30 from nansencenter/update_packaging
Browse files Browse the repository at this point in the history
Update packaging
  • Loading branch information
aperrin66 authored May 24, 2024
2 parents 0765766 + 5268290 commit 671255b
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 38 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
password: ${{ secrets.DOCKER_PASS }}

- name: Cache Docker layers
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
Expand Down Expand Up @@ -89,7 +89,7 @@ jobs:
- name: 'Install Python 3.11'
if: ${{ env.latest }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.11'

Expand All @@ -110,16 +110,14 @@ jobs:
uses: actions/checkout@v4

- name: 'Install Python 3.11'
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: 'Build Python package'
env:
GEOSPAAS_REST_API_RELEASE: ${{ github.ref_name }}
run: >
pip install wheel &&
python setup.py sdist bdist_wheel
pip install build &&
python -m build
- name: 'Deploy package to the Github release'
env:
Expand Down
30 changes: 30 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[build-system]
requires = ["setuptools", "setuptools_scm"]
build-backend = "setuptools.build_meta"

[tool.setuptools_scm]

[project]
name = "geospaas_rest_api"
description = "REST API for GeoSPaaS"
readme = "README.md"
authors = [{name = "Adrien Perrin", email = "adrien.perrin@nersc.no"}]
license = {file = "LICENSE"}
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: POSIX :: Linux",
]
requires-python = ">=3.7"
dependencies = [
"django_geo_spaas",
"django-filter",
"djangorestframework",
"djangorestframework-filters==1.0.0dev2",
"markdown",
]
urls = {Repository = "https://github.com/nansencenter/django-geo-spaas-rest-api"}
dynamic = ["version"]

[tool.setuptools]
packages = ["geospaas_rest_api"]
31 changes: 0 additions & 31 deletions setup.py

This file was deleted.

0 comments on commit 671255b

Please sign in to comment.