Skip to content

Commit

Permalink
restructure package dir
Browse files Browse the repository at this point in the history
  • Loading branch information
valpesendorfer committed Aug 30, 2023
1 parent 1b6126b commit ef05cc4
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 38 deletions.
22 changes: 0 additions & 22 deletions _version/__init__.py

This file was deleted.

7 changes: 6 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[metadata]
name = vam.whittaker
description = VAM whittaker core
version = attr: ._version.__version__
version = attr: vam.whittaker._version.__version__
author = WFP-VAM
author_email =
maintainer = WFP-VAM
Expand All @@ -27,6 +27,11 @@ classifiers =
[options]
python_requires = >=3,<4


[options.packages.find]
include =
vam*

[aliases]
test=pytest

Expand Down
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import numpy

USE_CYTHON = "auto"
USE_CYTHON = True # "auto"

if USE_CYTHON:
try:
Expand All @@ -25,7 +25,7 @@
if USE_CYTHON:
ext_modules += [
Extension(
"vam.whittaker",
"vam.whittaker._whit",
["vam/whittaker/_whittaker.pyx"],
extra_compile_args=["-O3", "-ffast-math"],
)
Expand All @@ -34,7 +34,7 @@
else:
ext_modules += [
Extension(
"vam.whittaker",
"vam.whittaker._whit",
["vam/whittaker/_whittaker.c"],
extra_compile_args=["-O3", "-ffast-math"],
)
Expand Down
1 change: 1 addition & 0 deletions vam/whittaker/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from ._version import __version__
from ._whit import lag1corr, ws2d, ws2dp, ws2doptv, ws2doptvp

__all__ = ("__version__",)
13 changes: 1 addition & 12 deletions vam/whittaker/_version.py
Original file line number Diff line number Diff line change
@@ -1,12 +1 @@
"""
_version
Version information for MODAPE whittaker core
"""

VERSION_MAJOR = 2
VERSION_MINOR = 0
VERSION_PATCH = 2

__version__ = ".".join(VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH)
__version__ = "2.0.2"

0 comments on commit ef05cc4

Please sign in to comment.