-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
executable file
·43 lines (34 loc) · 1.19 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
#!/usr/bin/env python3
# parse_requirements() returns generator of pip.req.InstallRequirement objects
# reqs is a list of requirement
# e.g. ['django==1.5.1', 'mezzanine==1.4.6']
with open('requirements.txt','r') as r:
reqs = r.readlines()
import os
import codecs
from setuptools import setup
__version__ = "0.0.4"
def read(fname):
file_path = os.path.join(os.path.dirname(__file__), fname)
return codecs.open(file_path, encoding='utf-8').read()
def getversion():
if 'BUILD_VERSION' in os.environ:
return os.environ['BUILD_VERSION']
else:
return __version__
setup(
python_requires='>=3.8', # Your supported Python ranges
name='pytest-ads-testplan',
version=getversion(),
author='kurt godwin',
author_email='[email protected]',
url='https://github.com/kurt-cb/pytest-ads-testplan',
description='Azure DevOps Test Case reporting for pytest tests',
py_modules=['pytest_ads_testplan'],
license='GPL v3',
long_description=open('README.rst').read(),
install_requires=reqs,
entry_points={"pytest11": ["ads-testplan = pytest_ads_testplan"]},
# custom PyPI classifier for pytest plugins
classifiers=["Framework :: Pytest"],
)