-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WIP] Moving to pyproject.toml Based Packaging (#280)
* Adding option to disable Numba during tests to run code as pure Python to get coverage information * Add check for correctly raised warning * Update to unitest job name * Fix * Adding journal test back Signed-off-by: Eric Kerfoot <eric.kerfoot@kcl.ac.uk> * Install problem fix * Install problem fix * Moving to toml based packaging * Better versioning * Fix * Fix * Fix * Tweaking action * Tweaking action * Tweak
- Loading branch information
Showing
9 changed files
with
51 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
|
||
__version__ = '0.6.0b' | ||
__version__ = '0.6.0b5' |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,29 @@ | ||
|
||
[build-system] | ||
requires = ["setuptools<61.0.0", "wheel"] | ||
requires = ["setuptools>=61", "wheel"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "ExeTera" | ||
|
||
name = "exetera" | ||
description = "High-volume key-value store and analytics, based on hdf5" | ||
license = {file = "LICENSE.txt"} | ||
dependencies = ["numpy", "pandas", "h5py", "numba", "parameterized"] | ||
requires-python = ">=3.7" | ||
authors = [{ name = "Ben Murray", email = "benjamin.murray@kcl.ac.uk" }] | ||
dynamic = ["version", "readme"] | ||
|
||
[project.urls] | ||
homepage = "https://github.com/kcl-bmeis/ExeTera" | ||
|
||
[project.scripts] | ||
exetera = "exetera.bin.exetera:main" | ||
|
||
[tool.setuptools.packages.find] | ||
include = ["exetera*"] | ||
|
||
[tool.setuptools.dynamic] | ||
version = {attr = "exetera._version.__version__"} | ||
readme = {file = ["README.md"], content-type = "text/markdown"} | ||
|
||
[metadata] | ||
description-file = "README.md" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,5 @@ | ||
from setuptools import setup, find_packages | ||
from pkg_resources import parse_requirements | ||
#from Cython.Build import cythonize | ||
|
||
from os import path | ||
this_directory = path.abspath(path.dirname(__file__)) | ||
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f: | ||
long_description = f.read() | ||
from setuptools import setup | ||
|
||
# read the version and other strings from _version.py | ||
with open(path.join(this_directory, "exetera", "_version.py")) as o: | ||
exec(o.read()) | ||
|
||
# read install requirements from requirements.txt | ||
with open(path.join(this_directory, "requirements.txt")) as o: | ||
requirements = [str(r) for r in parse_requirements(o.read())] | ||
|
||
#pyxfiles = ['ops.pyx'] | ||
#pyx_full_path = [path.join(this_directory, 'exetera', '_libs', pyx) for pyx in pyxfiles] | ||
|
||
setup( | ||
name='exetera', | ||
version=__version__, | ||
description='High-volume key-value store and analytics, based on hdf5', | ||
long_description=long_description, | ||
long_description_content_type = "text/markdown", | ||
url='https://github.com/kcl-bmeis/ExeTera', | ||
author='Ben Murray', | ||
author_email='benjamin.murray@kcl.ac.uk', | ||
license='http://www.apache.org/licenses/LICENSE-2.0', | ||
packages=find_packages(), | ||
scripts=['exetera/bin/exetera'], | ||
#ext_modules = cythonize(pyx_full_path), | ||
python_requires='>=3.7', | ||
install_requires=requirements | ||
) | ||
if __name__ == "__main__": | ||
setup() |