|
1 |
| -from setuptools import setup, find_packages |
| 1 | +import io |
| 2 | +from glob import glob |
| 3 | +from os.path import basename, dirname, join, splitext |
| 4 | + |
| 5 | +from setuptools import find_packages, setup |
2 | 6 |
|
3 | 7 | PROJECT_URL = 'https://github.com/melexis/warnings-plugin'
|
4 | 8 | VERSION = '0.0.2'
|
5 | 9 |
|
| 10 | + |
| 11 | +def read(*names, **kwargs): |
| 12 | + return io.open( |
| 13 | + join(dirname(__file__), *names), |
| 14 | + encoding=kwargs.get('encoding', 'utf8') |
| 15 | + ).read() |
| 16 | + |
| 17 | + |
6 | 18 | setup(
|
7 |
| - name='warnings-plugin', |
| 19 | + name='warnings', |
8 | 20 | version=VERSION,
|
9 | 21 | url=PROJECT_URL,
|
10 | 22 | download_url=PROJECT_URL + '/tarball/' + VERSION,
|
|
14 | 26 | description='Command-line alternative for https://github.com/jenkinsci/warnings-plugin. Useable with plugin-less CI systems.',
|
15 | 27 | long_description=open("README.rst").read(),
|
16 | 28 | zip_safe=False,
|
17 |
| - classifiers=[], |
18 | 29 | platforms='any',
|
19 |
| - packages=find_packages(), |
| 30 | + packages=find_packages('src'), |
| 31 | + package_dir={'': 'src'}, |
| 32 | + py_modules=[splitext(basename(path))[0] for path in glob('src/*.py')], |
20 | 33 | include_package_data=True,
|
21 | 34 | install_requires=None,
|
22 |
| - namespace_packages=['ci'], |
23 |
| - keywords = ['Gitlab CI', 'warnings','CI'], |
| 35 | + namespace_packages=['mlx'], |
| 36 | + classifiers=[ |
| 37 | + # complete classifier list: http://pypi.python.org/pypi?%3Aaction=list_classifiers |
| 38 | + 'Development Status :: 5 - Production/Stable', |
| 39 | + 'Intended Audience :: Developers', |
| 40 | + 'License :: OSI Approved :: Apache2 License', |
| 41 | + 'Operating System :: Unix', |
| 42 | + 'Operating System :: POSIX', |
| 43 | + 'Operating System :: Microsoft :: Windows', |
| 44 | + 'Programming Language :: Python', |
| 45 | + 'Programming Language :: Python :: 2.7', |
| 46 | + 'Programming Language :: Python :: 3', |
| 47 | + 'Programming Language :: Python :: 3.3', |
| 48 | + 'Programming Language :: Python :: 3.4', |
| 49 | + 'Programming Language :: Python :: 3.5', |
| 50 | + 'Programming Language :: Python :: 3.6', |
| 51 | + # 'Programming Language :: Python :: Implementation :: CPython', |
| 52 | + # 'Programming Language :: Python :: Implementation :: PyPy', |
| 53 | + # uncomment if you test on these interpreters: |
| 54 | + # 'Programming Language :: Python :: Implementation :: IronPython', |
| 55 | + # 'Programming Language :: Python :: Implementation :: Jython', |
| 56 | + # 'Programming Language :: Python :: Implementation :: Stackless', |
| 57 | + 'Topic :: Utilities', |
| 58 | + ], |
| 59 | + keywords = ['Gitlab CI', 'warnings', 'CI'], |
24 | 60 | )
|
0 commit comments