This repository was archived by the owner on Jul 31, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +21
-8
lines changed
Expand file tree Collapse file tree 2 files changed +21
-8
lines changed Original file line number Diff line number Diff line change 1919
2020
2121REQUIRED_PACKAGES = [
22+ "absl-py < 0.9, >= 0.7" ,
2223 "apache-beam[gcp] >= 2.22.0" ,
23- "pandas >= 1.0.4" ,
24- "tensorflow_transform >= 0.22" ,
25- "Pillow >= 7.1.2" ,
24+ "avro >= 1.10.0" ,
2625 "coverage >= 5.1" ,
2726 "ipython >= 7.15.0" ,
27+ "fire >= 0.3.1" ,
2828 "nose >= 1.3.7" ,
29+ "pandas >= 1.0.4" ,
30+ "Pillow >= 7.1.2" ,
31+ "pyarrow < 0.17, >= 0.16.0" ,
2932 "pylint >= 2.5.3" ,
30- "fire >= 0.3.1" ,
31- "tensorflow >= 2.2.0" ,
32- "pyarrow < 0.17" ,
33+ "pytz >= 2020.1" ,
34+ "python-dateutil" ,
35+ "tensorflow == 2.2.0" ,
36+ "tensorflow_transform >= 0.22" ,
3337]
3438
3539
3943 install_requires = REQUIRED_PACKAGES ,
4044 packages = find_packages (),
4145 include_package_data = True ,
42- description = 'TFRUtil creates TensorFlow Records easily.'
46+ description = 'TFRUtil creates TensorFlow Records easily.' ,
47+ entry_points = {
48+ 'console_scripts' : ['tfrutil=tfrutil.cli:main' ],
49+ },
4350)
Original file line number Diff line number Diff line change 2222from tfrutil import check
2323
2424
25- if __name__ == '__main__' :
25+ def main ():
26+ """Entry point for command-line interface."""
27+
2628 fire .Fire ({
2729 'create-tfrecords' : client .create_tfrecords ,
2830 'check-tfrecords' : check .check_tfrecords ,
2931 })
32+
33+
34+ if __name__ == '__main__' :
35+ main ()
You can’t perform that action at this time.
0 commit comments