Skip to content

Commit

Permalink
Revert "v.0.20 (#974)" (#981)
Browse files Browse the repository at this point in the history
This reverts commit d9adc69.
  • Loading branch information
arkid15r authored Feb 23, 2023
1 parent d9adc69 commit 05defee
Show file tree
Hide file tree
Showing 323 changed files with 5,660 additions and 13,895 deletions.
48 changes: 0 additions & 48 deletions .github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

46 changes: 22 additions & 24 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Tests
name: "Tests"
on: [push, pull_request, workflow_dispatch]

env:
Expand All @@ -9,40 +9,38 @@ jobs:
name: Run Quality Assurance
runs-on: ubuntu-latest
steps:
- name: Check Out Repository
- name: Check out repo
uses: actions/checkout@v3
- name: Set Up Python
- name: Set up Python
uses: actions/[email protected]
with:
python-version: '3.11'
- name: Run pre-commit
uses: pre-commit/[email protected]

test:
name: 'Test: Python=${{ matrix.python-version }} on ${{ matrix.os }}'
name: "Test: python=${{ matrix.python-version }} on ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
needs: [pre-commit]
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', 'pypy-3.7']
python-version: ["3.7", "3.8", "3.9", "3.10", "pypy-3.7"]

steps:
- uses: actions/checkout@v3
- name: Set Up Python ${{ matrix.python-version }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: requirements/dev.txt
- name: Install Dependencies
cache-dependency-path: requirements_dev.txt
- name: Install dependencies
run: |
python -m pip install -U pip wheel 'coveralls>=3'
python -m pip install -U -r requirements/dev.txt
python -m pip install -U -r requirements_dev.txt
python -m pip install -e .
- name: Run Tests
- name: Run tests
run: |
make test
pytest
- name: Upload Coverage
run: coveralls --service=github
env:
Expand All @@ -56,32 +54,32 @@ jobs:
runs-on: ubuntu-latest
container: python:3-slim
steps:
- name: Finished
run: |
pip3 install -U 'coveralls>=3'
coveralls --finish --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Finished
run: |
pip3 install -U 'coveralls>=3'
coveralls --finish --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

deploy:
runs-on: ubuntu-latest
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
needs: [test]
steps:
- uses: actions/checkout@v3
- name: Set Up Python
- name: Set up Python 3.9
uses: actions/[email protected]
with:
python-version: '3.11'
- name: Install Dependencies
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install -U pip wheel
pip install -U .
- name: Build Distribution
- name: Build dist
run: |
python setup.py sdist bdist_wheel
- name: Publish Package
- name: Publish package
uses: pypa/[email protected]
with:
user: __token__
Expand Down
9 changes: 3 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,22 +1,19 @@
build/*
build/
dist/
venv/
MANIFEST
.coverage
*.egg-info
*.mo
*.pot
*.pyc
*.DS_Store
coverage.xml
.tox
.venv
docs/build
holidays/locale/pot
docs/_build
docs/source/_build

# IDE Stuff
.idea
.vscode/
*.code-workspace
Pipfile
.gitpod.yml
25 changes: 4 additions & 21 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,17 @@ repos:
hooks:
- id: check-ast
- id: check-builtin-literals
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: fix-encoding-pragma
args: [--remove]
- id: mixed-line-ending
args: [--fix=lf]
- id: trailing-whitespace

- repo: https://github.com/python/black
rev: 23.1.0
rev: 22.12.0
hooks:
- id: black
exclude: ^(docs|scripts/l10n/msgfmt.py)
language_version: python3

- repo: https://github.com/pycqa/flake8
Expand All @@ -26,19 +24,15 @@ repos:
additional_dependencies:
- flake8-print
args: [--max-line-length=79]
exclude: ^(docs|scripts/l10n/msgfmt.py)

- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.10.1
hooks:
- id: isort
# holidays/countries/__init__.py is excluded due to a bug whereby
# black and isort don't agree and enter into an infinite fix loop.
# TODO remove this exclusion when isort and black play nice again.
exclude: ^(docs|holidays/countries/__init__.py|scripts/l10n/msgfmt.py)
exclude: ^docs/

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.0.1
rev: v0.991
hooks:
- id: mypy
additional_dependencies: [types-all]
Expand All @@ -62,14 +56,3 @@ repos:
rev: v2.2.0
hooks:
- id: setup-cfg-fmt

- repo: local
hooks:
- id: tests
always_run: true
entry: make test
language: system
name: run tests
pass_filenames: false
stages:
- push
18 changes: 0 additions & 18 deletions .readthedocs.yaml

This file was deleted.

51 changes: 0 additions & 51 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,54 +1,3 @@
Version 0.20
============

Released February 23, 2023

- Add localization support, #827 (@arkid15r, @bkthomps, @dragoon)
- Introduce `HolidayBase::_is_leap_year()`, #886 (@arkid15r)
- Introduce `HolidayBase::_is_monday` - `HolidayBase::_is_sunday` helper methods, #841 (@arkid15r)
- Refactor Burundi holidays, #925 (@KJhellico)
- Refactor Cuba holidays, #927 (@KJhellico)
- Refactor HolidayBase class and utils, #815 (@arkid15r)
- Refactor common.TestCase, #926 (@arkid15r)
- Refactor days offset calculation for recently added countries, #924 (@KJhellico)
- Refactor days offset calculation: replace `relativedelta` with `timedelta` (tests), #901 (@arkid15r)
- Refactor days offset calculation: replace `relativedelta` with `timedelta`, #900 (@arkid15r)
- Refactor implicit returns, #935 (@arkid15r)
- Add Panama holidays, #916 (@KJhellico)
- Localize ascii incompatible countries, #955 (@arkid15r)
- Change holiday name separator from ", " to "; ", #922 (@arkid15r)
- Fix Hong Kong, #928 (@KJhellico)
- Fix Islamic holidays calculation, #914 (@KJhellico)
- Fix Thailand related changes coverage decrease, #942 (@arkid15r, @PPsyrius)
- Fix Ukraine tests, #943 (@KJhellico)
- Fix readthedocs.io build, #973 (@arkid15r)
- Improve Thailand holidays, #929 (@PPsyrius, @arkid15r, @KJhellico)
- Optimize Botswana observed holidays, #932 (@KJhellico)
- Optimize Burundi observed holidays, #933 (@KJhellico)
- Optimize Montenegro: observed holidays, #908 (@KJhellico)
- Optimize Ukraine observed holidays, #934 (@KJhellico)
- Optimize observed holidays, part 1, #949 (@KJhellico)
- Optimize observed holidays, part 2, #952 (@KJhellico)
- Update Albania observed holidays, #950 (@KJhellico)
- Update Australia holidays: fix 2020 QLD holidays, #923 (@arkid15r)
- Update Bolivia holidays, #910 (@KJhellico)
- Update Bosnia and Herzegovina holidays, #909 (@KJhellico)
- Update Canada holidays (add National Day for Truth and Reconciliation in British Columbia), #951 (@KJhellico)
- Update Jamaica holidays, #913 (@KJhellico)
- Update PR template, #960 (@arkid15r)
- Update Poland holidays, add uk localization, #947 (@KJhellico)
- Update dev/test environments, #930 (@arkid15r)
- Upgrade dependency: change black version from 22.12.0 to 23.1.0, #921 (@arkid15r)
- Upgrade pre-commit config: mypy v1.0.1, #970 (@arkid15r)
- Add GitHub pull request template, #911 (@arkid15r)
- Add International Women's Day for DE-MV, #936 (@alexanderschulze)
- Add Marshall Islands (ISO-3666-1 code MH), #937 (@mborsetti)
- Add Northern Mariana Islands (ISO-3666-2 code US-MP), #939 (@mborsetti)
- Add United States Minor Outlying Islands (ISO-3666-2 code US-UM), #940 (@mborsetti)
- ISO 3166-1 for US subdivisions, #941 (@mborsetti, @dr-prodigy)
- Rename dev env setup target, #944 (@arkid15r)
- Suppress warnings for tests, #945 (@arkid15r)

Version 0.19
============

Expand Down
Loading

0 comments on commit 05defee

Please sign in to comment.