1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

math/py-timple: Allow build with newer py-setuptools

/usr/local/lib/python3.9/site-packages/setuptools/dist.py:745: SetuptoolsDeprecationWarning: Invalid dash-separated options
!!

        ********************************************************************************
        Usage of dash-separated 'home-page' will not be supported in future
        versions. Please use the underscore name 'home_page' instead.

        By 2023-Sep-26, you need to update your project and remove deprecated calls
        or your builds will no longer be supported.

        See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
        ********************************************************************************

!!
  opt = self.warn_dash_deprecation(opt, section)
/usr/local/lib/python3.9/site-packages/setuptools/dist.py:745: SetuptoolsDeprecationWarning: Invalid dash-separated options
!!

        ********************************************************************************
        Usage of dash-separated 'long-description' will not be supported in future
        versions. Please use the underscore name 'long_description' instead.

        By 2023-Sep-26, you need to update your project and remove deprecated calls
        or your builds will no longer be supported.

        See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
        ********************************************************************************

!!
  opt = self.warn_dash_deprecation(opt, section)
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "setup.py", line 3, in <module>
    setuptools.setup()
  File "/usr/local/lib/python3.9/site-packages/setuptools/__init__.py", line 107, in setup
    return distutils.core.setup(**attrs)
  File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 159, in setup
    dist.parse_config_files()
  File "/usr/local/lib/python3.9/site-packages/setuptools/dist.py", line 894, in parse_config_files
    setupcfg.parse_configuration(
  File "/usr/local/lib/python3.9/site-packages/setuptools/config/setupcfg.py", line 177, in parse_configuration
    options.parse()
  File "/usr/local/lib/python3.9/site-packages/setuptools/config/setupcfg.py", line 500, in parse
    section_parser_method(section_options)
  File "/usr/local/lib/python3.9/site-packages/setuptools/config/setupcfg.py", line 475, in parse_section
    self[name] = value
  File "/usr/local/lib/python3.9/site-packages/setuptools/config/setupcfg.py", line 293, in __setitem__
    parsed = self.parsers.get(option_name, lambda x: x)(value)
  File "/usr/local/lib/python3.9/site-packages/setuptools/_vendor/packaging/specifiers.py", line 714, in __init__
    parsed.add(Specifier(specifier))
  File "/usr/local/lib/python3.9/site-packages/setuptools/_vendor/packaging/specifiers.py", line 245, in __init__
    raise InvalidSpecifier(f"Invalid specifier: '{spec}'")
setuptools.extern.packaging.specifiers.InvalidSpecifier: Invalid specifier: '>= 3.*'
*** Error code 1

Approved by:	portmgr (blanket)
With hat:	python
This commit is contained in:
Po-Chuan Hsieh 2023-08-01 00:39:04 +08:00
parent e1479964ed
commit 99db9d6ed7
No known key found for this signature in database
GPG Key ID: 9A4BD10F002DD04B

View File

@ -0,0 +1,21 @@
--- setup.cfg.orig 2021-11-18 17:41:37 UTC
+++ setup.cfg
@@ -5,15 +5,15 @@ license = MIT
license_files = LICENSE.rst
author = Oehrly
author_email = oehrly@mailbox.org
-home-page = https://github.com/theOehrly/Timple
+home_page = https://github.com/theOehrly/Timple
description = Extended functionality for plotting timedelta-like values with Matplotlib
-long-description = file: README.md
+long_description = file: README.md
long_description_content_type = text/markdown
[options]
zip_safe = False
packages = timple
-python_requires = >= 3.*
+python_requires = >= 3.0
install_requires =
numpy
matplotlib