Skip to content

Commit

Permalink
tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeret committed Dec 29, 2017
1 parent a64c9a9 commit dfb5016
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 60 deletions.
31 changes: 1 addition & 30 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#!/usr/bin/env python

import os
import sys
from setuptools.command.test import test as TestCommand
from setuptools import find_packages

try:
Expand All @@ -11,30 +9,7 @@
from distutils.core import setup


if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()


class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True

def run_tests(self):
import pytest
errno = pytest.main(self.test_args)
sys.exit(errno)


readme = open('README.rst').read()
doclink = """
Documentation
-------------
The full documentation can be generated with Sphinx"""

history = open('HISTORY.rst').read().replace('.. :changelog:', '')

requires = [] #during runtime
Expand All @@ -46,7 +21,7 @@ def run_tests(self):
name='tf_unet',
version='0.1.0',
description='Unet TensorFlow implementation',
long_description=readme + '\n\n' + doclink + '\n\n' + history,
long_description=readme + '\n\n' + history,
author='Joel Akeret',
url='https://github.com/jakeret/tf_unet',
packages=find_packages(PACKAGE_PATH, "test"),
Expand All @@ -62,12 +37,8 @@ def run_tests(self):
'Intended Audience :: Developers',
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
'Natural Language :: English',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
],
tests_require=tests_require,
cmdclass = {'test': PyTest},
)
Empty file removed test/__init__.py
Empty file.
30 changes: 0 additions & 30 deletions test/test_tf_unet.py

This file was deleted.

0 comments on commit dfb5016

Please sign in to comment.