Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#63098 closed update (fixed)

py-cartopy @0.18.0_1: update request to latest stable release (v0.19.0.post1)

Reported by: pgf Owned by: reneeotten (Renee Otten)
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: Cc: petrrr
Port: py-cartopy

Description

This is an update request ticket for py-cartopy. Current MacPorts version is 0.18.0, but a newer stable release is available (v0.19.0.post1).

Attachments (1)

main.log (18.5 KB) - added by pgf 3 years ago.
Full update log.

Download all attachments as: .zip

Change History (8)

comment:1 Changed 3 years ago by reneeotten (Renee Otten)

Owner: set to reneeotten
Resolution: fixed
Status: newclosed

In 20f1e4a79bc49505da4399822f50b1b6e94bc9d1/macports-ports (master):

py-cartopy: update to 0.19.0.post1, dropy py27/py35

Closes: #63098

comment:2 Changed 3 years ago by pgf

This update fails with the following error:

:info:build LookupError: setuptools-scm was unable to detect version for '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-cartopy/py39-cartopy/work/cartopy-0.19.0.post1'.

Full log attached.

Changed 3 years ago by pgf

Attachment: main.log added

Full update log.

comment:3 Changed 3 years ago by reneeotten (Renee Otten)

hhmm... I think I missed a dependency on py-setuptools_scm. I just committed a change that should fix this, if you want to try it right now just first to "sudo port install py39-setuptools_scm}}} and then try to install py39-cartopy again.

comment:4 Changed 3 years ago by reneeotten (Renee Otten)

it did install though on most of the buildbots and locally for me, so I am not completely sure what has changed..

Last edited 3 years ago by reneeotten (Renee Otten) (previous) (diff)

comment:5 Changed 3 years ago by pgf

I had to install the py39-setuptools_scm_git_archive port too. Eventually everything worked fine. Thank you so much!

comment:6 Changed 3 years ago by EJFielding (Eric Fielding)

I am not sure whether to add to this ticket or create a new one. The py37-cartopy-0.19.0.post1_0 version fails to build for me. I get the same error as @pgf:

:info:build Traceback (most recent call last):
:info:build   File "setup.py", line 420, in <module>
:info:build     'Topic :: Scientific/Engineering :: Visualization',
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/setuptools/__init__.py", line 153, in setup
:info:build     return distutils.core.setup(**attrs)
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/core.py", line 108, in setup
:info:build     _setup_distribution = dist = klass(attrs)
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/setuptools/dist.py", line 456, in __init__
:info:build     k: v for k, v in attrs.items()
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 292, in __init__
:info:build     self.finalize_options()
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/setuptools/dist.py", line 807, in finalize_options
:info:build     ep(self)
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/setuptools/dist.py", line 814, in _finalize_setup_keywords
:info:build     ep.load()(self, ep.name, value)
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/setuptools_scm/integration.py", line 24, in version_keyword
:info:build     dist.metadata.version = _get_version(config)
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/setuptools_scm/__init__.py", line 173, in _get_version
:info:build     parsed_version = _do_parse(config)
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/setuptools_scm/__init__.py", line 142, in _do_parse
:info:build     "use git+https://github.com/user/proj.git#egg=proj" % config.absolute_root
:info:build LookupError: setuptools-scm was unable to detect version for '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-cartopy/py37-cartopy/work/cartopy-0.19.0.post1'.
:info:build Make sure you're either building from a fully intact git repository or PyPI tarballs. Most other sources (such as GitHub's tarballs, a git checkout without the .git folder) don't contain the necessary metadata and will not work.
:info:build For example, if you're using pip, instead of https://github.com/user/proj/archive/master.zip use git+https://github.com/user/proj.git#egg=proj
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-cartopy/py37-cartopy/work/cartopy-0.19.0.post1" && /opt/local/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7 setup.py --no-user-cfg build -j16 

comment:7 Changed 3 years ago by EJFielding (Eric Fielding)

Sorry, I see the later posts by @pgf and after port install py37-setuptools_scm_git_archive I was able to get the build to work. It seems this needs to be a dependency in the port.

Note: See TracTickets for help on using tickets.