-
Notifications
You must be signed in to change notification settings - Fork 13
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
Add cibuildwheel config #270
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
prune eventio/_dev_version | ||
prune src/eventio/_dev_version | ||
prune tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,66 @@ | ||
[build-system] | ||
requires = ["setuptools>=64", "Cython", "numpy>=1.25", 'setuptools_scm[toml]>=8'] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "eventio" | ||
description = "Python read-only implementation of the EventIO file format" | ||
|
||
requires-python = '>=3.9' | ||
dependencies = [ | ||
'numpy >= 1.21', | ||
'corsikaio ~= 0.3.3', | ||
'zstandard > 0.11.1', # memory leak in zstandard 0.11.1 | ||
'setuptools_scm', | ||
] | ||
|
||
authors = [ | ||
{name = "Maximilian Linhoff", email = "[email protected]"}, | ||
{name = "Dominik Neise", email = "[email protected]"}, | ||
{name = "Orel Gueta", email = "[email protected]"}, | ||
] | ||
license = {text = "MIT"} | ||
readme = "README.rst" | ||
|
||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Intended Audience :: Science/Research", | ||
"License :: OSI Approved :: MIT License", | ||
"Natural Language :: English", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Topic :: Scientific/Engineering :: Astronomy", | ||
"Topic :: Scientific/Engineering :: Physics", | ||
] | ||
|
||
dynamic = ["version"] | ||
|
||
[project.urls] | ||
repository = "https://github.com/cta-observatory/pyeventio" | ||
issues = "https://github.com/cta-observatory/pyeventio/issues" | ||
conda-forge = "https://anaconda.org/conda-forge/eventio" | ||
|
||
[project.scripts] | ||
eventio_print_structure = 'eventio.scripts.print_structure:main' | ||
eventio_print_simtel_history = 'eventio.scripts.print_simtel_history:main' | ||
eventio_print_simtel_metaparams = 'eventio.scripts.print_simtel_metaparams:main' | ||
eventio_plot_histograms = 'eventio.scripts.plot_hists:main' | ||
eventio_print_object_information = 'eventio.scripts.print_object_information:main' | ||
eventio_cut_file = 'eventio.scripts.cut_eventio_file:main' | ||
|
||
[tool.setuptools.packages.find] | ||
where = ["src"] | ||
exclude = ["eventio._dev_version"] | ||
|
||
[tool.setuptools_scm] | ||
version_file = "src/eventio/_version.py" | ||
|
||
|
||
[tool.pytest] | ||
addopts = "-v --durations=10" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Does it matter that we build everything on ubuntu as a test for linux instead of alma? It's not super relevant for this PR, I am asking because that question was raised in the simtools context.
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.
The base image for the linux build doesn't matter at all. Since the actual build happens another layer down in the "manylinux" docker images, which are actually based on centos:
https://github.com/pypa/manylinux
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.
We don't have a choice here, binary wheels delivered to pypi must follow these standards.
We can then test if the wheels build that way run correctly on our reference system, which they should.
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.
OK, that answers the question also for simtools then. We can do all of the building in ubuntu, even building the containers, and just make sure that the tests (unit and integration) run well in the alma container.
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.
simtools itself is not a compiled module, so the story is different (much simpler, since you upload a platform-independet wheel to pypi).
The question how to compile the needed binary tools by simpipe is different.