diff --git a/MANIFEST.in b/MANIFEST.in index 3d18ec7..c28ab72 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,3 +1,2 @@ include README.md include LICENSE.md -include fatamorgana/VERSION diff --git a/fatamorgana/VERSION b/fatamorgana/VERSION deleted file mode 100644 index 2eb3c4f..0000000 --- a/fatamorgana/VERSION +++ /dev/null @@ -1 +0,0 @@ -0.5 diff --git a/fatamorgana/__init__.py b/fatamorgana/__init__.py index 9079367..0e8485b 100644 --- a/fatamorgana/__init__.py +++ b/fatamorgana/__init__.py @@ -18,8 +18,6 @@ - Python 3.5 or later - numpy (optional, no additional functionality) """ -import pathlib - from .main import OasisLayout, Cell, XName from .basic import NString, AString, Validation, OffsetTable, OffsetEntry, \ EOFError, SignedError, InvalidDataError, InvalidRecordError @@ -27,7 +25,4 @@ from .basic import NString, AString, Validation, OffsetTable, OffsetEntry, \ __author__ = 'Jan Petykiewicz' -with open(pathlib.Path(__file__).parent / 'VERSION', 'r') as f: - __version__ = f.read().strip() -version = __version__ - +version = '0.4' diff --git a/setup.py b/setup.py index 1a1f5c1..a8ee066 100644 --- a/setup.py +++ b/setup.py @@ -1,15 +1,13 @@ #!/usr/bin/env python3 from setuptools import setup, find_packages +import fatamorgana with open('README.md', 'r') as f: long_description = f.read() -with open('fatamorgana/VERSION', 'r') as f: - version = f.read().strip() - setup(name='fatamorgana', - version=version, + version=fatamorgana.version, description='OASIS layout format parser and writer', long_description=long_description, long_description_content_type='text/markdown', @@ -37,6 +35,7 @@ setup(name='fatamorgana', 'gds', ], classifiers=[ + 'Programming Language :: Python', 'Programming Language :: Python :: 3', 'Development Status :: 3 - Alpha', 'Environment :: Other Environment', @@ -49,11 +48,9 @@ setup(name='fatamorgana', 'Operating System :: Microsoft :: Windows', 'Topic :: Scientific/Engineering', 'Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)', + 'Topic :: Software Development :: Libraries :: Python Modules', ], packages=find_packages(), - package_data={ - 'fatamorgana': ['VERSION'] - }, install_requires=[ 'typing', ],