summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--MANIFEST.in1
-rw-r--r--setup.cfg3
-rw-r--r--setup.py59
3 files changed, 48 insertions, 15 deletions
diff --git a/MANIFEST.in b/MANIFEST.in
new file mode 100644
index 0000000..42eb410
--- /dev/null
+++ b/MANIFEST.in
@@ -0,0 +1 @@
+include LICENSE.txt
diff --git a/setup.cfg b/setup.cfg
new file mode 100644
index 0000000..f83635a
--- /dev/null
+++ b/setup.cfg
@@ -0,0 +1,3 @@
+[bdist_wheel]
+# We support both Python 2 and Python 3
+universal=1
diff --git a/setup.py b/setup.py
index 97e716b..4ce2d1e 100644
--- a/setup.py
+++ b/setup.py
@@ -1,17 +1,46 @@
-#!/usr/bin/env python
+import os
+import setuptools
-"""Setup script for the kconfiglib module."""
+here_dir = os.path.dirname(__file__)
+with open(os.path.join(here_dir, "README.rst")) as f:
+ long_description = f.read()
-from distutils.core import setup
-
-setup (# Distribution meta-data
- name = "kconfiglib",
- version = "0.0.1",
- description = "A flexible Python Kconfig parser",
- author = "Ulf Magnusson",
- author_email = "ulfalizer@gmail.com",
- url = "https://github.com/ulfalizer/Kconfiglib",
-
- # Description of the modules and packages in the distribution
- py_modules = ['kconfiglib'],
- )
+setuptools.setup(
+ name="kconfiglib",
+ # MAJOR.MINOR.MAINTENANCE per http://semver.org
+ version="1.0.0",
+ description="A flexible Python Kconfig parser",
+ long_description=long_description,
+ url="https://github.com/ulfalizer/Kconfiglib",
+ author='Ulf "Ulfalizer" Magnusson',
+ author_email="ulfalizer@gmail.com",
+ keywords="kconfig, kbuild",
+ py_modules=["kconfiglib"],
+ # This python_requires should be correct, but my setuptools is too old to
+ # test it, so play it safe and leave it out for now. It's unlikely that
+ # anyone's running ancient Python versions anyway, and the problem should
+ # be obvious.
+ #
+ # 2.7+ for Python 2, 3.1+ for Python 3 (for unnumbered {} with format())
+ # python_requires=">=2.7,!=3.0.*",
+ classifiers=[
+ "Development Status :: 5 - Production/Stable",
+ "Intended Audience :: Developers",
+ "Topic :: Software Development :: Build Tools",
+ "Topic :: System :: Operating System Kernels :: Linux",
+ "License :: OSI Approved :: ISC License (ISCL)",
+ "Operating System :: POSIX",
+ "Operating System :: Microsoft :: Windows",
+ "Programming Language :: Python :: 2",
+ # Needs support for unnumbered {} in format()
+ "Programming Language :: Python :: 2.7",
+ "Programming Language :: Python :: 3",
+ # Needs support for unnumbered {} in format()
+ "Programming Language :: Python :: 3.1",
+ "Programming Language :: Python :: 3.2",
+ "Programming Language :: Python :: 3.3",
+ "Programming Language :: Python :: 3.4",
+ "Programming Language :: Python :: 3.5",
+ "Programming Language :: Python :: 3.6",
+ "Programming Language :: Python :: Implementation :: CPython",
+ "Programming Language :: Python :: Implementation :: PyPy"])