Skip to content

Commit 3c28e39

Browse files
committed
Use setup tools instead of distutils for the setup.py script
This is the new recommended way to distribute packages, see: https://python-packaging-user-guide.readthedocs.org/en/latest/current.html Remove the pkg-info file, this file is created by setup tools when building the project. Some infos are not correctly exported to the PKG-Info file (the metadata version is still 1.1). This is a known bug: https://bitbucket.org/pypa/setuptools/issue/219/emit-metadata-12-data Cherrypicked from develop branch to hotfix v1.6.2 branch
1 parent e0e3857 commit 3c28e39

File tree

2 files changed

+26
-36
lines changed

2 files changed

+26
-36
lines changed

docs/pkg-info.txt

Lines changed: 0 additions & 27 deletions
This file was deleted.

setup.py

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,33 @@
44
# Distributed under the Boost Software License, Version 1.0.
55
# See http://www.boost.org/LICENSE_1_0.txt
66

7-
from distutils.core import setup
7+
from setuptools import setup
88

99
setup(name="pygccxml",
1010
version="v1.6.1",
11-
description="GCC-XML generated file reader",
12-
author="Insight Software Consortium.",
13-
author_email="[email protected]",
14-
packages=['pygccxml',
15-
'pygccxml.declarations',
16-
'pygccxml.parser',
17-
'pygccxml.binary_parsers',
18-
'pygccxml.utils']
11+
author="Roman Yakovenko",
12+
author_email="roman yakovenko at gmail com",
13+
maintainer="Michka Popoff and the Insight Software Consortium",
14+
maintainer_email="[email protected]",
15+
description="Python package for easy C++ declarations navigation.",
16+
url="https://github.com/gccxml/pygccxml",
17+
download_url="https://github.com/gccxml/pygccxml/archive/master.zip",
18+
license="Boost",
19+
keywords="C++, declaration parser, gccxml",
20+
install_requires=["Python >= 2.7"],
21+
packages=["pygccxml",
22+
"pygccxml.declarations",
23+
"pygccxml.parser",
24+
"pygccxml.binary_parsers",
25+
"pygccxml.utils"],
26+
classifiers=[
27+
"Development Status :: 5 - Production/Stable",
28+
"Environment :: Console",
29+
"Intended Audience :: Developers",
30+
"Operating System :: MacOS :: MacOS X",
31+
"Operating System :: Microsoft :: Windows",
32+
"Operating System :: POSIX",
33+
"Programming Language :: Python",
34+
"Topic :: Software Development",
35+
],
1936
)

0 commit comments

Comments
 (0)