Skip to content

Commit 552bb9f

Browse files
committed
Initial commit
1 parent f0887b8 commit 552bb9f

12 files changed

Lines changed: 790 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: CI
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
# branches:
7+
# - main
8+
# - feature/*
9+
10+
jobs:
11+
test-python:
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
python-verion: [3.13, 3.12, 3.11, 3.10, 3.9]
16+
steps:
17+
- uses: actions/checkout@v4
18+
- uses: actions/setup-python@v5
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
- name: Run Python tests
22+
run: python -m unittest discover test

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.DS_Store
2+
.env
3+
.idea/
4+
.vscode/
5+
__pycache__

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
## [Unreleased](https://github.com/nationalarchives/tna-frontend-jinja/compare/v0.0.1...HEAD)
9+
10+
### Added
11+
### Changed
12+
### Deprecated
13+
### Removed
14+
### Fixed
15+
### Security

README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,11 @@
1-
# python-utilities
2-
A library of common National Archives Python functions
1+
# National Archives Python Utilities
2+
3+
A library of common National Archives Python functions.
4+
5+
```sh
6+
# Run the tests
7+
python -m unittest discover test
8+
9+
# Format the code
10+
./tasks/format.sh
11+
```

setup.py

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import setuptools
2+
3+
with open("README.md", "r", encoding="utf-8") as fh:
4+
long_description = fh.read()
5+
6+
setuptools.setup(
7+
name="tna-utilities",
8+
version="0.0.1",
9+
author="Andrew Hosgood",
10+
author_email="andrew.hosgood@nationalarchives.gov.uk",
11+
description="A library of common National Archives Python functions",
12+
long_description=long_description,
13+
long_description_content_type="text/markdown",
14+
url="https://github.com/nationalarchives/python-utilities",
15+
project_urls={
16+
"Bug Tracker": "https://github.com/nationalarchives/python-utilities/issues",
17+
},
18+
classifiers=[
19+
"Programming Language :: Python :: 3",
20+
"License :: OSI Approved :: MIT License",
21+
"Operating System :: OS Independent",
22+
"Environment :: Web Environment",
23+
"Intended Audience :: Developers",
24+
],
25+
packages=["tna_utilities"],
26+
# package_data={
27+
# "": ["**/*.py", "**/*.html"],
28+
# },
29+
python_requires=">=3.9",
30+
)

tasks/format.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
docker run --rm -v "$(pwd)":/app/ ghcr.io/nationalarchives/tna-python-dev:latest format

0 commit comments

Comments
 (0)