diff --git a/projects/cython.org/package.yml b/projects/cython.org/package.yml new file mode 100644 index 00000000..7ea77b90 --- /dev/null +++ b/projects/cython.org/package.yml @@ -0,0 +1,26 @@ +distributable: + url: https://github.com/cython/cython/archive/refs/tags/{{version}}.tar.gz + strip-components: 1 + +versions: + github: cython/cython/releases + +provides: + - bin/cython + +dependencies: + python.org: '*' + tea.xyz/gx/cc: c99 + +build: + script: | + python-venv.py {{prefix}}/bin/cython + dependencies: + pip.pypa.io: '*' + +test: + script: | + python setup.py build_ext --inplace + test "$(python -c 'import package_manager')" = "You are using tea" + env: + PYTHONPATH: "{{prefix}}/venv/lib/python3.11/site-packages" diff --git a/projects/cython.org/package_manager.pyx b/projects/cython.org/package_manager.pyx new file mode 100644 index 00000000..7a0898b8 --- /dev/null +++ b/projects/cython.org/package_manager.pyx @@ -0,0 +1 @@ +print 'You are using tea' diff --git a/projects/cython.org/setup.py b/projects/cython.org/setup.py new file mode 100644 index 00000000..a7018ae7 --- /dev/null +++ b/projects/cython.org/setup.py @@ -0,0 +1,6 @@ +from distutils.core import setup +from Cython.Build import cythonize + +setup( + ext_modules = cythonize("package_manager.pyx") +)