Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move metadata to pyproject.toml #503

Merged
merged 4 commits into from
Dec 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 = "[email protected]"},
]
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='[email protected]',
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(),
)