Skip to content

Commit 2aa02f7

Browse files
authored
Merge pull request #116 from hartwork/readme-rst-to-markdown
`README.rst`: Migrate from reStructuredText to Markdown
2 parents 8bc1832 + 965322d commit 2aa02f7

File tree

3 files changed

+53
-55
lines changed

3 files changed

+53
-55
lines changed

README.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit)](https://github.com/pre-commit/pre-commit)
2+
[![Run the test suite](https://github.com/hartwork/resolve-march-native/actions/workflows/run-tests.yml/badge.svg)](https://github.com/hartwork/resolve-march-native/actions/workflows/run-tests.yml)
3+
4+
5+
# About
6+
7+
**resolve-march-native** is a small command line tool to resolve
8+
`-march=native` into explicit GCC flags.
9+
10+
11+
# Example
12+
13+
```console
14+
$ resolve-march-native --vertical
15+
-march=bonnell
16+
-mno-cx16
17+
--param l1-cache-line-size=64
18+
--param l1-cache-size=24
19+
```
20+
21+
22+
# Usage
23+
24+
```console
25+
$ COLUMNS=80 resolve-march-native --help
26+
usage: resolve-march-native [-h] [--debug] [--gcc COMMAND] [--vertical]
27+
[--keep-identical-mtune] [--keep-mno-flags]
28+
[--add-recommended] [--version]
29+
30+
options:
31+
-h, --help show this help message and exit
32+
--debug enable debugging (default: disabled)
33+
--gcc COMMAND gcc command (default: gcc)
34+
--vertical produce vertical output (default: horizontal output)
35+
--keep-identical-mtune
36+
keep implied -mtune=... despite architecture identical
37+
to -march=... (default: stripped away)
38+
--keep-mno-flags keep -mno-* parameters (default: (superfluous ones)
39+
stripped away)
40+
--add-recommended, -a
41+
add recommended flags (default: not added)
42+
--version show program's version number and exit
43+
44+
Software libre licensed under GPL v2 or later.
45+
Brought to you by Sebastian Pipping <[email protected]>.
46+
47+
Please report bugs at https://github.com/hartwork/resolve-march-native/issues — thank you!
48+
```

README.rst

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

setup.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,17 @@ def _read(filename):
1616
setup(
1717
name='resolve-march-native',
1818
description='Tool to determine what GCC flags -march=native would resolve into',
19-
long_description=_read('README.rst'),
19+
long_description=_read('README.md'),
20+
long_description_content_type='text/markdown',
2021
license='GPLv2+',
2122
version=VERSION_STR,
2223
author='Sebastian Pipping',
2324
author_email='[email protected]',
2425
url='https://github.com/hartwork/resolve-march-native',
2526
python_requires='>=3.8',
27+
setup_requires=[
28+
'setuptools>=38.6.0', # for long_description_content_type
29+
],
2630
packages=[
2731
'resolve_march_native',
2832
],

0 commit comments

Comments
 (0)