|
| 1 | +#!/usr/bin/env python |
| 2 | + |
| 3 | +import os |
1 | 4 | from unittest import TestLoader
|
2 | 5 | from setuptools import setup
|
3 | 6 |
|
4 | 7 | def tests():
|
5 | 8 | return TestLoader().discover('tests')
|
6 | 9 |
|
7 |
| -setup(name='pygtkdrawingwindow', |
8 |
| - version='0.1', |
9 |
| - description='', |
10 |
| - long_description='', |
11 |
| - classifiers=[ |
12 |
| - 'Programming Language :: Python :: 2', |
13 |
| - 'Programming Language :: Python :: 2.7', |
14 |
| - 'License :: OSI Approved :: MIT License' |
15 |
| - ], |
16 |
| - keywords='', |
17 |
| - url='https://github.com/dead-beef/pygtkdrawingwindow', |
18 |
| - author='dead-beef', |
19 |
| - |
20 |
| - license='MIT', |
21 |
| - py_modules=['pygtkdrawingwindow'], |
22 |
| - data_files=[ |
23 |
| - ('share/pygtkdrawingwindow', |
24 |
| - ['README.md', 'LICENSE', 'demo.py']) |
25 |
| - ], |
26 |
| - test_suite='setup.tests', |
27 |
| - install_requires=[], |
28 |
| - include_package_data=True, |
29 |
| - zip_safe=False) |
| 10 | +BASE_DIR = os.path.abspath(os.path.dirname(__file__)) |
| 11 | +try: |
| 12 | + with open(os.path.join(BASE_DIR, 'README.rst')) as fp: |
| 13 | + README = fp.read() |
| 14 | +except IOError: |
| 15 | + README = '' |
| 16 | + |
| 17 | +setup( |
| 18 | + name='pygtkdrawingwindow', |
| 19 | + version='0.1.0', |
| 20 | + description='', |
| 21 | + long_description=README, |
| 22 | + classifiers=[ |
| 23 | + 'Development Status :: 4 - Beta', |
| 24 | + 'Environment :: X11 Applications :: GTK', |
| 25 | + 'Intended Audience :: Developers', |
| 26 | + 'License :: OSI Approved :: MIT License' |
| 27 | + 'Programming Language :: Python :: 2', |
| 28 | + 'Programming Language :: Python :: 2.7', |
| 29 | + 'Programming Language :: Python :: 3', |
| 30 | + 'Programming Language :: Python :: 3.4', |
| 31 | + 'Topic :: Multimedia :: Graphics', |
| 32 | + 'Topic :: Software Development :: Libraries :: Python Modules', |
| 33 | + 'Topic :: Software Development :: Widget Sets' |
| 34 | + ], |
| 35 | + keywords='gtk', |
| 36 | + url='https://github.com/dead-beef/pygtkdrawingwindow', |
| 37 | + author='dead-beef', |
| 38 | + license='MIT', |
| 39 | + py_modules=['pygtkdrawingwindow'], |
| 40 | + test_suite='setup.tests', |
| 41 | + install_requires=[], |
| 42 | + extras_require={ |
| 43 | + 'dev': [ |
| 44 | + 'sphinx', |
| 45 | + 'sphinx_rtd_theme', |
| 46 | + 'twine>=1.8.1', |
| 47 | + 'wheel' |
| 48 | + ] |
| 49 | + }, |
| 50 | + include_package_data=True, |
| 51 | + zip_safe=False |
| 52 | +) |
0 commit comments