Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V3.0.2 RC #50

Merged
merged 13 commits into from
Aug 27, 2024
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
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: install requirements for python3
run: pip3 install -r requirements-3.txt
run: pip3 install -r requirements.txt
- name: package and upload python3
env:
TWINE_USERNAME: __token__
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: print python version
run: python3 --version
- name: install requirements
run: pip3 install -r requirements-3.txt
run: pip3 install -r requirements.txt
- name: run the tests
run: python3 tests.py
- name: verify type hints
Expand Down
15 changes: 13 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@ 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.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [3.0.2] - 2024-08-27
### added
- Feat: Complete typing with strict type-checking [#43](https://github.com/nickmaccarthy/python-datemath/pull/43) Thank you @Avasam!

### fixed
- Fix: removed legacy-tests.py since we no longer support python2.x
- Fix: removed requirements-2.txt from manifest due to deprecation of python2 support
- Fix: renamed requirements-3.txt to requirements.txt to support python3 going forward
- also modifed to `release.yaml` and `tests.yaml` workflows to support this
- Fix: long_description should now show up in pypi https://github.com/nickmaccarthy/python-datemath/issues/33

## [3.0.1] - 2024-08-23
### fixed
- Fix: Race condition in timezone tests: https://github.com/nickmaccarthy/python-datemath/issues/36
Expand Down Expand Up @@ -41,14 +52,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### fixed
- FIX: [Issue #21](https://github.com/nickmaccarthy/python-datemath/issues/21) - Fixed an issue where if timezone offset was in a datetime string (ISO8601), the timezone of the returned datemath object would be UTC and not the timezone as specified in the datetime string.

## 1.5.1 (2020-03-25)
## [1.5.1] - 2020-03-25

### fixed
- FIX: [Issue #15](https://github.com/nickmaccarthy/python-datemath/issues/15) - Fixed issue with parser finding invalid timeunits and throwing correct errors
### added
- Feat: [Issue #16](https://github.com/nickmaccarthy/python-datemath/issues/16) - Added support for parser to accecpt a epoch/unix timestamp but throw an error on epoch milli's since arrow can't support that.

## 1.5.0 - 2019-11-09
## [1.5.0] - 2019-11-09

### fixed
- [Issue #12](https://github.com/nickmaccarthy/python-datemath/issues/12) - missing VERSION.txt. Added MANIFEST.in for sdist build
Expand Down
1 change: 0 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ include VERSION.txt
include README.md
include CHANGELOG.md
include LICENSE
include requirements-2.txt
include requirements-3.txt
2 changes: 1 addition & 1 deletion VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.0.1
3.0.2
11 changes: 6 additions & 5 deletions requirements-3.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,27 @@ chardet==3.0.4
clint==0.5.1
docutils==0.15.2
freezegun==1.2.2
idna==2.7
idna==3.7
linecache2==1.0.0
mypy==1.7.1
packaging==16.8
pkginfo==1.4.2
Pygments==2.7.4
Pygments==2.15.0
pyparsing==2.2.0
python-dateutil==2.8.2
pytz==2023.3
readme-renderer==24.0
requests==2.20.0
requests==2.32.2
requests-toolbelt==0.9.1
six==1.10.0
tqdm==4.36.1
tqdm==4.66.3
traceback2==1.4.0
twine==2.0.0
types-python-dateutil==2.8.19.20240311
types-setuptools==73.0.0.20240822
types-pytz==2023.3.1.1
typing_extensions==4.7.1
tzdata==2024.1
urllib3==1.24.3
urllib3==1.26.19
webencodings==0.5.1

32 changes: 32 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
appdirs==1.4.3
args==0.1.0
arrow==1.2.3
bleach==3.3.0
certifi==2024.7.4
chardet==3.0.4
clint==0.5.1
docutils==0.15.2
freezegun==1.2.2
idna==3.7
linecache2==1.0.0
mypy==1.7.1
packaging==16.8
pkginfo==1.4.2
Pygments==2.15.0
pyparsing==2.2.0
python-dateutil==2.8.2
pytz==2023.3
readme-renderer==24.0
requests==2.32.2
requests-toolbelt==0.9.1
six==1.10.0
tqdm==4.66.3
traceback2==1.4.0
twine==2.0.0
types-python-dateutil==2.8.19.20240311
types-setuptools==73.0.0.20240822
types-pytz==2023.3.1.1
typing_extensions==4.7.1
tzdata==2024.1
urllib3==1.26.19
webencodings==0.5.1
8 changes: 7 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
[metadata]
description-file = ./README.md
name = python-datemath
description = "A python module to emulate the date math used in SOLR and Elasticsearch"
long_description = file: README.md
long_description_content_type = text/markdown
author = Nick MacCarthy
author_email = nickmaccarthy@gmail.com


[bdist_wheel]
universal=1
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@

description='A python module to emulate the date math used in SOLR and Elasticsearch',

long_description=long_description,
long_description_content_type='text/markdown',

# The project's main homepage.
url='https://github.com/nickmaccarthy/python-datemath',

Expand All @@ -48,7 +51,7 @@
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
'Development Status :: 4 - Beta',
'Development Status :: 5 - Production/Stable',

# Indicate who your project is intended for
'Intended Audience :: Developers',
Expand Down
128 changes: 0 additions & 128 deletions tests-legacy.py

This file was deleted.

Loading