Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
spirometaxas committed Jan 3, 2024
1 parent df8e1ba commit 8fc0078
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions setup.py
Expand Up @@ -2,17 +2,21 @@
import os

def get_readme():
with open('README.md', encoding='utf8') as f:
return f.read()
f = open('README.md')
readme = f.read()
f.close()
return readme

def get_install_requirements():
if os.name == 'nt':
return [ 'windows-curses' ] # Only install for Windows
return []

def get_version():
with open('periodic_table_cli/version.txt', encoding='utf8') as f:
return f.read().replace(' ', '').replace('\t', '').replace('\n', '')
f = open('periodic_table_cli/version.txt')
version = f.read()
f.close()
return version

setup(
name = 'periodic-table-cli',
Expand Down

0 comments on commit 8fc0078

Please sign in to comment.