Skip to content

Commit

Permalink
TMP
Browse files Browse the repository at this point in the history
  • Loading branch information
coldfix committed Dec 24, 2024
1 parent d1a33b3 commit bc3d651
Show file tree
Hide file tree
Showing 5 changed files with 105 additions and 49 deletions.
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
recursive-include src/cpymad *.pxd *.pyx *.c
recursive-include src/cpymad *.pxd *.pyx
recursive-include test *.py *.madx
4 changes: 4 additions & 0 deletions TODO
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
pyproject.toml: cython
cpymad.selfcheck

musllinux...
32 changes: 32 additions & 0 deletions links.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
https://setuptools.pypa.io/en/latest/userguide/miscellaneous.html#using-manifest-in
https://setuptools.pypa.io/en/latest/userguide/datafiles.html
https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html
https://packaging.python.org/en/latest/guides/writing-pyproject-toml/
https://pip.pypa.io/en/stable/reference/build-system/pyproject-toml/



https://docs.astral.sh/ruff/configuration/



https://github.com/actions/runner-images#available-images
https://github.com/actions/setup-python/blob/main/docs/advanced-usage.md#available-versions-of-python-pypy-and-graalpy
https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories
https://xcodereleases.com/

https://devguide.python.org/versions/


https://py-free-threading.github.io/ci/




https://www.vim.org/scripts/script.php?script_id=2830


#ifdef __GNUC__
#ifdef __MINGW32__


68 changes: 68 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
[project]
name = "cpymad"
description = "Cython binding to MAD-X"
dynamic = ["version"]

authors = [
{name = "Thomas Gläßle", email = "t_glaessle@gmx.de"},
{name = "Yngve Inntjore Levinsen"},
{name = "Kajetan Fuchsberger"},
]
maintainers = [
{name = "Thomas Gläßle", email = "t_glaessle@gmx.de"},
{name = "Riccardo De Maria", email = "riccardodemaria@gmail.com"},
]

readme = {file = "README.rst", content-type = "text/x-rst"}
license = {file = "COPYING.rst", text = "GPLv3+"}

classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"License :: OSI Approved :: Apache Software License",
"License :: Other/Proprietary License",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering :: Physics",
]

urls.Github = "https://github.com/hibtc/cpymad"
urls.Issues = "https://github.com/hibtc/cpymad/issues"
urls.Documentation = "http://hibtc.github.io/cpymad/"
urls.Changelog = "https://github.com/hibtc/cpymad/blob/master/CHANGES.rst"

requires-python = ">=3.5"

dependencies = [
"numpy",
"minrpc>=0.1.0",
]
optional-dependencies.doc = [
"sphinx",
"sphinx_rtd_theme",
"sphinx_substitution_extensions",
"sphinx_automodapi",
"sphinx_autodoc_typehints",
"pandas",
]
optional-dependencies.dev = [
"cython",
"flake8",
"pytest",
]

[build-system]
build-backend = "setuptools.build_meta"
requires = [
"setuptools >= 61.0",
"cython>=3.1.0a1 ; python_version >= '3.13'", # Cython3.1 needed for free-threaded python
"cython<3 ; python_version < '3.8'", # Cython3.1 dropped support for python<3.8
"cython ; python_version >= '3.8' and python_version < '3.13'", # no particular requirements
]

[tool.setuptools]
dynamic.version.attr = "cpymad.__version__"
include-package-data = true
48 changes: 0 additions & 48 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,53 +1,5 @@
[metadata]
name = cpymad
version = attr: cpymad.__version__
description = Cython binding to MAD-X
url = https://github.com/hibtc/cpymad
long_description = file: README.rst
author = Thomas Gläßle
author_email = t_glaessle@gmx.de
license = GPLv3+
license_files =
COPYING.rst
LICENSE/*
src/cpymad/COPYING/*
project_urls =
Source Code = https://github.com/hibtc/cpymad
Bug Tracker = https://github.com/hibtc/cpymad/issues
Documentation = http://hibtc.github.io/cpymad/
classifiers =
Development Status :: 4 - Beta
Intended Audience :: Science/Research
License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
License :: OSI Approved :: Apache Software License
License :: Other/Proprietary License
Operating System :: MacOS :: MacOS X
Operating System :: Microsoft :: Windows
Operating System :: POSIX :: Linux
Programming Language :: Python :: 3
Topic :: Scientific/Engineering :: Physics
long_description_content_type = text/x-rst

[options]
zip_safe = false
include_package_data = true
python_requires = >=3.5
install_requires =
numpy
minrpc>=0.1.0

[options.extras_require]
doc =
sphinx
sphinx_rtd_theme
sphinx_substitution_extensions
sphinx_automodapi
sphinx_autodoc_typehints
pandas
dev =
cython
flake8
pytest

[flake8]
# codes: https://pycodestyle.readthedocs.io/en/latest/intro.html#error-codes
Expand Down

0 comments on commit bc3d651

Please sign in to comment.