diff --git a/MANIFEST.in b/MANIFEST.in index d1d1547..368a072 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -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 diff --git a/PKG-INFO.in b/PKG-INFO.in new file mode 100644 index 0000000..154087a --- /dev/null +++ b/PKG-INFO.in @@ -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) diff --git a/meson.build b/meson.build index cbcec07..fb51280 100644 --- a/meson.build +++ b/meson.build @@ -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') diff --git a/setup.py b/setup.py index 0e7fa28..395883a 100755 --- a/setup.py +++ b/setup.py @@ -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)',