Files
urlloader/setup.py
Jan-Niclas Walther 25fd16822a First commit
2019-05-04 14:42:48 +02:00

48 lines
1.2 KiB
Python

from __future__ import print_function
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
import io
import codecs
import os
import sys
here = os.path.abspath(os.path.dirname(__file__))
def read(filename):
with io.open(filename) as f:
return f.read()
long_description = read('README.md')
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
import pytest
errcode = pytest.main(self.test_args)
sys.exit(errcode)
setup(
name = 'urlloader',
version = '0.1',
url = 'https://github.com/kngbuzzo/testing123',
author = 'Jan-Niclas Walther',
tests_require=['pytest'],
install_requires=[],
cmdclass={'test': PyTest},
author_email='jan-niclasw@web.de',
description='Script for downloading URLs',
long_description=long_description,
packages=['urlloader'],
include_package_data=True,
platforms='any',
classifiers = [
'Programming Language :: Python 2',
],
extras_require={
'testing': ['pytest'],
}
)