|
1 | 1 | #!/usr/bin/env python
|
2 | 2 | import re
|
3 |
| -from os.path import abspath, dirname, join |
| 3 | +from pathlib import Path |
| 4 | +from os.path import join |
4 | 5 |
|
5 | 6 | from setuptools import find_packages, setup
|
6 | 7 |
|
7 |
| -CURDIR = dirname(abspath(__file__)) |
| 8 | +CURDIR = Path(__file__).parent |
8 | 9 |
|
9 | 10 | CLASSIFIERS = """
|
10 | 11 | Development Status :: 5 - Production/Stable
|
|
21 | 22 | Topic :: Software Development :: Testing
|
22 | 23 | Framework :: Robot Framework
|
23 | 24 | """.strip().splitlines()
|
24 |
| -with open(join(CURDIR, 'src', 'robotlibcore.py')) as f: |
25 |
| - VERSION = re.search('\n__version__ = "(.*)"', f.read()).group(1) |
26 |
| -with open(join(CURDIR, 'README.md')) as f: |
27 |
| - LONG_DESCRIPTION = f.read() |
| 25 | + |
| 26 | +version_file = Path(CURDIR / 'src' / 'robotlibcore' / '__init__.py') |
| 27 | +VERSION = re.search('\n__version__ = "(.*)"', version_file.read_text()).group(1) |
| 28 | + |
| 29 | +LONG_DESCRIPTION = Path(CURDIR / 'README.md').read_text() |
28 | 30 |
|
29 | 31 | DESCRIPTION = ('Tools to ease creating larger test libraries for '
|
30 | 32 | 'Robot Framework using Python.')
|
|
43 | 45 | classifiers = CLASSIFIERS,
|
44 | 46 | python_requires = '>=3.8, <4',
|
45 | 47 | package_dir = {'': 'src'},
|
46 |
| - packages = find_packages('src'), |
47 |
| - py_modules = ['robotlibcore'], |
| 48 | + packages = ["robotlibcore","robotlibcore.core", "robotlibcore.keywords", "robotlibcore.plugin", "robotlibcore.utils"] |
48 | 49 | )
|
0 commit comments