-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move most packaging metadata to pyproject.toml (#129)
* move most metadata to pyproject.toml * use environment marker for conditional pycparser dep * fix version test
- Loading branch information
1 parent
e317b62
commit 22d4fd8
Showing
4 changed files
with
46 additions
and
61 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -176,40 +176,14 @@ def has_ext_modules(self): | |
# arguments mostly empty in this case. | ||
cpython = ('_cffi_backend' not in sys.builtin_module_names) | ||
|
||
install_requires = [] | ||
if cpython: | ||
install_requires.append('pycparser') | ||
|
||
setup( | ||
name='cffi', | ||
description='Foreign Function Interface for Python calling C code.', | ||
long_description=""" | ||
CFFI | ||
==== | ||
Foreign Function Interface for Python calling C code. | ||
Please see the `Documentation <http://cffi.readthedocs.org/>`_. | ||
Contact | ||
------- | ||
`Mailing list <https://groups.google.com/forum/#!forum/python-cffi>`_ | ||
""", | ||
version='1.18.0.dev0', | ||
python_requires='>=3.8', | ||
packages=['cffi'] if cpython else [], | ||
package_dir={"": "src"}, | ||
package_data={'cffi': ['_cffi_include.h', 'parse_c_type.h', | ||
'_embedding.h', '_cffi_errors.h']} | ||
if cpython else {}, | ||
zip_safe=False, | ||
|
||
url='http://cffi.readthedocs.org', | ||
author='Armin Rigo, Maciej Fijalkowski', | ||
author_email='[email protected]', | ||
|
||
license='MIT', | ||
|
||
distclass=CFFIDistribution, | ||
ext_modules=[Extension( | ||
name='_cffi_backend', | ||
|
@@ -222,26 +196,4 @@ def has_ext_modules(self): | |
extra_link_args=extra_link_args, | ||
extra_objects=forced_extra_objs, | ||
)] if cpython else [], | ||
|
||
install_requires=install_requires, | ||
|
||
entry_points = { | ||
"distutils.setup_keywords": [ | ||
"cffi_modules = cffi.setuptools_ext:cffi_modules", | ||
], | ||
}, | ||
|
||
classifiers=[ | ||
'Programming Language :: Python', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.8', | ||
'Programming Language :: Python :: 3.9', | ||
'Programming Language :: Python :: 3.10', | ||
'Programming Language :: Python :: 3.11', | ||
'Programming Language :: Python :: 3.12', | ||
'Programming Language :: Python :: 3.13', | ||
'Programming Language :: Python :: Implementation :: CPython', | ||
'Programming Language :: Python :: Implementation :: PyPy', | ||
'License :: OSI Approved :: MIT License', | ||
], | ||
) |
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