Skip to content

Commit 6c2777c

Browse files
committed
remove: "tests" (demo) functionality
1 parent ebf702a commit 6c2777c

File tree

4 files changed

+9
-12
lines changed

4 files changed

+9
-12
lines changed

changelog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## 0.1.1 — 2025-02-15
9+
### Removed
10+
11+
- [x] remove "tests" (demo) functionality
12+
813
## 0.1.0 — 2025-02-15
914
### Added
1015

setup.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,14 @@
77

88
setuptools.setup(
99
name='yoficator',
10-
version='0.1.0',
10+
version='0.1.1',
1111
description='A Russian text yoficator (ёфикатор)',
1212
long_description=long_description,
1313
long_description_content_type='text/markdown',
1414
license='License :: OSI Approved :: MIT License',
1515
packages=['yoficator'],
1616
package_data={
17-
'yoficator': [
18-
'_data/yoficator.dic',
19-
'_data/yoficator.txt',
20-
],
17+
'yoficator': ['_data/yoficator.dic'],
2118
},
2219
install_requires=['regex==2015.11.09'],
2320
include_package_data=True,

yoficator/__main__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@
6969
pp = pprint.PrettyPrinter(4)
7070

7171
workingDir = os.path.abspath(os.path.dirname(__file__)) + '/_data'
72-
textFile = workingDir + "/yoficator.txt"
7372
dictionaryFile = workingDir + "/yoficator.dic"
7473

7574
if len(sys.argv) > 1:
@@ -80,8 +79,8 @@
8079
else:
8180
text = sys.argv[1].decode("utf-8")
8281
else:
83-
# We will assume using textFile as input filename above
84-
text = codecs.open(textFile, "r", "utf-8").read()
82+
print('Error: No file specified', file=sys.stderr)
83+
sys.exit(1)
8584

8685
dictionary = {}
8786

yoficator/_data/yoficator.txt

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

0 commit comments

Comments
 (0)