Skip to content

Commit 5fa2104

Browse files
Irliriona-r-j
andauthored
Exclude Test Scripts and Data from PyPI Release (#148)
* move tests to dir and rewrite paths * add python 3.7 test run support * add importlib_resources to appveyor * format files with 79 line length * run tests from root dir in workflow * docs: update changelog --------- Co-authored-by: Arian Jamasb <[email protected]>
1 parent 3e26557 commit 5fa2104

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+354
-229
lines changed

.appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ install:
1414
- conda config --set always_yes yes --set changeps1 no
1515
- conda update -q conda
1616
- conda info -a
17-
- conda create -q -n test-environment --channel=conda-forge mmtf-python numpy scipy pandas pytest looseversion python=%PYTHON_VERSION%
17+
- conda create -q -n test-environment --channel=conda-forge mmtf-python numpy scipy pandas pytest looseversion importlib_resources python=%PYTHON_VERSION%
1818
- activate test-environment
1919

2020
test_script:

.github/workflows/publish.yaml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,50 +5,50 @@ name: Publish BioPandas to PyPI / GitHub
55

66
on:
77
pull_request:
8-
branches: [ main ]
8+
branches: [main]
99

1010
jobs:
1111
test-style:
1212
name: Run style tests
1313
runs-on: ubuntu-latest
1414

1515
steps:
16-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@v3
1717

18-
- name: Set up Python
19-
uses: actions/setup-python@v4
20-
with:
21-
python-version: '3.x'
22-
cache: 'pip'
18+
- name: Set up Python
19+
uses: actions/setup-python@v4
20+
with:
21+
python-version: "3.x"
22+
cache: "pip"
2323

24-
- name: Install package dependencies for testing
25-
run: pip install .[test]
24+
- name: Install package dependencies for testing
25+
run: pip install .[test]
2626

27-
- name: Run all the pytest tests
28-
run: flake8 ./biopandas
27+
- name: Run all the pytest tests
28+
run: flake8 ./biopandas
2929

3030
test-pytest:
3131
name: Run pytest tests
3232
runs-on: ubuntu-latest
3333

3434
steps:
35-
- uses: actions/checkout@v3
35+
- uses: actions/checkout@v3
3636

37-
- name: Set up Python
38-
uses: actions/setup-python@v4
39-
with:
40-
python-version: '3.x'
41-
cache: 'pip'
37+
- name: Set up Python
38+
uses: actions/setup-python@v4
39+
with:
40+
python-version: "3.x"
41+
cache: "pip"
4242

43-
- name: Install package dependencies for testing
44-
run: pip install .[test]
43+
- name: Install package dependencies for testing
44+
run: pip install .[test]
4545

46-
- name: Run all the pytest tests
47-
run: pytest ./biopandas -sv
46+
- name: Run all the pytest tests
47+
run: pytest -sv
4848

4949
build-n-publish:
5050
needs: [test-pytest] # only runs if tests are passing
51-
if: startsWith(github.ref, 'refs/tags/v') # Check if the tag starts with 'v'
51+
if: startsWith(github.ref, 'refs/tags/v') # Check if the tag starts with 'v'
5252
name: Build and publish to PyPI
5353
runs-on: ubuntu-latest
5454

docs/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ The CHANGELOG for the current development version is available at
88

99
- Feature: added method to `PandasMmcif` that allow to select by model ids. PR #[145](https://github.com/BioPandas/biopandas/pull/145))
1010
- Dev: switched testing framework entirely to pytest. Drops nose dependency due to version conflicts with Python 3.12 (`nose`) and 3.8 (`nose`) PR #[146](https://github.com/BioPandas/biopandas/pull/146))
11+
- Avoid inclusion of test scripts and test data in the PyPI release of the Biopandas library. PR #[148](https://github.com/BioPandas/biopandas/pull/148). Addresses issue [#147](https://github.com/BioPandas/biopandas/issues/147)
1112

1213

1314
### 0.5.0dev1 (31/7/2023)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)