Loading src/setup.py +5 −3 Original line number Diff line number Diff line Loading @@ -15,20 +15,22 @@ _here = os.path.abspath(os.path.dirname(__file__)) _requirements_file = _here + '/requirements.txt' _requirements = [] if os.path.isfile(_requirements_file): with open(_requirements_file, 'r') as f: with open(_requirements_file, 'r', encoding='utf-8') as f: _requirements = f.read().splitlines() _license = 'MIT' _license_file = _here + 'LICENSE' if os.path.isfile(_license_file): with open(_license_file, 'r') as f: with open(_license_file, 'r', encoding='utf-8') as f: _license = f.read() _description_file = _here + 'README.md' _long_description = '' if os.path.isfile(_description_file): with open(_description_file, 'r') as f: with open(_description_file, 'r', encoding='utf-8') as f: _long_description = f.read() _scripts_dir = 'scripts/' _scripts = os.listdir(_here + '/scripts/') if '.connections' in _scripts: _scripts.remove('.connections') _scripts = ['scripts/' + script for script in _scripts] # setup Loading Loading
src/setup.py +5 −3 Original line number Diff line number Diff line Loading @@ -15,20 +15,22 @@ _here = os.path.abspath(os.path.dirname(__file__)) _requirements_file = _here + '/requirements.txt' _requirements = [] if os.path.isfile(_requirements_file): with open(_requirements_file, 'r') as f: with open(_requirements_file, 'r', encoding='utf-8') as f: _requirements = f.read().splitlines() _license = 'MIT' _license_file = _here + 'LICENSE' if os.path.isfile(_license_file): with open(_license_file, 'r') as f: with open(_license_file, 'r', encoding='utf-8') as f: _license = f.read() _description_file = _here + 'README.md' _long_description = '' if os.path.isfile(_description_file): with open(_description_file, 'r') as f: with open(_description_file, 'r', encoding='utf-8') as f: _long_description = f.read() _scripts_dir = 'scripts/' _scripts = os.listdir(_here + '/scripts/') if '.connections' in _scripts: _scripts.remove('.connections') _scripts = ['scripts/' + script for script in _scripts] # setup Loading