-
Notifications
You must be signed in to change notification settings - Fork 11
/
setup.py
44 lines (40 loc) · 1.5 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/env python
try:
# Have to use setuptools to build wheels
from setuptools import setup
except ImporError:
from distutils.core import setup
import os.path
import sys
# stop with the bug reports
if sys.version_info < (2, 7):
raise RuntimeError("Twiggy requires Python 2.7 or greater")
# this horrible mess brought to you by the crap that is Python distutils. Just use CPAN.
version_file = os.path.join(os.path.dirname(__file__), 'VERSION')
VERSION = open(version_file).read().strip().split('.')
release = '.'.join(VERSION)
setup(name='Twiggy',
version=release,
description='a Pythonic logger',
author='Pete Fein',
author_email='[email protected]',
url='https://github.com/wearpants/twiggy/',
packages=['twiggy', 'twiggy.lib', 'twiggy.features'],
install_requires=['six'],
license = "BSD",
classifiers = [
"Topic :: System :: Logging",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"License :: OSI Approved :: BSD License",],
long_description=open('README.rst').read(),
)