meson: install an .egg-info file

This commit is contained in:
Christoph Reiter 2018-06-24 15:00:07 +02:00
parent 9d88806bc9
commit 7328cb9882
4 changed files with 31 additions and 0 deletions

View File

@ -2,6 +2,7 @@ include COPYING*
include NEWS
include README.rst
include MANIFEST.in
include PKG-INFO.in
include setup.cfg
include meson_options.txt
recursive-include . meson.build

22
PKG-INFO.in Normal file
View File

@ -0,0 +1,22 @@
Metadata-Version: 1.2
Name: pycairo
Version: @VERSION@
Summary: Python interface for cairo
Home-page: https://pycairo.readthedocs.io
Maintainer: Christoph Reiter
Maintainer-email: reiter.christoph@gmail.com
License: UNKNOWN
Description: Pycairo is a Python module providing bindings for the cairo graphics library
Platform: UNKNOWN
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: License :: OSI Approved :: GNU Lesser General Public License v2 (LGPLv2)
Classifier: License :: OSI Approved :: Mozilla Public License 1.1 (MPL 1.1)

View File

@ -77,5 +77,12 @@ pyext_c_args = [
'-DPYCAIRO_VERSION_MICRO=@0@'.format(pycairo_version_micro),
]
pkginfo_conf = configuration_data()
pkginfo_conf.set('VERSION', pycairo_version)
configure_file(input : 'PKG-INFO.in',
output : 'pycairo-@0@.egg-info'.format(pycairo_version),
configuration : pkginfo_conf,
install_dir : python.get_install_dir())
subdir('cairo')
subdir('tests')

View File

@ -573,6 +573,7 @@ def main():
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
('License :: OSI Approved :: '
'GNU Lesser General Public License v2 (LGPLv2)'),
'License :: OSI Approved :: Mozilla Public License 1.1 (MPL 1.1)',