-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate to setup.cfg and pyproject.toml (#299)
- Loading branch information
Showing
5 changed files
with
62 additions
and
56 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
__version_info__ = (1, 6, 1) | ||
__version__ = '.'.join('%d' % d for d in __version_info__) | ||
from importlib import metadata | ||
|
||
|
||
__version__ = metadata.version('nptdms') | ||
__version_info__ = tuple(int(x) for x in __version__.split('.')) |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[build-system] | ||
requires = [ | ||
"setuptools", | ||
] | ||
build-backend = "setuptools.build_meta" |
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 |
---|---|---|
@@ -0,0 +1,48 @@ | ||
[metadata] | ||
name = npTDMS | ||
version = 1.6.2 | ||
description = Cross-platform, NumPy based module for reading TDMS files produced by LabView | ||
author = Adam Reeve | ||
author_email = adreeve@gmail.com | ||
url = https://github.com/adamreeve/npTDMS | ||
long_description = file: README.rst | ||
license = LGPL | ||
classifiers = | ||
Development Status :: 5 - Production/Stable | ||
Operating System :: OS Independent | ||
Programming Language :: Python | ||
Programming Language :: Python :: 3 | ||
Programming Language :: Python :: 3.8 | ||
Programming Language :: Python :: 3.9 | ||
Programming Language :: Python :: 3.10 | ||
Programming Language :: Python :: 3.11 | ||
Topic :: Scientific/Engineering | ||
License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL) | ||
Intended Audience :: Science/Research | ||
Natural Language :: English | ||
|
||
[options] | ||
packages = | ||
nptdms | ||
nptdms.export | ||
nptdms.test | ||
install_requires = | ||
numpy | ||
|
||
[options.entry_points] | ||
console_scripts = | ||
tdmsinfo = nptdms.tdmsinfo:main | ||
|
||
[options.extras_require] | ||
test = | ||
pytest >= 3.1.0 | ||
hypothesis | ||
pytest-benchmark | ||
thermocouples_reference | ||
scipy | ||
pandas = | ||
pandas | ||
hdf = | ||
h5py >= 2.10.0 | ||
thermocouple_scaling = | ||
|
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,57 +1,7 @@ | ||
import os | ||
#!/usr/bin/env python | ||
|
||
from setuptools import setup | ||
|
||
|
||
def read_version(): | ||
here = os.path.abspath(os.path.dirname(__file__)) | ||
version_path = os.path.sep.join((here, "nptdms", "version.py")) | ||
v_globals = {} | ||
v_locals = {} | ||
exec(open(version_path).read(), v_globals, v_locals) | ||
return v_locals['__version__'] | ||
|
||
|
||
setup( | ||
name = 'npTDMS', | ||
version = read_version(), | ||
description = ("Cross-platform, NumPy based module for reading " | ||
"TDMS files produced by LabView."), | ||
author = 'Adam Reeve', | ||
author_email = 'adreeve@gmail.com', | ||
url = 'https://github.com/adamreeve/npTDMS', | ||
packages = ['nptdms', 'nptdms.export', 'nptdms.test'], | ||
long_description=open('README.rst').read(), | ||
license = 'LGPL', | ||
classifiers = [ | ||
'Development Status :: 4 - Beta', | ||
'Operating System :: OS Independent', | ||
'Programming Language :: Python', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.7', | ||
'Programming Language :: Python :: 3.8', | ||
'Programming Language :: Python :: 3.9', | ||
'Programming Language :: Python :: 3.10', | ||
'Topic :: Scientific/Engineering', | ||
'License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)', | ||
'Intended Audience :: Science/Research', | ||
'Natural Language :: English', | ||
], | ||
install_requires = ['numpy'], | ||
extras_require = { | ||
'test': [ | ||
'pytest>=3.1.0', | ||
'hypothesis', | ||
'pytest-benchmark', | ||
'thermocouples_reference', | ||
'scipy', | ||
], | ||
'pandas': ['pandas'], | ||
'hdf': ['h5py>=2.10.0'], | ||
'thermocouple_scaling': [], # Kept for backwards compatibility | ||
}, | ||
entry_points = """ | ||
[console_scripts] | ||
tdmsinfo=nptdms.tdmsinfo:main | ||
""" | ||
) | ||
if __name__ == '__main__': | ||
setup() |