Skip to content

Commit

Permalink
Move all config to pyproject.toml.
Browse files Browse the repository at this point in the history
  • Loading branch information
vnmabus committed Jan 26, 2023
1 parent 2bd315d commit c1f3a58
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 60 deletions.
1 change: 0 additions & 1 deletion VERSION

This file was deleted.

5 changes: 0 additions & 5 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,6 @@
# -- Extensions to the Napoleon GoogleDocstring class ---------------------
from sphinx.ext.napoleon.docstring import GoogleDocstring

import skfda.datasets

print(skfda.datasets)


try:
release = pkg_resources.get_distribution('scikit-fda').version
except pkg_resources.DistributionNotFound:
Expand Down
10 changes: 8 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,11 @@ 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"]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"

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

[tool.setuptools.dynamic]
version = {attr = "skfda.__version__"}
37 changes: 0 additions & 37 deletions setup.py

This file was deleted.

16 changes: 1 addition & 15 deletions skfda/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,4 @@
concatenate as concatenate,
)

try:
with open(
_os.path.join(
_os.path.dirname(__file__),
'..',
'VERSION',
),
'r',
) as version_file:
__version__ = version_file.read().strip()
except IOError as e:
if e.errno != _errno.ENOENT:
raise

__version__ = "0.0"
__version__ = "0.8"

0 comments on commit c1f3a58

Please sign in to comment.