Skip to content

Commit

Permalink
Restructure robotlibcore into smalle chunks
Browse files Browse the repository at this point in the history
pr splits robotlibcore.py into smaller source files to rework packaging
to be placed into directory inside site-packages instead of single file
into root of site-packages

Fixes #149
  • Loading branch information
rasjani authored and aaltat committed May 17, 2024
1 parent d5123c7 commit c035a37
Show file tree
Hide file tree
Showing 16 changed files with 655 additions and 441 deletions.
6 changes: 3 additions & 3 deletions BUILD.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,13 @@ respectively.
# Set version

1. Set version information in
[src/robotlibcore.py](src/robotlibcore.py):
[src/robotlibcore/__init__.py](src/robotlibcore/__init__.py):

invoke set-version $VERSION

2. Commit and push changes:

git commit -m "Updated version to $VERSION" src/robotlibcore.py
git commit -m "Updated version to $VERSION" src/robotlibcore/__init__.py
git push

# Tagging
Expand Down Expand Up @@ -192,7 +192,7 @@ respectively.
2. Set dev version based on the previous version:

invoke set-version dev
git commit -m "Back to dev version" src/robotlibcore.py
git commit -m "Back to dev version" src/robotlibcore/__init__.py
git push

For example, `1.2.3` is changed to `1.2.4.dev1` and `2.0.1a1` to
Expand Down
17 changes: 9 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/usr/bin/env python
import re
from os.path import abspath, dirname, join
from pathlib import Path
from os.path import join

from setuptools import find_packages, setup

CURDIR = dirname(abspath(__file__))
CURDIR = Path(__file__).parent

CLASSIFIERS = """
Development Status :: 5 - Production/Stable
Expand All @@ -21,10 +22,11 @@
Topic :: Software Development :: Testing
Framework :: Robot Framework
""".strip().splitlines()
with open(join(CURDIR, 'src', 'robotlibcore.py')) as f:
VERSION = re.search('\n__version__ = "(.*)"', f.read()).group(1)
with open(join(CURDIR, 'README.md')) as f:
LONG_DESCRIPTION = f.read()

version_file = Path(CURDIR / 'src' / 'robotlibcore' / '__init__.py')
VERSION = re.search('\n__version__ = "(.*)"', version_file.read_text()).group(1)

LONG_DESCRIPTION = Path(CURDIR / 'README.md').read_text()

DESCRIPTION = ('Tools to ease creating larger test libraries for '
'Robot Framework using Python.')
Expand All @@ -43,6 +45,5 @@
classifiers = CLASSIFIERS,
python_requires = '>=3.8, <4',
package_dir = {'': 'src'},
packages = find_packages('src'),
py_modules = ['robotlibcore'],
packages = ["robotlibcore","robotlibcore.core", "robotlibcore.keywords", "robotlibcore.plugin", "robotlibcore.utils"]
)
Loading

0 comments on commit c035a37

Please sign in to comment.