atdata 0.1.1a1__tar.gz → 0.1.1a2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- atdata-0.1.1a2/.github/workflows/python-package.yml +66 -0
- atdata-0.1.1a2/.github/workflows/python-publish.yml +129 -0
- {atdata-0.1.1a1 → atdata-0.1.1a2}/PKG-INFO +2 -2
- {atdata-0.1.1a1 → atdata-0.1.1a2}/README.md +1 -1
- {atdata-0.1.1a1 → atdata-0.1.1a2}/pyproject.toml +4 -1
- {atdata-0.1.1a1 → atdata-0.1.1a2}/.gitignore +0 -0
- {atdata-0.1.1a1 → atdata-0.1.1a2}/.python-version +0 -0
- {atdata-0.1.1a1 → atdata-0.1.1a2}/LICENSE +0 -0
- {atdata-0.1.1a1 → atdata-0.1.1a2}/src/atdata/__init__.py +0 -0
- {atdata-0.1.1a1 → atdata-0.1.1a2}/src/atdata/_helpers.py +0 -0
- {atdata-0.1.1a1 → atdata-0.1.1a2}/src/atdata/dataset.py +0 -0
- {atdata-0.1.1a1 → atdata-0.1.1a2}/tests/test_dataset.py +0 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
|
|
2
|
+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
|
|
3
|
+
|
|
4
|
+
name: Python package
|
|
5
|
+
|
|
6
|
+
on:
|
|
7
|
+
push:
|
|
8
|
+
branches: [ "main" ]
|
|
9
|
+
pull_request:
|
|
10
|
+
branches: [ "main" ]
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
uv-test:
|
|
14
|
+
name: python
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
|
|
17
|
+
steps:
|
|
18
|
+
- uses: actions/checkout@v5
|
|
19
|
+
|
|
20
|
+
- name: "Set up Python"
|
|
21
|
+
uses: actions/setup-python@v5
|
|
22
|
+
with:
|
|
23
|
+
python-version-file: "pyproject.toml"
|
|
24
|
+
|
|
25
|
+
- name: Install uv
|
|
26
|
+
uses: astral-sh/setup-uv@v6
|
|
27
|
+
|
|
28
|
+
- name: Install the project
|
|
29
|
+
run: uv sync --all-extras --dev
|
|
30
|
+
# TODO Better to use --locked for author control over versions?
|
|
31
|
+
# run: uv sync --locked --all-extras --dev
|
|
32
|
+
|
|
33
|
+
- name: Run tests
|
|
34
|
+
# For example, using `pytest`
|
|
35
|
+
run: uv run pytest tests
|
|
36
|
+
|
|
37
|
+
# OLD - kept for legacy
|
|
38
|
+
# jobs:
|
|
39
|
+
# build:
|
|
40
|
+
|
|
41
|
+
# runs-on: ubuntu-latest
|
|
42
|
+
# strategy:
|
|
43
|
+
# fail-fast: false
|
|
44
|
+
# matrix:
|
|
45
|
+
# python-version: ["3.12", "3.13"]
|
|
46
|
+
|
|
47
|
+
# steps:
|
|
48
|
+
# - uses: actions/checkout@v4
|
|
49
|
+
# - name: Set up Python ${{ matrix.python-version }}
|
|
50
|
+
# uses: actions/setup-python@v3
|
|
51
|
+
# with:
|
|
52
|
+
# python-version: ${{ matrix.python-version }}
|
|
53
|
+
# - name: Install dependencies
|
|
54
|
+
# run: |
|
|
55
|
+
# python -m pip install --upgrade pip
|
|
56
|
+
# python -m pip install flake8 pytest
|
|
57
|
+
# if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
|
58
|
+
# - name: Lint with flake8
|
|
59
|
+
# run: |
|
|
60
|
+
# # stop the build if there are Python syntax errors or undefined names
|
|
61
|
+
# flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
|
62
|
+
# # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
|
|
63
|
+
# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
|
64
|
+
# - name: Test with pytest
|
|
65
|
+
# run: |
|
|
66
|
+
# pytest
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
# This workflow will upload a Python Package to PyPI when a release is created
|
|
2
|
+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
|
|
3
|
+
|
|
4
|
+
# This workflow uses actions that are not certified by GitHub.
|
|
5
|
+
# They are provided by a third-party and are governed by
|
|
6
|
+
# separate terms of service, privacy policy, and support
|
|
7
|
+
# documentation.
|
|
8
|
+
|
|
9
|
+
name: Build and upload package to PyPI
|
|
10
|
+
|
|
11
|
+
on:
|
|
12
|
+
release:
|
|
13
|
+
types: [published]
|
|
14
|
+
|
|
15
|
+
permissions:
|
|
16
|
+
contents: read
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
jobs:
|
|
20
|
+
|
|
21
|
+
# uv-release-build-publish:
|
|
22
|
+
# # name: python
|
|
23
|
+
# runs-on: ubuntu-latest
|
|
24
|
+
|
|
25
|
+
# steps:
|
|
26
|
+
# - uses: actions/checkout@v5
|
|
27
|
+
|
|
28
|
+
# - name: "Set up Python"
|
|
29
|
+
# uses: actions/setup-python@v5
|
|
30
|
+
# with:
|
|
31
|
+
# python-version-file: "pyproject.toml"
|
|
32
|
+
|
|
33
|
+
# - name: Install uv
|
|
34
|
+
# uses: astral-sh/setup-uv@v6
|
|
35
|
+
|
|
36
|
+
# - name: Install the project
|
|
37
|
+
# run: uv sync --all-extras --dev
|
|
38
|
+
# # TODO Better to use --locked for author control over versions?
|
|
39
|
+
# # run: uv sync --locked --all-extras --dev
|
|
40
|
+
|
|
41
|
+
# - name: Build release distributions
|
|
42
|
+
# run: uv build
|
|
43
|
+
|
|
44
|
+
uv-build-release-pypi-publish:
|
|
45
|
+
name: "Build release distribution and publish to PyPI"
|
|
46
|
+
runs-on: ubuntu-latest
|
|
47
|
+
# needs:
|
|
48
|
+
# - uv-release-build
|
|
49
|
+
environment:
|
|
50
|
+
name: pypi
|
|
51
|
+
|
|
52
|
+
steps:
|
|
53
|
+
- uses: actions/checkout@v5
|
|
54
|
+
|
|
55
|
+
- name: "Set up Python"
|
|
56
|
+
uses: actions/setup-python@v5
|
|
57
|
+
with:
|
|
58
|
+
python-version-file: "pyproject.toml"
|
|
59
|
+
|
|
60
|
+
- name: Install uv
|
|
61
|
+
uses: astral-sh/setup-uv@v6
|
|
62
|
+
|
|
63
|
+
- name: Install the project
|
|
64
|
+
run: uv sync --all-extras --dev
|
|
65
|
+
# TODO Better to use --locked for author control over versions?
|
|
66
|
+
# run: uv sync --locked --all-extras --dev
|
|
67
|
+
|
|
68
|
+
- name: Build release distributions
|
|
69
|
+
run: uv build
|
|
70
|
+
|
|
71
|
+
- name: Publish to PyPI
|
|
72
|
+
env:
|
|
73
|
+
UV_PUBLISH_TOKEN: ${{ secrets.UV_PUBLISH_TOKEN }}
|
|
74
|
+
run: uv publish
|
|
75
|
+
|
|
76
|
+
# TODO Original variant kept for reference
|
|
77
|
+
# jobs:
|
|
78
|
+
# release-build:
|
|
79
|
+
# runs-on: ubuntu-latest
|
|
80
|
+
|
|
81
|
+
# steps:
|
|
82
|
+
# - uses: actions/checkout@v4
|
|
83
|
+
|
|
84
|
+
# - uses: actions/setup-python@v5
|
|
85
|
+
# with:
|
|
86
|
+
# python-version: "3.x"
|
|
87
|
+
|
|
88
|
+
# - name: Build release distributions
|
|
89
|
+
# run: |
|
|
90
|
+
# # NOTE: put your own distribution build steps here.
|
|
91
|
+
# python -m pip install build
|
|
92
|
+
# python -m build
|
|
93
|
+
|
|
94
|
+
# - name: Upload distributions
|
|
95
|
+
# uses: actions/upload-artifact@v4
|
|
96
|
+
# with:
|
|
97
|
+
# name: release-dists
|
|
98
|
+
# path: dist/
|
|
99
|
+
|
|
100
|
+
# pypi-publish:
|
|
101
|
+
# runs-on: ubuntu-latest
|
|
102
|
+
# needs:
|
|
103
|
+
# - release-build
|
|
104
|
+
# permissions:
|
|
105
|
+
# # IMPORTANT: this permission is mandatory for trusted publishing
|
|
106
|
+
# id-token: write
|
|
107
|
+
|
|
108
|
+
# # Dedicated environments with protections for publishing are strongly recommended.
|
|
109
|
+
# # For more information, see: https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#deployment-protection-rules
|
|
110
|
+
# environment:
|
|
111
|
+
# name: pypi
|
|
112
|
+
# # OPTIONAL: uncomment and update to include your PyPI project URL in the deployment status:
|
|
113
|
+
# # url: https://pypi.org/p/YOURPROJECT
|
|
114
|
+
# #
|
|
115
|
+
# # ALTERNATIVE: if your GitHub Release name is the PyPI project version string
|
|
116
|
+
# # ALTERNATIVE: exactly, uncomment the following line instead:
|
|
117
|
+
# # url: https://pypi.org/project/YOURPROJECT/${{ github.event.release.name }}
|
|
118
|
+
|
|
119
|
+
# steps:
|
|
120
|
+
# - name: Retrieve release distributions
|
|
121
|
+
# uses: actions/download-artifact@v4
|
|
122
|
+
# with:
|
|
123
|
+
# name: release-dists
|
|
124
|
+
# path: dist/
|
|
125
|
+
|
|
126
|
+
# - name: Publish release distributions to PyPI
|
|
127
|
+
# uses: pypa/gh-action-pypi-publish@release/v1
|
|
128
|
+
# with:
|
|
129
|
+
# packages-dir: dist/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: atdata
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.1a2
|
|
4
4
|
Summary: A loose federation of distributed, typed datasets
|
|
5
5
|
Author-email: Maxine Levesque <hello@maxine.science>
|
|
6
6
|
License-File: LICENSE
|
|
@@ -11,5 +11,5 @@ Requires-Dist: ormsgpack>=1.11.0
|
|
|
11
11
|
Requires-Dist: webdataset>=1.0.2
|
|
12
12
|
Description-Content-Type: text/markdown
|
|
13
13
|
|
|
14
|
-
#
|
|
14
|
+
# atdata
|
|
15
15
|
A loose federation of distributed, typed datasets
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
#
|
|
1
|
+
# atdata
|
|
2
2
|
A loose federation of distributed, typed datasets
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "atdata"
|
|
3
|
-
version = "0.1.
|
|
3
|
+
version = "0.1.1a2"
|
|
4
4
|
description = "A loose federation of distributed, typed datasets"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
authors = [
|
|
@@ -21,6 +21,9 @@ ekumen = "atdata:main"
|
|
|
21
21
|
requires = ["hatchling"]
|
|
22
22
|
build-backend = "hatchling.build"
|
|
23
23
|
|
|
24
|
+
[tool.pytest.ini_options]
|
|
25
|
+
addopts = "--cov=atdata"
|
|
26
|
+
|
|
24
27
|
[dependency-groups]
|
|
25
28
|
dev = [
|
|
26
29
|
"pytest>=8.4.2",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|