Skip to content

Commit 6e213e2

Browse files
committed
Moved to pyproject.toml (#10)
1 parent 1ef0b2e commit 6e213e2

File tree

2 files changed

+35
-30
lines changed

2 files changed

+35
-30
lines changed

pyproject.toml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
[build-system]
2+
requires = ["setuptools>=61.0", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "spm-python"
7+
version = "25.01-alpha2"
8+
description = "Python bindings for the SPM software."
9+
readme = "README.md"
10+
license = {file = "LICENSE"}
11+
authors = [{name = "Johan Medrano", email = "[email protected]"}]
12+
requires-python = ">=3.9,<=3.12"
13+
classifiers = [
14+
"Development Status :: 3 - Alpha",
15+
"License :: OSI Approved :: GPL2",
16+
"Programming Language :: Python :: 3",
17+
"Programming Language :: Python :: 3.9",
18+
"Programming Language :: Python :: 3.10",
19+
"Programming Language :: Python :: 3.11",
20+
"Programming Language :: Python :: 3.12",
21+
]
22+
dependencies = [
23+
"numpy"
24+
]
25+
26+
[project.urls]
27+
Repository = "https://github.com/spm/spm-python"
28+
29+
[tool.setuptools.packages.find]
30+
include = ["spm"]
31+
32+
[tool.setuptools.package-data]
33+
spm = ["_spm/_spm.ctf"]

setup.py

+2-30
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,4 @@
1-
from setuptools import setup, find_packages
2-
3-
# Read the contents of your README file for the long description
4-
with open("README.md", "r") as fh:
5-
long_description = fh.read()
1+
from setuptools import setup
62

73
# Setup configuration
8-
setup(
9-
name='spm-python',
10-
version='25.01-alpha2',
11-
author='Johan Medrano',
12-
author_email='[email protected]',
13-
description='Python bindings for the SPM software.',
14-
long_description=long_description,
15-
long_description_content_type='text/markdown',
16-
url='https://github.com/spm/spm-python',
17-
packages=find_packages(),
18-
include_package_data=True,
19-
package_data={
20-
'spm': ['_spm/_spm.ctf'],
21-
},
22-
classifiers=[
23-
'Programming Language :: Python :: 3',
24-
'License :: OSI Approved :: GPL2',
25-
'Operating System :: OS Independent',
26-
],
27-
install_requires=[
28-
'numpy',
29-
'scipy'
30-
],
31-
python_requires='>=3.9,<=3.12',
32-
)
4+
setup()

0 commit comments

Comments
 (0)