-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
A few more new python ports #20370
Conversation
Notifying maintainers: |
There was a problem hiding this 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 |
There was a problem hiding this comment.
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}"
python/py-bitstring/Portfile
Outdated
|
||
livecheck.type none | ||
# test.dir ${worksrcpath}/test | ||
# test.cmd ${python.bin} -m unittest discover |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
plaforms line?
@reneeotten fixed everything. I hope. Meanwhile, I've opened macports/upt-macports#74 to avoid that issue in the future |
Rebased to exclude update |
I'll look tonight after work |
Thanks! |
There was a problem hiding this 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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here it is
There was a problem hiding this comment.
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.
Description
Goal: statisfy dependencies for
osxphotos
.Some ports has also @RhetTbull as co-mainaner which was cleared with him.
Type(s)
Tested on
macOS 12.6.8 21G725 x86_64
Xcode 14.2 14C18
Verification
Have you
port lint --nitpick
?sudo port test
?sudo port -vst install
?