Skip to content

Commit

Permalink
FIX: setup.py (why is this broken suddenly?)
Browse files Browse the repository at this point in the history
  • Loading branch information
kmyk committed Mar 19, 2018
1 parent de828fa commit 6d195b7
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,15 @@
#!/usr/bin/env python3
from setuptools import setup, find_packages

import imp
def load_module(module_path):
path = None
for name in module_path.split('.'):
file, path, description = imp.find_module(name, path)
path = [ path ]
return imp.load_module(name, file, path[0], description)
version = load_module('onlinejudge.implementation.version')
with open('onlinejudge/implementation/version.py') as fh:
exec(fh.read())

with open('readme.md', encoding='utf-8') as fh:
readme = fh.read()

setup(
name='online-judge-tools',
version=version.__version__,
version=__version__,
description='Tools for online-judge services',
install_requires=[
'requests',
Expand All @@ -25,10 +19,10 @@ def load_module(module_path):
'sympy',
],
long_description=readme,
author=version.__author__,
author_email=version.__email__,
url=version.__url__,
license=version.__license__,
author=__author__,
author_email=__email__,
url=__url__,
license=__license__,
packages=find_packages(exclude=( 'tests', 'docs' )),
scripts=[ 'oj' ],
classifiers=[
Expand Down

0 comments on commit 6d195b7

Please sign in to comment.