Skip to content

Commit

Permalink
Merge pull request #503 from GAA-UAM/feature/pyproject.toml
Browse files Browse the repository at this point in the history
Move metadata to pyproject.toml
  • Loading branch information
vnmabus committed Dec 30, 2022
2 parents d65222b + 3b4c703 commit 470e79f
Show file tree
Hide file tree
Showing 4 changed files with 71 additions and 116 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ jobs:
run: |
pip3 debug --verbose .
pip3 install numba
pip3 install --upgrade-strategy eager -v .
coverage run --source=skfda/ setup.py test;
pip3 install ".[test]"
coverage run --source=skfda/ -m pytest;
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
56 changes: 0 additions & 56 deletions .zenodo.json

This file was deleted.

59 changes: 59 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,62 @@
[project]
name = "scikit-fda"
description = "Functional Data Analysis Python package."
readme = "README.rst"
requires-python = ">=3.8"
license = {file = "LICENSE.txt"}
keywords = [
"functional data",
"statistics",
"machine learning",
]
maintainers = [
{name = "Carlos Ramos Carreño", email = "vnmabus@gmail.com"},
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Topic :: Scientific/Engineering :: Mathematics",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]

dynamic = ["version"]

dependencies = [
"cython",
"dcor",
"fdasrsf>=2.2.0",
"findiff",
"lazy_loader",
"matplotlib",
"multimethod>=1.5",
"numpy>=1.16",
"pandas>=1.0",
"rdata",
"scikit-datasets[cran]>=0.1.24",
"scikit-learn>=0.20",
"scipy>=1.3.0",
"typing-extensions",
]

[project.optional-dependencies]
test = [
"pytest",
"pytest-env",
"pytest-subtests",
]

[project.urls]
homepage = "https://github.com/GAA-UAM/scikit-fda"
documentation = "https://fda.readthedocs.io"
repository = "https://github.com/GAA-UAM/scikit-fda"

[build-system]
# Minimum requirements for the build system to execute.
requires = ["setuptools", "wheel"]
68 changes: 10 additions & 58 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,66 +21,18 @@
"""

import os
import sys

from setuptools import find_packages, setup

needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv)
pytest_runner = ['pytest-runner'] if needs_pytest else []

DOCLINES = (__doc__ or '').split("\n")

with open(os.path.join(os.path.dirname(__file__),
'VERSION'), 'r') as version_file:
with open(
os.path.join(os.path.dirname(__file__), "VERSION"),
"r",
) as version_file:
version = version_file.read().strip()

setup(name='scikit-fda',
version=version,
description=DOCLINES[1],
long_description="\n".join(DOCLINES[3:]),
url='https://fda.readthedocs.io',
project_urls={
"Bug Tracker": "https://github.com/GAA-UAM/scikit-fda/issues",
"Documentation": "https://fda.readthedocs.io",
"Source Code": "https://github.com/GAA-UAM/scikit-fda",
},
maintainer='Carlos Ramos Carreño',
maintainer_email='vnmabus@gmail.com',
include_package_data=True,
platforms=['any'],
license='BSD',
packages=find_packages(),
python_requires='>=3.7, <4',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Topic :: Scientific/Engineering :: Mathematics',
'Topic :: Software Development :: Libraries :: Python Modules',
'Typing :: Typed',
],
install_requires=[
'cython',
'dcor',
'fdasrsf>=2.2.0',
'findiff',
'lazy_loader',
'matplotlib',
'multimethod>=1.5',
'numpy>=1.16',
'pandas>=1.0',
'rdata',
'scikit-datasets[cran]>=0.1.24',
'scikit-learn>=0.20',
'scipy>=1.3.0',
'typing-extensions',
],
setup_requires=pytest_runner,
tests_require=['pytest', 'pytest-env'],
test_suite='skfda.tests',
zip_safe=False)
setup(
name="scikit-fda",
version=version,
include_package_data=True,
packages=find_packages(),
)

0 comments on commit 470e79f

Please sign in to comment.