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

A few more new python ports #20370

Merged
merged 10 commits into from
Sep 12, 2023
Merged

A few more new python ports #20370

merged 10 commits into from
Sep 12, 2023

Conversation

catap
Copy link
Contributor

@catap catap commented Sep 9, 2023

Description

Goal: statisfy dependencies for osxphotos.

Some ports has also @RhetTbull as co-mainaner which was cleared with him.

Type(s)
  • enhancement
Tested on

macOS 12.6.8 21G725 x86_64
Xcode 14.2 14C18

Verification

Have you

  • followed our Commit Message Guidelines?
  • squashed and minimized your commits?
  • checked that there aren't other open pull requests for the same change?
  • checked your Portfile with port lint --nitpick?
  • tried existing tests with sudo port test?
  • tried a full install with sudo port -vst install?
  • tested basic functionality of all binary files?

@macportsbot
Copy link

Notifying maintainers:
@petrrr for port py-bitarray.

Copy link
Contributor

@reneeotten reneeotten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question regarding "platforms" line pertains to each Portfile

version 1.0.3
revision 0

supported_archs noarch
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should probably then as well add "platforms {darwin any}"


livecheck.type none
# test.dir ${worksrcpath}/test
# test.cmd ${python.bin} -m unittest discover
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove these commented out lines

version 1.3.0
revision 0

supported_archs noarch
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also needs "platforms {darwin any}"?

version 0.3.0
revision 0

supported_archs noarch
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same question as above for platforms line

revision 0

categories-append devel
supported_archs noarch
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

platforms line?

revision 0

categories-append devel
supported_archs noarch
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

plaforms line?

@catap
Copy link
Contributor Author

catap commented Sep 9, 2023

@reneeotten fixed everything. I hope.

Meanwhile, I've opened macports/upt-macports#74 to avoid that issue in the future

@catap
Copy link
Contributor Author

catap commented Sep 10, 2023

Rebased to exclude update py-arpeggio because it was already made

@catap
Copy link
Contributor Author

catap commented Sep 11, 2023

@reneeotten ?

@reneeotten
Copy link
Contributor

I'll look tonight after work

@catap
Copy link
Contributor Author

catap commented Sep 11, 2023

Thanks!

Copy link
Contributor

@reneeotten reneeotten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry, one more question; other than that this is ready to merge

pre-test {
test.env PYTHONPATH=[glob -nocomplain ${worksrcpath}/build/lib*]
}

test.run yes
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do the tests run in this way? I would think you have to set python.test_framework to an empty string as otherwise it will assume pytest and add test.args that will probably now work with the way tests are called here. Removing test.target should be fine though.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@reneeotten yes, I’ve run tests this way

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

--->  Computing dependencies for py311-bitarray.
--->  Testing py311-bitarray
Executing:  cd "/opt/local/var/macports/build/_Users_catap_src_macports-ports_python_py-bitarray/py311-bitarray/work/bitarray-2.8.1" && /opt/local/Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11 bitarray/test_bitarray.py -o addopts='' 
/opt/local/var/macports/build/_Users_catap_src_macports-ports_python_py-bitarray/py311-bitarray/work/bitarray-2.8.1/bitarray/test_bitarray.py:5057: DeprecationWarning: unittest.makeSuite() is deprecated and will be removed in Python 3.13. Please use unittest.TestLoader.loadTestsFromTestCase() instead.
  suite.addTest(unittest.makeSuite(cls))
............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
----------------------------------------------------------------------
Ran 492 tests in 0.666s

OK
bitarray is installed in: /opt/local/var/macports/build/_Users_catap_src_macports-ports_python_py-bitarray/py311-bitarray/work/bitarray-2.8.1/bitarray
bitarray version: 2.8.1
sys.version: 3.11.5 (main, Aug 25 2023, 01:35:05) [Clang 13.1.6 (clang-1316.0.21.2.5)]
sys.prefix: /opt/local/Library/Frameworks/Python.framework/Versions/3.11
pointer size: 64 bit
sizeof(size_t): 8
sizeof(bitarrayobject): 80
__clang__ or __GNUC__ defined: 1
PY_LITTLE_ENDIAN (use word shift): 1
DEBUG: 0

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But idea to add python.test_framework with empty string is good one, it allows to remove useless dependency, let me do it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here it is

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, you can also see that without that addition it added "-o addopts=" which is a outest flag that shouldn't be added here.

@reneeotten reneeotten merged commit dead657 into macports:master Sep 12, 2023
3 checks passed
@catap catap deleted the osxphotos branch September 13, 2023 06:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

4 participants