Skip to content
Snippets Groups Projects
Commit 9fb0e244 authored by Bjorn Stevens's avatar Bjorn Stevens
Browse files

Merge branch 'housekeeping' into 'main'

Revise handling of package metadata and build-system

See merge request !4
parents e74043c3 42cc04fd
No related branches found
No related tags found
1 merge request!4Revise handling of package metadata and build-system
*.pyc
......@@ -4,9 +4,8 @@ pytest:
stage: test
before_script:
- python3 -m pip install -r requirements.txt
- python3 -m pip install pytest
script:
- pytest --doctest-modules --junitxml=report.xml
- pytest --junitxml=report.xml
artifacts:
when: always
reports:
......
from .functions import *
from . import constants
__version__ = "0.5.0"
[build-system]
requires = ["setuptools>=42", "wheel"] # PEP 508 specifications.
build-backend = "setuptools.build_meta"
[metadata]
name = moist_thermodynamics
version = attr: moist_thermodynamics.__version__
description = Constants and functions for the treatment of moist atmospheric thermodynamics.
long_description = file: README.md
license = BSD 3-Clause License
[options]
packages = find:
install_requires =
numpy
scipy
[flake8]
max-line-length = 88
extend-ignore = E203
[tool:pytest]
addopts = --doctest-modules
# content of setup.py
from setuptools import setup, find_packages
from setuptools import setup
setup(
name="moist_thermodynamics",
version="0.5",
description="Constants and functions for the treatment of moist atmospheric thermodynamics",
packages=find_packages(),
install_requires=[
"numpy",
"scipy",
],
)
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