Skip to content

Commit 79b1153

Browse files
committed
Release version 1.0
1 parent 6b2c094 commit 79b1153

File tree

2 files changed

+24
-16
lines changed

2 files changed

+24
-16
lines changed

README.md

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
### pyxtf
2-
A library for reading eXtended Triton Format (XTF) files (revision 44)
2+
A python library for reading eXtended Triton Format (XTF) files (revision 44)
33

4-
Current limitations:
5-
- Only supports python 3
6-
- Limited support for vendor-specific extensions
4+
##### Installation from pypi
75

8-
##### Installation
6+
```bash
7+
pip3 install pyxtf
8+
```
9+
10+
##### Installation from source
911
Clone or download the repository and run the following command. This requires setuptools to be installed.
1012

1113
```bash
12-
python setup.py install
14+
python3 setup.py install
1315
```
1416

1517
###### Dependencies
@@ -36,13 +38,9 @@ sonar_packets = packets[pyxtf.XTFHeaderType.sonar]
3638
print(sonar_packets[0])
3739
```
3840

39-
A more involved example can be found in the [ipython notebook under examples](examples/sonar_example.ipynb).
40-
41-
##### Scope
42-
There already exists a python2 project called [pyxtf](https://github.com/shamrin/pyxtf), but was more limited in scope than my needs. A better name might've been pyxtf3 to differentiate, but seeing as that project seems abandonded this project will most likely supersede that project in time. A reason for creating a completely new project, is that this project is based on ctypes - while the other pyxtf uses the struct parsing module. The motivation was not performance, but personal preference.
43-
41+
Examples can be found in the [examples directory](https://github.com/oysstu/pyxtf/tree/master/examples) on github.
4442

4543
##### Contribution
46-
XTF files are not a golden bullet, there are large differences between file versions and vendors. If you find an XTF-file that does not work, either submit a patch or new packet type, or be prepared to send an example XTF-file when submitting the bug-report.
44+
If you find an XTF-file that does not work, either submit a patch or new packet type, or be prepared to send an example XTF-file when submitting the bug-report.
4745

4846

setup.py

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,34 @@
1+
from os import path
12
from setuptools import setup
23
from tools.generate_pyi import generate_pyi
34

5+
46
def main():
57
# Generate .pyi files
68
import pyxtf.xtf_ctypes
79
generate_pyi(pyxtf.xtf_ctypes)
810
import pyxtf.vendors.kongsberg
911
generate_pyi(pyxtf.vendors.kongsberg)
1012

13+
# read the contents of README file
14+
this_directory = path.abspath(path.dirname(__file__))
15+
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
16+
long_description = f.read()
17+
1118
# Run setup script
1219
setup(name='pyxtf',
13-
version='0.1',
20+
version='1.0',
1421
description='eXtended Triton Format (XTF) file interface',
22+
long_description=long_description,
23+
long_description_content_type='text/markdown',
1524
author='Oystein Sture',
1625
author_email='[email protected]',
1726
url='https://github.com/oysstu/pyxtf',
1827
license='MIT',
1928
setup_requires=['numpy>=1.11'],
2029
install_requires=['numpy>=1.11', 'matplotlib>=1.5.1'],
2130
packages=['pyxtf', 'pyxtf.vendors'],
22-
package_data={'':['*.pyi']},
31+
package_data={'': ['*.pyi']},
2332
use_2to3=False,
2433
classifiers=[
2534
'License :: OSI Approved :: MIT License',
@@ -28,8 +37,9 @@ def main():
2837
'Intended Audience :: Science/Research',
2938
'Natural Language :: English',
3039
'Topic :: Scientific/Engineering',
31-
'Programming Language:: Python:: 3:: Only'
40+
'Programming Language :: Python :: 3 :: Only'
3241
])
3342

43+
3444
if __name__ == '__main__':
35-
main()
45+
main()

0 commit comments

Comments
 (0)