Skip to content

Commit a85f1af

Browse files
author
Emily Price
authored
Merge pull request #189 from EJEP/migrate_to_datahub
Migrate to datahub
2 parents 57e649b + 8b39ec7 commit a85f1af

Some content is hidden

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

69 files changed

+6303
-6964
lines changed

.coveragerc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ exclude_lines =
1111
if __name__ == .__main__.:
1212
ignore_errors = True
1313
omit =
14-
tests/*
14+
tests/*

.flake8

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[flake8]
2+
max-complexity = 10
3+
max-line-length = 88
4+
extend-select = B950
5+
extend-ignore = E203,E501,E701
6+
exclude = .git,__pycache__,build,dist
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Publish Python 🐍 distribution 📦 to PyPI and TestPyPI
2+
on: push
3+
jobs:
4+
build:
5+
name: Build distribution 📦
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v4
9+
with:
10+
fetch-depth: 0
11+
fetch-tags: true
12+
- name: Set up Python
13+
uses: actions/setup-python@v5
14+
with:
15+
python-version: "3.12"
16+
- name: Install hatch
17+
uses: pypa/hatch@install
18+
- name: Build a binary wheel and a source tarball
19+
run: hatch build
20+
- name: Store the distribution packages
21+
uses: actions/upload-artifact@v4
22+
with:
23+
name: python-package-distributions
24+
path: dist/
25+
publish-to-testpypi:
26+
name: Publish Python 🐍 distribution 📦 to TestPyPI
27+
needs:
28+
- build
29+
runs-on: ubuntu-latest
30+
environment:
31+
name: testpypi
32+
url: https://test.pypi.org/p/datapoint
33+
permissions:
34+
id-token: write # IMPORTANT: mandatory for trusted publishing
35+
steps:
36+
- name: Download all the dists
37+
uses: actions/download-artifact@v4
38+
with:
39+
name: python-package-distributions
40+
path: dist/
41+
- name: Publish distribution 📦 to TestPyPI
42+
uses: pypa/gh-action-pypi-publish@release/v1
43+
with:
44+
repository-url: https://test.pypi.org/legacy/

.github/workflows/tests.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Run tests
2+
on: pull_request
3+
jobs:
4+
run-tests:
5+
name: Run tests on python ${{ matrix.python-version }}
6+
runs-on: ubuntu-latest
7+
strategy:
8+
matrix:
9+
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: Set up Python
13+
uses: actions/setup-python@v5
14+
with:
15+
python-version: ${{ matrix.python-version }}
16+
- name: Install requirements
17+
run: pip install -r requirements-dev.txt
18+
- name: Run tests
19+
run: python -m pytest tests

.readthedocs.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Read the Docs configuration file for Sphinx projects
2+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3+
4+
# Required
5+
version: 2
6+
7+
# Set the OS, Python version and other tools you might need
8+
build:
9+
os: ubuntu-22.04
10+
tools:
11+
python: "3.12"
12+
13+
# Build documentation in the "docs/" directory with Sphinx
14+
sphinx:
15+
configuration: "docs/conf.py"
16+
# You can configure Sphinx to use a different builder, for instance use the dirhtml builder for simpler URLs
17+
# builder: "dirhtml"
18+
# Fail on all warnings to avoid broken references
19+
# fail_on_warning: true
20+
21+
22+
# Optional but recommended, declare the Python requirements required
23+
# to build your documentation
24+
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
25+
python:
26+
install:
27+
- requirements: "docs/requirements.txt"

.travis.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
1818
## [0.9.8] - 2020-07-03
1919

2020
+ Remove f-string in test
21-
21+
2222
## [0.9.7] - 2020-07-03
2323

2424
+ Bugfix for `get_observation_sites`

MANIFEST.in

Lines changed: 0 additions & 2 deletions
This file was deleted.

README.md

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

76

datapoint/Day.py

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)