Skip to content

Commit d734191

Browse files
ci: ignore some non-test folders
1 parent 0c3f94c commit d734191

File tree

2 files changed

+17
-6
lines changed

2 files changed

+17
-6
lines changed

pytest.ini

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[pytest]
2+
# some folders to ignore:
3+
# - testsuite is a integration method performance and accuracy test suite, not code correctness
4+
# - shrinkageeval is code for Buchner (2014)'s statistical test for nested sampling, not code correctness
5+
# - ultranest2 contains mostly toy codes at this point
6+
addopts = --ignore=testsuite/ --ignore=nested_sampling/shrinkageeval/ --ignore=ultranest2/

setup.py

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
#!/usr/bin/env python
2+
# -*- coding: utf-8 -*-
23

3-
from distutils.core import setup
4+
try:
5+
from setuptools import setup
6+
except:
7+
from distutils.core import setup
48

5-
long_description = ''
6-
with open('README.rst') as f:
7-
long_description = f.read()
9+
long_description = None
10+
with open('README.rst') as file:
11+
long_description = file.read()
812

9-
setup(name='nested_sampling',
13+
setup(
14+
name='nested_sampling',
1015
version='0.3',
1116
url='https://github.com/JohannesBuchner/UltraNest',
1217
author='Johannes Buchner',
@@ -23,5 +28,5 @@
2328
],
2429
setup_requires=['pytest-runner'],
2530
tests_require=['pytest'],
26-
)
31+
)
2732

0 commit comments

Comments
 (0)