Skip to content

Commit

Permalink
Turn package into empty wrapper for wilson.wcxf
Browse files Browse the repository at this point in the history
  • Loading branch information
David Straub committed Oct 31, 2019
1 parent a1c8c4c commit 16db4dc
Show file tree
Hide file tree
Showing 47 changed files with 17 additions and 15,063 deletions.
4 changes: 2 additions & 2 deletions README.md
@@ -1,7 +1,7 @@
[![Build Status](https://travis-ci.org/wcxf/wcxf-python.svg?branch=master)](https://travis-ci.org/wcxf/wcxf-python) [![Coverage Status](https://coveralls.io/repos/github/wcxf/wcxf-python/badge.svg?branch=master)](https://coveralls.io/github/wcxf/wcxf-python?branch=master)

# WCxf Python API and command line interface

**Note: the wcxf package has been merged into [wilson](https://github.com/wilson-eft/wilson) and is deprecated as a standalone package.**

This Python package provides a Python API and command line interface to
perform the following operations on WCxf files (or dictionaries):

Expand Down
48 changes: 14 additions & 34 deletions setup.py
@@ -1,38 +1,18 @@
from setuptools import setup, find_packages

with open('README.md') as f:
with open("README.md") as f:
LONG_DESCRIPTION = f.read()

setup(name='wcxf',
version='1.6.2',
author='David M. Straub, Jason Aebischer',
author_email='david.straub@tum.de, jason.aebischer@tum.de',
license='MIT',
url='https://wcxf.github.io',
description='Python API and command line interface for the Wilson Coefficient exchange format',
long_description=LONG_DESCRIPTION,
long_description_content_type='text/markdown',
packages=find_packages(),
package_data={
'wcxf': ['data/*.yml',
'data/*.yaml',
'data/*.json',
'bases/*.json',
'bases/child/*.json',
]
},
install_requires=['pyyaml', 'ckmutil>=0.3.2', 'pandas',
'wilson'],
extras_require={
'testing': ['nose'],
},
entry_points={
'console_scripts': [
'wcxf = wcxf.cli:wcxf_cli',
'wcxf2eos = wcxf.cli:eos',
'wcxf2dsixtools = wcxf.cli:wcxf2dsixtools',
'dsixtools2wcxf = wcxf.cli:dsixtools2wcxf',
'wcxf2smeftsim = wcxf.cli:smeftsim',
]
},
)
setup(
name="wcxf",
version="2.0",
author="David M. Straub, Jason Aebischer",
author_email="david.straub@tum.de, jason.aebischer@tum.de",
license="MIT",
url="https://wcxf.github.io",
description="Python API and command line interface for the Wilson Coefficient exchange format",
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",
packages=find_packages(),
install_requires=["wilson"],
)
23 changes: 1 addition & 22 deletions wcxf/__init__.py
@@ -1,22 +1 @@
from .classes import *
from . import matchers
from . import translators
from wilson import util

# read all EFTs and bases from the wcxf-bases submodule

import os
import glob

_root = os.path.abspath(os.path.dirname(__file__))
all_efts = glob.glob(os.path.join(_root, 'bases', '*.eft.json'))
all_bases = glob.glob(os.path.join(_root, 'bases', '*.basis.json'))
child_bases = glob.glob(os.path.join(_root, 'bases', 'child', '*.basis.json'))

for eft in all_efts:
with open(eft, 'r') as f:
EFT.load(f)

for basis in all_bases + child_bases:
with open(basis, 'r') as f:
Basis.load(f)
from wilson.wcxf import *
1 change: 0 additions & 1 deletion wcxf/bases
Submodule bases deleted from 6c544e

0 comments on commit 16db4dc

Please sign in to comment.