Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
d0d1a19
Move to modern package structure
Perseudonymous Feb 12, 2024
281e42c
Format code
Perseudonymous Feb 12, 2024
733bcc8
Remove versioneer bit left over
Perseudonymous Feb 12, 2024
64eb6db
Code formatting and setup
Perseudonymous Feb 12, 2024
deb148b
Add requirements dev
Perseudonymous Feb 12, 2024
e8f9875
Remove unneeded pytz
Perseudonymous Feb 12, 2024
4aa76d4
Remove obsolete test
Perseudonymous Feb 12, 2024
5aa5e17
remove obsolete test
Perseudonymous Feb 12, 2024
cb40051
Update requirements
Perseudonymous Feb 12, 2024
de61aa2
Begin setting up pytest
Perseudonymous Feb 15, 2024
794f394
Begin adding new tests
Perseudonymous Feb 15, 2024
91cd583
Formatting
Perseudonymous Feb 15, 2024
10f913b
Merge branch 'update_build_system' into migrate_to_datahub
Perseudonymous Feb 17, 2024
eebb16e
Remove profile logic
Perseudonymous Feb 17, 2024
04096c4
Update forecast tests
Perseudonymous Feb 17, 2024
3ae8d8a
Update docstrings
Perseudonymous Feb 17, 2024
b0a8a6f
Remove unneeded prints
Perseudonymous Feb 17, 2024
3931147
Remove redundant test file
Perseudonymous Mar 2, 2024
2f7b512
Add integration tests, move reference data files
Perseudonymous Mar 2, 2024
e094595
Merge branch 'update_tests' into migrate_to_datahub
Perseudonymous Mar 2, 2024
0a70fd4
Add test build action
Perseudonymous Mar 2, 2024
1d9a02e
Merge branch 'add_release_action' into migrate_to_datahub
Perseudonymous Mar 2, 2024
b912089
Fetch tags in build
Perseudonymous Mar 2, 2024
33fe1aa
Correct build yaml
Perseudonymous Mar 2, 2024
0a26b20
Just set fetch-depth to 0
Perseudonymous Mar 2, 2024
4851567
Update documentation config
Perseudonymous Nov 12, 2024
3f44351
Update docs
Perseudonymous Nov 12, 2024
6db94b0
Update test build action
Perseudonymous Nov 12, 2024
19f7216
Use hatch for test build
Perseudonymous Nov 12, 2024
fc27aae
Use hatch as a standalone command
Perseudonymous Nov 12, 2024
c744042
Remove pipenv
Perseudonymous Nov 14, 2024
c349027
Update docs formatting
Perseudonymous Nov 14, 2024
c819e4c
Update examples
Perseudonymous Nov 14, 2024
093f0bc
Add api-reference to docs
Perseudonymous Nov 14, 2024
dc2e674
Add tests workflow
Perseudonymous Nov 14, 2024
ba8aa43
Install pytest directly in workflow
Perseudonymous Nov 14, 2024
0217f43
Provide default tag to versioningit
Perseudonymous Nov 14, 2024
7e1dd82
Correct format of default tag
Perseudonymous Nov 14, 2024
7aabff8
Add name to Forecast
Perseudonymous Nov 14, 2024
d156642
Document members of Forecast class
Perseudonymous Nov 14, 2024
dd99933
Add pre-commit and linting actions
Perseudonymous Nov 16, 2024
e0f7618
Add example data structure to docs
Perseudonymous Nov 16, 2024
0c193ec
Correct syntax in tests
Perseudonymous Nov 16, 2024
0df199d
Correct imports in docstrings
Perseudonymous Nov 16, 2024
11ae560
Use default versioningit format
Perseudonymous Nov 16, 2024
37a80b0
Set versioningit distance dirty to put 'post' in local version segment
Perseudonymous Nov 16, 2024
6934377
Put 'post' in local segment for versioningit distance
Perseudonymous Nov 16, 2024
24060ec
Use matrix strategy for tests
Perseudonymous Nov 16, 2024
7353653
Remove travis badge from README
Perseudonymous Nov 16, 2024
6a3a963
Correct tests workflow syntax
Perseudonymous Nov 16, 2024
66ecef7
Use explicit strptime for old python
Perseudonymous Nov 16, 2024
943f98b
Correct syntax error
Perseudonymous Nov 16, 2024
f237fcb
Correct syntax error
Perseudonymous Nov 16, 2024
8b39ec7
Just use strptime for all python versions
Perseudonymous Nov 16, 2024
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
2 changes: 1 addition & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ exclude_lines =
if __name__ == .__main__.:
ignore_errors = True
omit =
tests/*
tests/*
6 changes: 6 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[flake8]
max-complexity = 10
max-line-length = 88
extend-select = B950
extend-ignore = E203,E501,E701
exclude = .git,__pycache__,build,dist
44 changes: 44 additions & 0 deletions .github/workflows/publish-to-test-pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Publish Python 🐍 distribution 📦 to PyPI and TestPyPI
on: push
jobs:
build:
name: Build distribution 📦
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install hatch
uses: pypa/hatch@install
- name: Build a binary wheel and a source tarball
run: hatch build
- name: Store the distribution packages
uses: actions/upload-artifact@v4
with:
name: python-package-distributions
path: dist/
publish-to-testpypi:
name: Publish Python 🐍 distribution 📦 to TestPyPI
needs:
- build
runs-on: ubuntu-latest
environment:
name: testpypi
url: https://test.pypi.org/p/datapoint
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
steps:
- name: Download all the dists
uses: actions/download-artifact@v4
with:
name: python-package-distributions
path: dist/
- name: Publish distribution 📦 to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
19 changes: 19 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Run tests
on: pull_request
jobs:
run-tests:
name: Run tests on python ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install requirements
run: pip install -r requirements-dev.txt
- name: Run tests
run: python -m pytest tests
27 changes: 27 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Read the Docs configuration file for Sphinx projects
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

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

# Build documentation in the "docs/" directory with Sphinx
sphinx:
configuration: "docs/conf.py"
# You can configure Sphinx to use a different builder, for instance use the dirhtml builder for simpler URLs
# builder: "dirhtml"
# Fail on all warnings to avoid broken references
# fail_on_warning: true


# Optional but recommended, declare the Python requirements required
# to build your documentation
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
python:
install:
- requirements: "docs/requirements.txt"
27 changes: 0 additions & 27 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## [0.9.8] - 2020-07-03

+ Remove f-string in test

## [0.9.7] - 2020-07-03

+ Bugfix for `get_observation_sites`
Expand Down
2 changes: 0 additions & 2 deletions MANIFEST.in

This file was deleted.

1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# _DataPoint for Python_
[![PyPi version](https://img.shields.io/pypi/v/datapoint.svg)](https://pypi.python.org/pypi/datapoint/)
[![Supported Python versions](https://img.shields.io/pypi/pyversions/datapoint.svg)](https://pypi.python.org/pypi/datapoint/)
[![Build Status](http://img.shields.io/travis/ejep/datapoint-python.svg?style=flat)](https://travis-ci.org/ejep/datapoint-python)
[![Documentation Status](https://readthedocs.org/projects/datapoint-python/badge/?version=latest)](https://readthedocs.org/projects/datapoint-python/)


Expand Down
21 changes: 0 additions & 21 deletions datapoint/Day.py

This file was deleted.

12 changes: 0 additions & 12 deletions datapoint/Element.py

This file was deleted.

105 changes: 0 additions & 105 deletions datapoint/Forecast.py

This file was deleted.

Loading
Loading