Skip to content

Commit 0062ca4

Browse files
committed
prepared for release 0.1.1
1 parent 5ea6594 commit 0062ca4

File tree

9 files changed

+28
-155
lines changed

9 files changed

+28
-155
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,12 @@ Run:
131131

132132
`editcpp --src-file=src.h --dest-file=dest.h --oldfile-keep -std=c++03`
133133

134-
Another option is to run test:
135-
136-
`python -m unittest cppguts.tests.test_cppguts`
137-
138134
The `-std=c++03` tells the clang to parse the files as C++. Also you may need to use any other clang flags like `-I` to include directories that are required by the files.
139135

140136
`--oldfile-keep` is used to keep the original file (it will be renamed
141137
by adding `_OLD_N` suffix). Otherwise use `--oldfile-delete` to delete the
142-
original file.
138+
original file.
139+
140+
Another option is to run the test:
141+
142+
`python -m unittest cppguts.tests.test_cppguts`

cppguts/tests/data/tmp/dest.h

Lines changed: 0 additions & 52 deletions
This file was deleted.

cppguts/tests/data/tmp/dest_OLD.h

Lines changed: 0 additions & 50 deletions
This file was deleted.

cppguts/tests/data/tmp/src.h

Lines changed: 0 additions & 30 deletions
This file was deleted.

cppguts/tests/test_cppguts.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@
66

77
class test_basics(unittest.TestCase):
88
this_dir = os.path.dirname(__file__)
9-
data_dir = this_dir + '/data'
10-
tmp_dir = data_dir + '/tmp'
11-
src = tmp_dir + '/src.h'
12-
dest = tmp_dir + '/dest.h'
13-
srcin = data_dir + '/src.h.in'
14-
destin = data_dir + '/dest.h.in'
9+
data_dir = this_dir + '\\data'
10+
tmp_dir = this_dir + '\\tmp'
11+
src = tmp_dir + '\\src.h'
12+
dest = tmp_dir + '\\dest.h'
13+
srcin = data_dir + '\\src.h.in'
14+
destin = data_dir + '\\dest.h.in'
1515

1616
def setUp(self):
1717
shutil.rmtree(self.tmp_dir, ignore_errors=True)
1818
Path(self.tmp_dir).mkdir(parents=True, exist_ok=True)
1919
shutil.copy(self.srcin, self.src)
2020
shutil.copy(self.destin, self.dest)
2121

22-
# def tearDown(self):
23-
# shutil.rmtree(self.tmp_dir, ignore_errors=True)
22+
def tearDown(self):
23+
shutil.rmtree(self.tmp_dir, ignore_errors=True)
2424

2525
def test_basics(self):
2626
subprocess.run(['editcpp', '--src-file', self.src, '--dest-file', self.dest, '--oldfile-keep', '-std=c++03'])

pyproject.toml

Lines changed: 0 additions & 6 deletions
This file was deleted.

setup.cfg

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
[metadata]
2-
description-file = README.md
2+
description-file = README.md
3+
license_file = LICENSE

setup.py

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,25 @@
11
import setuptools
22

3+
# read the contents of your README file
4+
from pathlib import Path
5+
this_directory = Path(__file__).parent
6+
long_description = (this_directory / "README.md").read_text()
7+
38
setuptools.setup(
49
name='cppguts',
5-
version='0.1.0',
10+
version='0.1.1',
611
packages=setuptools.find_packages(),
712
url='https://github.com/tierra-colada/cppguts',
813
license='MIT',
914
author='kerim khemrev',
1015
author_email='tierracolada@gmail.com',
11-
description='python package aimed at C++ source code correction',
12-
download_url='https://github.com/tierra-colada/cppguts/archive/refs/tags/v0.1.0.tar.gz',
16+
description='If your C/C++ project depends on some external C/C++ projects and '
17+
'you want to make some changes in external functions/methods '
18+
'and you would like to copy/paste these changes automatically '
19+
'then this package may help you. ',
20+
long_description=long_description,
21+
long_description_content_type='text/markdown',
22+
download_url='https://github.com/tierra-colada/cppguts/archive/refs/tags/v0.1.1.tar.gz',
1323
classifiers=[
1424
'Development Status :: 5 - Production/Stable',
1525
'Environment :: Console',

tests/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)