Skip to content

Commit

Permalink
Move build/install to PEP 517.
Browse files Browse the repository at this point in the history
  • Loading branch information
lgautier committed Oct 29, 2022
1 parent 3957e4b commit b182245
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 21 deletions.
52 changes: 52 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
[build-system]
requires = [
"setuptools >= 61",
"wheel",
]
build-backend = "setuptools.build_meta"

[project]
name = "rpy2-Matrix"
description = "Mapping the R package Matrix"
readme = "README.md"
requires-python = ">=3.7"
license = { text = "GPLv2+" }
authors = [{ name = "Laurent Gautier", email = "[email protected]" }]
classifiers = [
"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",
"License :: OSI Approved :: MIT License",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Development Status :: 5 - Production/Stable"
]
dependencies = [
"pyarrow",
"rpy2>= 3.5"
]
dynamic = ["version"]

[project.optional-dependencies]
test = ["pytest"]

[project.urls]
Homepage = "https://rpy2.github.io/rpy2-Matrix/"
Documentation = "https://rpy2.github.io/rpy2-Matrix/version/main/html/index.html"
Source = "https://github.com/rpy2/rpy2-Matrix/"
Tracker = "https://github.com/rpy2/rpy2-Matrix/issue"

[tool.setuptools]
packages = [
"rpy2_Matrix"
]

[tool.setuptools.dynamic]
version = { attr = "rpy2_Matrix.__version__" }

[tool.pytest.ini_options]
minversion = "6.0"
testpaths = ["rpy2_Matrix/tests"]
23 changes: 2 additions & 21 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,23 +1,4 @@
from distutils.core import setup

pack_version = __import__('rpy2_Matrix').__version__
import setuptools

if __name__ == '__main__':
setup(
name='rpy2-Matrix',
version=pack_version,
description='Mapping the R package Matrix',
license='GPLv2+',
requires=['rpy2'],
packages=['rpy2_Matrix'],
classifiers=['Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
('License :: OSI Approved :: GNU General '
'Public License v2 or later (GPLv2+)'),
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'Development Status :: 5 - Production/Stable']
)
setuptools.setup()

0 comments on commit b182245

Please sign in to comment.