Skip to content

Commit

Permalink
Remove Poetry for dependency management
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood committed Nov 29, 2023
1 parent 34d9aeb commit a9db082
Show file tree
Hide file tree
Showing 8 changed files with 70 additions and 366 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,13 @@ jobs:
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install Poetry
uses: snok/install-poetry@v1
- name: Install Python requirements
run: poetry install
run: pip install -r requirements.txt
- name: Lint Python
run: |
poetry run isort . --diff --verbose
poetry run black . --check --verbose
poetry run flake8 . --verbose
isort . --diff --verbose
black . --check --verbose
flake8 . --verbose
test:
name: Test
Expand All @@ -33,15 +31,13 @@ jobs:
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install Poetry
uses: snok/install-poetry@v1
- name: Get fixtures
run: cd .. && git clone https://github.com/nationalarchives/tna-frontend.git
- name: Install Python requirements
run: poetry install
run: pip install -r requirements.txt
- name: Install Node dependencies
run: cd tasks && npm install
- name: Run server
run: poetry run flask --app tna-frontend-jinja run --debug --port 5000 &
run: flask --app tna-frontend-jinja run --debug --port 5000 &
- name: Run the tests
run: node ./tasks/test.mjs || exit 1
6 changes: 2 additions & 4 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,14 @@ jobs:
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install Poetry
uses: snok/install-poetry@v1
- name: Get fixtures
run: cd .. && git clone https://github.com/nationalarchives/tna-frontend.git
- name: Install Python requirements
run: poetry install
run: pip install -r requirements.txt
- name: Install Node dependencies
run: cd tasks && npm install
- name: Run server
run: poetry run flask --app tna-frontend-jinja run --debug --port 5000 &
run: flask --app tna-frontend-jinja run --debug --port 5000 &
- name: Run the tests
run: node ./tasks/test.mjs || exit 1

Expand Down
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased](https://github.com/nationalarchives/tna-frontend-jinja/compare/v0.1.2...HEAD)
## [Unreleased](https://github.com/nationalarchives/tna-frontend-jinja/compare/v0.1.3...HEAD)

### Added
### Changed
Expand All @@ -14,6 +14,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
### Security

## [0.1.3](https://github.com/nationalarchives/tna-frontend-jinja/compare/v0.1.2...v0.1.3) - 2023-11-29

### Changed

- Change package name back to `tna-frontend-jinja`
- Remove Poetry for dependency management

## [0.1.2](https://github.com/nationalarchives/tna-frontend-jinja/compare/v0.1.1...v0.1.2) - 2023-11-29

### Changed
Expand Down
326 changes: 0 additions & 326 deletions poetry.lock

This file was deleted.

25 changes: 0 additions & 25 deletions pyproject.toml

This file was deleted.

5 changes: 5 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
black==23.3.0
django==4.2.2
flake8==6.0.0
flask==2.3.2
isort==5.12.0
15 changes: 15 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[metadata]
# This includes the license file(s) in the wheel.
# https://wheel.readthedocs.io/en/stable/user_guide.html#including-license-files-in-the-generated-wheel-file
license_files = LICENSE

[flake8]
exclude=venv
ignore=E203,W503
max-complexity=10
max-line-length=120

[isort]
profile=black
multi_line_output=3
line_length=120
34 changes: 34 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import setuptools

with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()

setuptools.setup(
name="tna-frontend-jinja",
version="0.1.3",
author="Andrew Hosgood",
author_email="[email protected]",
description="The National Archives frontend Jinja templates",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/nationalarchives/tna-frontend-jinja",
project_urls={
"Bug Tracker": "https://github.com/nationalarchives/tna-frontend-jinja/issues",
},
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"Topic :: Software Development :: Code Generators",
"Topic :: Software Development :: User Interfaces",
"Topic :: Text Processing :: Markup :: HTML",
],
packages=setuptools.find_packages(exclude=["app"]),
package_data={
"templates": ["*.html"],
},
python_requires=">=3.8",
install_requires=["flask>=2"],
)

0 comments on commit a9db082

Please sign in to comment.