Commit ec9058e6 authored by Stefan Behnel's avatar Stefan Behnel

minor clarification in setup.py, let metadata reflect alpha/beta status

parent b6b10a79
...@@ -295,6 +295,18 @@ setup_args.update(setuptools_extra_args) ...@@ -295,6 +295,18 @@ setup_args.update(setuptools_extra_args)
from Cython import __version__ as version from Cython import __version__ as version
def dev_status():
if 'b' in version or 'c' in version:
# 1b1, 1beta1, 2rc1, ...
return 'Development Status :: 4 - Beta'
elif 'a' in version:
# 1a1, 1alpha1, ...
return 'Development Status :: 3 - Alpha'
else:
return 'Development Status :: 5 - Production/Stable'
packages = [ packages = [
'Cython', 'Cython',
'Cython.Build', 'Cython.Build',
...@@ -328,19 +340,20 @@ setup( ...@@ -328,19 +340,20 @@ setup(
easy as Python itself. Cython is a source code translator based on Pyrex_, easy as Python itself. Cython is a source code translator based on Pyrex_,
but supports more cutting edge functionality and optimizations. but supports more cutting edge functionality and optimizations.
The Cython language is very close to the Python language (and most Python The Cython language is a superset of the Python language (almost all Python
code is also valid Cython code), but Cython additionally supports calling C code is also valid Cython code), but Cython additionally supports optional
functions and declaring C types on variables and class attributes. This static typing to natively call C functions, operate with C++ classes and
allows the compiler to generate very efficient C code from Cython code. declare fast C types on variables and class attributes. This allows the
compiler to generate very efficient C code from Cython code.
This makes Cython the ideal language for writing glue code for external C This makes Cython the ideal language for writing glue code for external
libraries, and for fast C modules that speed up the execution of Python C/C++ libraries, and for fast C modules that speed up the execution of
code. Python code.
.. _Pyrex: http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/ .. _Pyrex: http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/
"""), """),
classifiers=[ classifiers=[
"Development Status :: 5 - Production/Stable", dev_status(),
"Intended Audience :: Developers", "Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License", "License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent", "Operating System :: OS Independent",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment