Skip to content
Merged
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
16 changes: 10 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
# This workflow runs the typescript implementation unit tests
name: release
on:
release:
types: [published]
workflow_dispatch: {}
jobs:
build:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run release
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: astral-sh/setup-uv@v5
- name: Build sdist and wheel
run: uv build
- name: Publish to PyPI
run: uv publish
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: REF="${{ github.ref }}" ./ci/release.sh
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_TOKEN }}
17 changes: 11 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
# This workflow runs the typescript implementation unit tests
name: tests
on:
push:
branches: [ main ]
branches: [main]
pull_request:
branches: [ main ]
branches: [main]
workflow_dispatch: {}
jobs:
build:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: astral-sh/setup-uv@v5
- name: Run unit tests
run: docker build . --target=test
run: uv run --python ${{ matrix.python-version }} --extra test pytest
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,9 @@ venv.bak/

# mypy
.mypy_cache/

# uv
uv.lock

# claude code
.claude/
9 changes: 3 additions & 6 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,21 +46,18 @@ Improvements to existing functionality are tracked as [GitHub issues using the U

## Development

### Set up your dev environments
### Set up your dev environment

```sh
pip install -r requirements.txt
pip install -r requirements_test.txt
python setup.py develop
uv sync --extra test
```

### Run unit tests

```sh
./ci/run_tests.sh
uv run pytest
```


## Your First Code Contribution

Unsure where to begin contributing? You can start by looking through these issues:
Expand Down
56 changes: 0 additions & 56 deletions Dockerfile

This file was deleted.

47 changes: 0 additions & 47 deletions ci/Dockerfile

This file was deleted.

24 changes: 0 additions & 24 deletions ci/publish.sh

This file was deleted.

19 changes: 0 additions & 19 deletions ci/release.sh

This file was deleted.

11 changes: 0 additions & 11 deletions ci/run-tests.sh

This file was deleted.

44 changes: 44 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"

[project]
name = "alchemy-config"
dynamic = ["version"]
description = "Configuration framework in Python for general configuration use."
readme = "README.md"
license = "MIT"
requires-python = ">=3.9"
authors = [
{ name = "Gabe Goodhart", email = "ghart@us.ibm.com" },
]
keywords = ["config"]
dependencies = [
"PyYAML>=5.3.1",
]

[project.urls]
Homepage = "https://github.com/IBM/alchemy-config"

[project.optional-dependencies]
test = [
"pytest>=5.3.2",
"pytest-cov>=2.9.0",
]

[tool.pytest.ini_options]
addopts = [
"--cov=aconfig",
"--cov-report=term",
"--cov-report=html",
"--disable-pytest-warnings",
]

[tool.hatch.version]
source = "vcs"

[tool.hatch.build.targets.sdist]
include = ["aconfig/", "LICENSE", "README.md"]

[tool.hatch.build.targets.wheel]
packages = ["aconfig"]
1 change: 0 additions & 1 deletion requirements.txt

This file was deleted.

2 changes: 0 additions & 2 deletions requirements_test.txt

This file was deleted.

35 changes: 0 additions & 35 deletions setup.py

This file was deleted.

Loading