First commit
This commit is contained in:
48
setup.py
Normal file
48
setup.py
Normal file
@@ -0,0 +1,48 @@
|
||||
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'],
|
||||
}
|
||||
)
|
||||
Reference in New Issue
Block a user