Skip to content

Commit c837190

Browse files
authored
Revert "Switch to Poetry, and update test data with some rounded values to try and help comparisons (#102)" (#103)
This reverts commit 33aaaa3.
1 parent 33aaaa3 commit c837190

File tree

90 files changed

+76719
-75952
lines changed

Some content is hidden

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

90 files changed

+76719
-75952
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
clarite/_version.py export-subst

.github/workflows/ci.yml

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -41,33 +41,29 @@ jobs:
4141
with:
4242
python-version: 3.7
4343

44-
- name: Install Poetry
45-
uses: snok/[email protected]
44+
- name: Upgrade pip
45+
run: |
46+
python -m pip install --upgrade pip
47+
echo "PIP_CACHE_DIR=$(python -m pip cache dir)" >> $GITHUB_ENV
4648
47-
- name: Cache Poetry virtualenv
48-
uses: actions/cache@v1
49-
id: cache
49+
- name: Cache python dependencies
50+
uses: actions/cache@v2
51+
id: cache-python
5052
with:
51-
path: ~/.virtualenvs
52-
key: poetry-${{ hashFiles('**/poetry.lock') }}
53-
restore-keys: |
54-
poetry-${{ hashFiles('**/poetry.lock') }}
55-
56-
- name: Set Poetry config
57-
run: |
58-
poetry config virtualenvs.in-project false
59-
poetry config virtualenvs.path ~/.virtualenvs
53+
path: ${{ env.PIP_CACHE_DIR }}
54+
key: ${{ runner.os }}-pip-${{ hashFiles('requirements/requirements.txt', 'requirements/requirements-dev.txt') }}
6055

61-
- name: Install Dependencies
56+
- name: Install Dependencies (uses the cache when requirements did not change)
6257
run: |
63-
poetry install
64-
if: steps.cache.outputs.cache-hit != 'true'
58+
python -m pip install -r requirements/requirements.txt
59+
python -m pip install -r requirements/requirements-dev.txt
60+
python -m pip install --upgrade twine wheel
6561
6662
- name: Code Quality
67-
run: poetry run black . --check
63+
run: python -m black . --check
6864

6965
- name: Test with pytest
70-
run: poetry run pytest -n 2 --cov . --cov-report=xml
66+
run: python -m pytest -n 2 --cov . --cov-report=xml --cov-config=.coveragerc
7167

7268
- name: Upload coverage to Codecov
7369
uses: codecov/codecov-action@v1

.readthedocs.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
1+
# .readthedocs.yml
2+
# Read the Docs configuration file
3+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
4+
5+
# Required
16
version: 2
27

8+
# Build documentation in the docs/ directory with Sphinx
39
sphinx:
410
configuration: docs/source/conf.py
511

12+
# Optionally build your docs in additional formats such as PDF and ePub
13+
formats: all
14+
15+
# Optionally set the version of Python and requirements required to build your docs
616
python:
717
version: 3.7
818
install:
9-
- method: pip
10-
path: .
11-
extra_requirements:
12-
- docs
19+
- requirements: requirements/requirements-rtd.txt

MANIFEST.in

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
include AUTHORS.rst
2+
include CONTRIBUTING.rst
3+
include LICENSE
4+
include README.rst
5+
include requirements/*
6+
include clarite/modules/analyze/regression/r_code/*.R
7+
8+
recursive-exclude * __pycache__
9+
recursive-exclude * *.py[co]
10+
11+
recursive-include docs *.rst conf.py Makefile make.bat
12+
13+
include versioneer.py
14+
include clarite/_version.py
15+
16+
# If including data files in the package, add them like:
17+
# include path/to/data_file

clarite/__init__.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
try:
2-
import importlib.metadata as importlib_metadata
3-
except ModuleNotFoundError:
4-
import importlib_metadata
1+
# flake8: noqa
2+
from ._version import get_versions
53

64
from .modules import modify, plot, describe, analyze, load, survey
75

8-
__version__ = importlib_metadata.version(__name__)
9-
10-
__all__ = ["__version__", "modify", "plot", "describe", "analyze", "load", "survey"]
6+
__version__ = get_versions()["version"]
7+
del get_versions

0 commit comments

Comments
 (0)