-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathsetup.py
51 lines (44 loc) · 1.53 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# -*- coding: utf-8 -*-
import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = ['--strict-markers', '--verbose', '--tb=long']
self.test_suite = True
def run_tests(self):
import pytest
errcode = pytest.main(self.test_args)
sys.exit(errcode)
setup(
name='RandomWords',
version='0.4.0',
author='Tomek Święcicki',
author_email='[email protected]',
packages=['random_words'],
url='https://github.com/tomislater/RandomWords',
license='LICENSE.txt',
description='A useful module for a random text, e-mails and lorem ipsum.',
long_description=open('README.rst').read(),
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Natural Language :: English',
'Development Status :: 5 - Production/Stable',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Topic :: Software Development :: Libraries :: Python Modules',
],
include_package_data=True,
install_requires=[],
tests_require=['pytest'],
cmdclass={'test': PyTest},
test_suite='random_words.test.test_random_words',
extras_require={
'testing': ['pytest'],
},
)