Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update packaging and readthedocs config. #25

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitattributes

This file was deleted.

9 changes: 4 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,21 @@ jobs:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
python-version: ["3.8", "3.9", "3.10"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Conda
uses: conda-incubator/setup-miniconda@v2
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
channels: conda-forge
activate-environment: testing
channels: defaults
- name: Install dependencies
run: |
conda install -c conda-forge dask pyarrow s3fs pytest-cov
conda install dask pyarrow s3fs pytest pytest-cov
pip install -e . --no-deps
- name: PyTest
run: |
Expand Down
10 changes: 7 additions & 3 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
# Required
version: 2

# Set the OS, Python version and other tools you might need
build:
os: ubuntu-22.04
tools:
python: "3.11"

# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/source/conf.py
Expand All @@ -15,11 +21,9 @@ formats: all

# Set the version of Python and requirements required to build your docs
python:
version: 3.7
install:
# - requirements: requirements.txt
- method: pip
path: .
extra_requirements:
- doc
system_packages: true
- readthedocs
26 changes: 0 additions & 26 deletions .travis.yml

This file was deleted.

9 changes: 5 additions & 4 deletions conda.recipe/condastats/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,15 @@ test:
- pytest

about:
home: https://github.com/sophiamyang/condastats
home: https://github.com/conda-incuabtor/condastats
license: BSD
license_family: BSD
license_file:
license_file:
summary: Conda package stats CLI
doc_url:
dev_url:
doc_url:
dev_url:

extra:
recipe-maintainers:
- sophiamyang
- jezdez
11 changes: 7 additions & 4 deletions condastats/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@
"""Top-level package for condastats."""

__author__ = """Sophia Man Yang"""
__version__ = '0.1.2'

from ._version import get_versions
__version__ = get_versions()['version']
del get_versions
from importlib.metadata import version, PackageNotFoundError

try:
__version__ = version("condastats")
except PackageNotFoundError:
# package is not installed
pass
Loading
Loading