|
18 | 18 | import os |
19 | 19 | import setuptools |
20 | 20 |
|
21 | | -from c14 import version |
22 | | - |
23 | | - |
24 | | -def _get_requirements(): |
25 | | - requirements_path = '%s/%s' % (os.path.dirname(os.path.abspath(__file__)), |
26 | | - 'requirements.txt') |
27 | | - with open(requirements_path, 'r') as f: |
28 | | - requirements = f.read() |
29 | | - # remove the dependencies which comes from url source because |
30 | | - # it's not supported by install_requires |
31 | | - return [dep for dep in requirements.split('\n') |
32 | | - if not dep.startswith('-e')] |
33 | | - |
34 | | - |
35 | | -def _get_readme(): |
36 | | - readme_path = '%s/%s' % (os.path.dirname(os.path.abspath(__file__)), |
37 | | - 'README.rst') |
38 | | - |
39 | | - with codecs.open(readme_path, 'r', encoding='utf8') as f: |
40 | | - return f.read() |
41 | | - |
42 | 21 |
|
43 | 22 | setuptools.setup( |
44 | 23 | name='c14', |
45 | | - version=version.__version__, |
46 | | - packages=setuptools.find_packages(), |
| 24 | + setup_requires='setupmeta', |
47 | 25 | author='Yanis Guenane', |
48 | 26 | author_email='yanis@guenane.org', |
49 | | - description='C14 Python Wrapper', |
50 | | - long_description=_get_readme(), |
51 | | - install_requires=_get_requirements(), |
52 | 27 | url='https://github.com/Spredzy/python-c14', |
53 | | - license='Apache v2.0', |
54 | 28 | include_package_data=True, |
55 | 29 | classifiers=[ |
56 | 30 | 'Environment :: Console', |
|
0 commit comments