From c8ab730f5fd83c2b4f1e9d7ba293eabc37d49a80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Vl=C4=8Dinsk=C3=BD?= Date: Mon, 27 Jul 2015 23:46:06 +0200 Subject: [PATCH] setup.py rewritten to use `pbr` (and `setup.cfg`) modified: .gitignore deleted: MANIFEST.in deleted: VERSION new file: requirements.txt new file: setup.cfg modified: setup.py --- .gitignore | 3 +++ MANIFEST.in | 4 ---- VERSION | 1 - requirements.txt | 2 ++ setup.cfg | 25 +++++++++++++++++++++++++ setup.py | 26 +------------------------- 6 files changed, 31 insertions(+), 30 deletions(-) delete mode 100644 MANIFEST.in delete mode 100644 VERSION create mode 100644 requirements.txt create mode 100644 setup.cfg diff --git a/.gitignore b/.gitignore index c4951fe..90f6670 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,11 @@ +*.egg *.egg-info *.pyc *.pyo .DS_Store .tox +AUTHORS +ChangeLog MANIFEST build dist diff --git a/MANIFEST.in b/MANIFEST.in deleted file mode 100644 index dc57b08..0000000 --- a/MANIFEST.in +++ /dev/null @@ -1,4 +0,0 @@ -include UNLICENSE -include VERSION -include tox.ini -include tests/* diff --git a/VERSION b/VERSION deleted file mode 100644 index 17e51c3..0000000 --- a/VERSION +++ /dev/null @@ -1 +0,0 @@ -0.1.1 diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..423510f --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +pyzmq +argparse>=1.2.1 diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..f89ded2 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,25 @@ +[metadata] +name = zmqc +author = Zachary Voase +author-email = z@zacharyvoase.com +summary = A small but powerful command-line interface to ØMQ. +description-file = + README.md +home-page = http://github.com/zacharyvoase/zmqc +requires-python = >=2.6 +classifier = + Development Status :: 5 - Production/Stable + Environment :: Console + Intended Audience :: Developers + Intended Audience :: Information Technology + License :: Freeware + Programming Language :: Python :: 2.6 + Programming Language :: Python :: 2.7 + +[files] +packages = + lib/zmqc + +[entry_points] +console_scripts = + zmqc = zmqc:main diff --git a/setup.py b/setup.py index 86e3436..159a3d3 100644 --- a/setup.py +++ b/setup.py @@ -1,27 +1,3 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- - from setuptools import setup -import os.path as p - -VERSION = open(p.join(p.dirname(p.abspath(__file__)), 'VERSION')).read().strip() -setup( - name='zmqc', - version=VERSION, - description=u'A small but powerful command-line interface to ØMQ.', - author='Zachary Voase', - author_email='z@zacharyvoase.com', - url='http://github.com/zacharyvoase/zmqc', - package_dir={'': 'lib'}, - py_modules=['zmqc'], - install_requires=[ - 'pyzmq', - 'argparse>=1.2.1', - ], - entry_points={ - 'console_scripts': [ - 'zmqc = zmqc:main', - ], - }, -) +setup(setup_requires=["pbr"], pbr=True)