|
1 | 1 | #!/usr/bin/env python |
2 | 2 | # -*- coding: iso-8859-15 -*- |
3 | 3 |
|
4 | | -from distutils.core import setup |
| 4 | +import codecs |
5 | 5 | import os |
6 | | - |
7 | | -with open('requirements.txt') as f: |
8 | | - required = f.read().splitlines() |
| 6 | +from setuptools import setup |
9 | 7 |
|
10 | 8 | grlc_base = 'src/' |
11 | 9 | grlc_data = [ root.replace(grlc_base, '') + '/*' for root,dirs,files in os.walk(grlc_base) if root !=grlc_base ] |
12 | | -grlc_version = '1.0' |
| 10 | +grlc_version = '1.2.0' |
| 11 | + |
| 12 | +with codecs.open('requirements.txt', mode='r') as f: |
| 13 | + install_requires = f.read().splitlines() |
| 14 | + |
| 15 | +with codecs.open('requirements-test.txt', mode='r') as f: |
| 16 | + tests_require = f.read().splitlines() |
| 17 | + |
| 18 | +with codecs.open('README.md', mode='r') as f: |
| 19 | + long_description = f.read() |
13 | 20 |
|
14 | | -setup(name='grlc', |
15 | | - version=grlc_version, |
16 | | - description='grlc, the git repository linked data API constructor', |
17 | | - author='Albert Meroño', |
18 | | - author_email='albert.merono@vu.nl', |
19 | | - url='https://github.com/CLARIAH/grlc', |
20 | | - download_url='https://github.com/CLARIAH/grlc/tarball/' + grlc_version, |
21 | | - packages=['grlc'], |
22 | | - package_dir = {'grlc': 'src'}, |
23 | | - package_data = {'grlc': grlc_data}, |
24 | | - scripts=['bin/grlc-server'], |
25 | | - install_requires=required |
26 | | - ) |
| 21 | +setup( |
| 22 | + name="grlc", |
| 23 | + description='grlc, the git repository linked data API constructor', |
| 24 | + long_description=long_description, |
| 25 | + license="Copyright 2017 Albert Meroño", |
| 26 | + author='Albert Meroño', |
| 27 | + author_email='albert.merono@vu.nl', |
| 28 | + url='https://github.com/CLARIAH/grlc', |
| 29 | + version=grlc_version, |
| 30 | + py_modules=['grlc'], |
| 31 | + packages=['grlc'], |
| 32 | + package_dir = {'grlc': grlc_base}, |
| 33 | + scripts=['bin/grlc-server'], |
| 34 | + install_requires=install_requires, |
| 35 | + setup_requires=[ |
| 36 | + # dependency for `python setup.py test` |
| 37 | + 'pytest-runner', |
| 38 | + # dependencies for `python setup.py build_sphinx` |
| 39 | + 'sphinx', |
| 40 | + 'recommonmark' |
| 41 | + ], |
| 42 | + tests_require=tests_require, |
| 43 | + package_data = {'grlc': grlc_data}, |
| 44 | +) |
0 commit comments