Skip to content
Snippets Groups Projects
Verified Commit 113df982 authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

Modernise build system

parent f98bf8b3
No related branches found
No related tags found
1 merge request!5Modernise build system
Pipeline #63037 failed
......@@ -19,7 +19,7 @@ stages:
python -V
python3 -m venv venv
source venv/bin/activate
pip install -U pip setuptools wheel setuptools_scm
pip install -U pip setuptools wheel setuptools_scm packaging
hash -r
pip freeze
make install-dev
......@@ -30,22 +30,6 @@ stages:
reports:
junit: "reports/junit*.xml"
test-py3.6:
image: docker.km3net.de/base/python:3.6
stage: test
script:
- *virtualenv_definition
- make test
<<: *junit_definition
test-py3.7:
image: docker.km3net.de/base/python:3.7
stage: test
script:
- *virtualenv_definition
- make test
<<: *junit_definition
test-py3.8:
image: docker.km3net.de/base/python:3.8
stage: test
......@@ -137,9 +121,9 @@ pypi:
stage: release
cache: {}
script:
- pip install -U twine wheel setuptools_scm
- python setup.py sdist
- python setup.py bdist_wheel
- pip install -U twine wheel setuptools_scm build
- python -m build --sdist
- python -m build --wheel
- twine upload dist/*
only:
- tags
......
[project]
name = "{{cookiecutter.project_slug}}"
description = "{{cookiecutter.description}}"
readme = {file = "README.rst", content-type = "text/x-rst"}
license = MIT
dynamic = ["version"]
authors = [
{name = "{{cookiecutter.author}}", email ="{{cookiecutter.email}}"}
]
maintainers = [
{name = "{{cookiecutter.author}}", email ="{{cookiecutter.email}}"}
]
requires-python = ">=3.8"
dependencies = [
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering"
]
[build-system]
requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]>=3.4"]
[tool.setuptools_scm]
write_to = "src/{{cookiecutter.project_slug}}/version.py"
[project.urls]
Homepage = "{{cookiecutter.gitlab_repo_url}}"
Documentation = "{{cookiecutter.gitlab_pages_url}}"
Repository = "{{cookiecutter.gitlab_repo_url}}"
Issues = "{{cookiecutter.gitlab_repo_url}}/-/issues"
Changelog = "{{cookiecutter.gitlab_pages_url}}/changelog.html"
[project.optional-dependencies]
dev = [
"black",
"km3net_testdata>=0.2.7",
"matplotlib",
"memory_profiler",
"mock",
"numpydoc",
"pytest",
"pytest-cov",
"pytest-watch",
"sphinx",
"sphinx-autoapi",
"sphinx-gallery>=0.1.12",
"sphinx_rtd_theme",
"sphinxcontrib-versioning",
"wheel"
]
#!/usr/bin/env python
from setuptools import setup
import setuptools_scm
setup()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment