Skip to content

Commit e9ced57

Browse files
committed
feat: remove deprecated setup.py
1 parent 21e730b commit e9ced57

File tree

4 files changed

+57
-31
lines changed

4 files changed

+57
-31
lines changed

omv/__init__.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-
__version__ = '0.2.7'
1+
try:
2+
import importlib.metadata
3+
__version__ = importlib.metadata.version("OSBModelValidation")
4+
except ImportError:
5+
import importlib_metadata
6+
__version__ = importlib_metadata.version("OSBModelValidation")

pyproject.toml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["setuptools"]
3+
build-backend = "setuptools.build_meta"

setup.cfg

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
[metadata]
2+
name = OSBModelValidation
3+
version = 0.2.7
4+
author = Boris Marin
5+
author_email = [email protected]
6+
url = https://github.com/OpenSourceBrain/osb-model-validation
7+
license = LGPL-3.0-only
8+
description = Open Source Brain Model validation
9+
long_description = file: README.md
10+
long_description_content_type = text/markdown
11+
classifiers=
12+
Intended Audience :: Science/Research
13+
License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)
14+
Natural Language :: English
15+
Operating System :: OS Independent
16+
Programming Language :: Python :: 3.7
17+
Programming Language :: Python :: 3.8
18+
Programming Language :: Python :: 3.9
19+
Programming Language :: Python :: 3.10
20+
Programming Language :: Python :: 3.11
21+
Topic :: Scientific/Engineering
22+
23+
[options]
24+
install_requires =
25+
PyYAML
26+
numpy
27+
pyrx
28+
pathlib
29+
docopt
30+
31+
packages = find:
32+
33+
[options.packages.find]
34+
where = .
35+
include = omv*
36+
37+
[options.entry_points]
38+
console_scripts =
39+
omv = omv.omv_util:main
40+
41+
[options.package_data]
42+
* =
43+
*.yaml
44+
*.g
45+
46+
47+
[flake8]
48+
ignore = E501, E502, F403, F405

setup.py

-30
This file was deleted.

0 commit comments

Comments
 (0)