Skip to content

Commit

Permalink
trying meson backend too
Browse files Browse the repository at this point in the history
  • Loading branch information
gbarter committed Jan 8, 2024
1 parent 97b8125 commit 06faf5e
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 117 deletions.
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ project(
'c',
# unnecessary metadata commented out until Meson supports PEP517 and installation with pip
license: 'Apache',
meson_version: '>= 0.60',
#meson_version: '>= 0.60',
default_options: [
'buildtype=debugoptimized',
'c_std=c11',
Expand Down
10 changes: 10 additions & 0 deletions pyhams/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,13 @@ py3.extension_module('_hams',
install : true)


python_sources = [
'__init__.py',
'pyhams.py',
]

py3.install_sources(
python_sources,
pure: false,
subdir: 'pyhams'
)
43 changes: 25 additions & 18 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[build-system]
requires = ["setuptools", "meson>=1.1", "numpy", "ninja", "wheel"]
build-backend = "setuptools.build_meta"
build-backend = 'mesonpy'
requires = ["meson-python", "meson>=1.1", "numpy", "ninja", "wheel"]

[project]
name = "pyHAMS"
version = "1.2.0"
version = "1.2.3"
description = "Python module wrapping around HAMS"
readme = "README.md"
requires-python = ">=3.9"
Expand Down Expand Up @@ -38,6 +38,11 @@ classifiers = [ # Optional
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Fortran",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Operating System :: POSIX",
"Operating System :: Unix",
"Operating System :: MacOS",
]

dependencies = [
Expand Down Expand Up @@ -67,31 +72,33 @@ test = ["pytest"]
# maintainers, and where to support the project financially. The key is
# what's used to render the link text on PyPI.
[project.urls] # Optional
"Homepage" = "https://github.com/WISDEM/pyHAMS"
"Project" = "https://github.com/YingyiLiu/HAMS"
homepage = "https://github.com/WISDEM/pyHAMS"
documentation = "https://github.com/YingyiLiu/HAMS"
source = "https://github.com/WISDEM/pyHAMS"
download = "https://github.com/WISDEM/pyHAMS/releases"
tracker = "https://github.com/WISDEM/pyHAMS/issues"

[tool.meson-python.args]
install = ['--tags=runtime,python-runtime,bin']

# This is configuration specific to the `setuptools` build backend.
# If you are using a different build backend, you will need to change this.
[tool.setuptools]
zip-safe = false
include-package-data = true

#[tool.setuptools.packages]
#find = {}
#[tool.setuptools]
#zip-safe = false
#include-package-data = true

[tool.setuptools.packages.find]
#where = ["wisdem"]
exclude = ["Cylinder", "test"]
namespaces = true
#[tool.setuptools.packages.find]
#exclude = ["Cylinder", "test"]
#namespaces = true

[tool.setuptools.package-data]
#[tool.setuptools.package-data]
# If there are data files included in your packages that need to be
# installed, specify them here.
"*" = ["*.yaml", "*.xlsx", "*.txt", "*.so", "*.lib", "*.pyd", "*.pdb", "*.dylib", "*.dll", "*.exe"]
#"*" = ["*.yaml", "*.xlsx", "*.txt", "*.so", "*.lib", "*.pyd", "*.pdb", "*.dylib", "*.dll", "*.exe"]

[tool.black]
line-length = 120
target-version = ['py39']
target-version = ['py311']
include = '\.pyi?$'
exclude = '''
/(
Expand Down
98 changes: 0 additions & 98 deletions setup.py

This file was deleted.

0 comments on commit 06faf5e

Please sign in to comment.