Skip to content

Commit

Permalink
setup: Use setup.cfg for setup variables
Browse files Browse the repository at this point in the history
  • Loading branch information
suutari-ai committed Mar 5, 2017
1 parent 440eb6c commit 0d49a03
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 45 deletions.
1 change: 1 addition & 0 deletions prequ/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = '0.180.9.post0.dev0'
45 changes: 44 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1,45 @@
[wheel]
[metadata]
name = prequ
version = attr: prequ.__version__
description = Prequ -- Python requirement handling
long_description = file: README.rst
keywords = requirements, handling, python
url = https://github.com/suutari-ai/prequ/
maintainer = Tuomas Suutari
maintainer_email = tuomas.suutari@anders.fi
license = BSD
license_file = LICENSE
platforms = any
classifiers =
Development Status :: 5 - Production/Stable
Programming Language :: Python
Programming Language :: Python :: 2
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3
Programming Language :: Python :: 3.4
Programming Language :: Python :: 3.5
Intended Audience :: Developers
Intended Audience :: System Administrators
License :: OSI Approved :: BSD License
Operating System :: OS Independent
Topic :: System :: Systems Administration

[options]
include_package_data = True
packages = find:
install_requires =
click>=6
first
pyyaml
six
zip_safe = False

[options.entry_points]
console_scripts =
prequ = prequ.scripts.prequ:main

[options.packages.find]
exclude = tests, tests.*

[bdist_wheel]
universal = 1
47 changes: 3 additions & 44 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,46 +1,5 @@
from setuptools import find_packages, setup
import setuptools


def get_long_description():
with open('README.rst') as fp:
return fp.read()


setup(
name='prequ',
version='0.180.9.post0.dev0',
url='https://github.com/suutari-ai/prequ/',
license='BSD',
maintainer='Tuomas Suutari',
maintainer_email='tuomas.suutari@anders.fi',
description="Prequ -- Python requirement handling",
long_description=get_long_description(),
packages=find_packages(exclude=['tests']),
install_requires=[
'click>=6',
'first',
'pyyaml',
'six',
],
zip_safe=False,
entry_points={
'console_scripts': [
'prequ = prequ.scripts.prequ:main',
],
},
platforms='any',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Topic :: System :: Systems Administration',
]
)
if __name__ == '__main__':
setuptools.setup(setup_requires=['setuptools>=34.0'])

0 comments on commit 0d49a03

Please sign in to comment.