Improve setup.py, add setup.cfg

This commit is contained in:
Jan Dittberner 2016-05-03 12:38:52 +02:00
parent 3004faa366
commit 5a41a8e9b9
3 changed files with 17 additions and 7 deletions

2
.gitignore vendored
View file

@ -4,3 +4,5 @@
.*.swp .*.swp
.ropeproject/ .ropeproject/
__pycache__/ __pycache__/
build/
dist/

6
setup.cfg Normal file
View file

@ -0,0 +1,6 @@
[egg_info]
tag_build = dev
tag_date = true
[aliases]
release = egg_info -RDb ''

View file

@ -2,30 +2,32 @@
from setuptools import setup, find_packages from setuptools import setup, find_packages
from jandd.sphinxext.mac import __version__ as version version = '0.1.0'
with open('README.rst') as readme: with open('README.rst') as readme:
description = readme.read() + "\n\n" description = readme.read() + "\n\n"
with open('COPYING') as license: requires = ['Sphinx>=1.4']
description += license.read()
setup( setup(
author="Jan Dittberner", author="Jan Dittberner",
author_email="jan@dittberner.info", author_email="jan@dittberner.info",
description=description, description="MAC address extension for Sphinx",
long_description=description,
install_requires=requires,
keywords="sphinx extension MAC",
name="jandd.sphinxext.mac", name="jandd.sphinxext.mac",
namespace_packages=['jandd', 'jandd.sphinxext'], namespace_packages=['jandd', 'jandd.sphinxext'],
packages=find_packages(), packages=find_packages(),
platforms='any',
version=version, version=version,
keywords="sphinx extension MAC",
license="GPLv3+", license="GPLv3+",
classifiers=[ classifiers=[
"Development Status :: 2 - Pre-Alpha", "Development Status :: 3 - Alpha",
"Framework :: Sphinx :: Extension", "Framework :: Sphinx :: Extension",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Programming Language :: Python :: 3", "Programming Language :: Python :: 3",
"Topic :: Documentation",
"Topic :: Internet", "Topic :: Internet",
] ]
) )