timevec 0.1.7__tar.gz → 0.3.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. timevec-0.3.0/.github/workflows/gitignore-in.yml +16 -0
  2. {timevec-0.1.7 → timevec-0.3.0}/.github/workflows/happy.yml +1 -1
  3. {timevec-0.1.7 → timevec-0.3.0}/.github/workflows/pypi-publish.yml +7 -6
  4. {timevec-0.1.7 → timevec-0.3.0}/.github/workflows/python-test.yml +15 -8
  5. {timevec-0.1.7 → timevec-0.3.0}/.github/workflows/spellcheck.yml +3 -2
  6. {timevec-0.1.7 → timevec-0.3.0}/.gitignore +22 -13
  7. {timevec-0.1.7 → timevec-0.3.0}/PKG-INFO +6 -4
  8. timevec-0.3.0/poetry.lock +1135 -0
  9. {timevec-0.1.7 → timevec-0.3.0}/pyproject.toml +18 -39
  10. {timevec-0.1.7 → timevec-0.3.0}/setup.cfg +3 -2
  11. {timevec-0.1.7 → timevec-0.3.0}/tests/test_builtin_math.py +1 -1
  12. {timevec-0.1.7 → timevec-0.3.0}/tests/test_many_dates.py +20 -5
  13. {timevec-0.1.7 → timevec-0.3.0}/tests/test_numpy_datetime64.py +0 -1
  14. timevec-0.3.0/timevec/_version.py +16 -0
  15. {timevec-0.1.7 → timevec-0.3.0}/timevec/numpy_datetime64.py +2 -2
  16. {timevec-0.1.7 → timevec-0.3.0}/timevec.egg-info/PKG-INFO +6 -4
  17. {timevec-0.1.7 → timevec-0.3.0}/timevec.egg-info/SOURCES.txt +1 -1
  18. timevec-0.1.7/.flake8 +0 -2
  19. timevec-0.1.7/poetry.lock +0 -1026
  20. timevec-0.1.7/timevec/_version.py +0 -4
  21. {timevec-0.1.7 → timevec-0.3.0}/.github/renovate.json5 +0 -0
  22. {timevec-0.1.7 → timevec-0.3.0}/.gitignore.in +0 -0
  23. {timevec-0.1.7 → timevec-0.3.0}/LICENSE +0 -0
  24. {timevec-0.1.7 → timevec-0.3.0}/README.md +0 -0
  25. {timevec-0.1.7 → timevec-0.3.0}/examples/day_vec.svg +0 -0
  26. {timevec-0.1.7 → timevec-0.3.0}/examples/month_vec.svg +0 -0
  27. {timevec-0.1.7 → timevec-0.3.0}/examples/plot.py +0 -0
  28. {timevec-0.1.7 → timevec-0.3.0}/examples/week_vec.svg +0 -0
  29. {timevec-0.1.7 → timevec-0.3.0}/examples/year_vec.svg +0 -0
  30. {timevec-0.1.7 → timevec-0.3.0}/mypy.ini +0 -0
  31. {timevec-0.1.7 → timevec-0.3.0}/tests/test_numpy.py +0 -0
  32. {timevec-0.1.7 → timevec-0.3.0}/tests/test_same_result.py +0 -0
  33. {timevec-0.1.7 → timevec-0.3.0}/tests/test_util.py +0 -0
  34. {timevec-0.1.7 → timevec-0.3.0}/timevec/__init__.py +0 -0
  35. {timevec-0.1.7 → timevec-0.3.0}/timevec/builtin_math.py +0 -0
  36. {timevec-0.1.7 → timevec-0.3.0}/timevec/numpy.py +0 -0
  37. {timevec-0.1.7 → timevec-0.3.0}/timevec/py.typed +0 -0
  38. {timevec-0.1.7 → timevec-0.3.0}/timevec/util.py +0 -0
  39. {timevec-0.1.7 → timevec-0.3.0}/timevec.egg-info/dependency_links.txt +0 -0
  40. {timevec-0.1.7 → timevec-0.3.0}/timevec.egg-info/requires.txt +0 -0
  41. {timevec-0.1.7 → timevec-0.3.0}/timevec.egg-info/top_level.txt +0 -0
@@ -0,0 +1,16 @@
1
+ name: Update gitignore file
2
+
3
+ on:
4
+ schedule:
5
+ # daily at 00:00
6
+ - cron: '0 0 * * *'
7
+
8
+ permissions:
9
+ contents: write
10
+ pull-requests: write
11
+
12
+ jobs:
13
+ update-gitignore:
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - uses: gitignore-in/gh-action@v0.2.2
@@ -13,6 +13,6 @@ jobs:
13
13
  name: happy
14
14
  continue-on-error: true
15
15
  steps:
16
- - uses: kitsuyui/happy-commit@v0.8
16
+ - uses: kitsuyui/happy-commit@v0.9
17
17
  with:
18
18
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -1,7 +1,8 @@
1
1
  name: Packaging
2
2
 
3
3
  on:
4
- push:
4
+ pull_request:
5
+ types: [opened, synchronize, reopened]
5
6
  release:
6
7
  # "released" events are emitted either when directly be released or be edited from pre-released.
7
8
  types: [prereleased, released]
@@ -10,19 +11,19 @@ jobs:
10
11
  deploy:
11
12
  runs-on: ubuntu-latest
12
13
  steps:
13
- - uses: actions/checkout@v3
14
+ - uses: actions/checkout@v4
14
15
 
15
16
  - name: Set up Python
16
17
  id: setup-python
17
- uses: actions/setup-python@v4
18
+ uses: actions/setup-python@v5
18
19
  with:
19
- python-version: "3.11"
20
+ python-version: "3.13"
20
21
 
21
22
  - name: Set up poetry
22
- uses: abatilo/actions-poetry@v2
23
+ uses: abatilo/actions-poetry@v3
23
24
 
24
25
  - name: Cache
25
- uses: actions/cache@v3
26
+ uses: actions/cache@v4
26
27
  with:
27
28
  path: ~/.cache/pypoetry/virtualenvs
28
29
  key: ${{ runner.os }}-build-${{ matrix.python }}-${{ hashFiles('**/poetry.lock') }}
@@ -1,5 +1,12 @@
1
1
  name: Test
2
- on: [push]
2
+ on:
3
+ # pull-request events are not triggered when a PR is merged
4
+ # push events are not triggered when a PR created from a fork repository
5
+ # So we need both to run tests on every PR and after merging
6
+ pull_request:
7
+ push:
8
+ branches:
9
+ - main
3
10
 
4
11
  jobs:
5
12
  test:
@@ -7,22 +14,22 @@ jobs:
7
14
  strategy:
8
15
  fail-fast: false
9
16
  matrix:
10
- python: ["3.8", "3.9", "3.10", "3.11"]
17
+ python: ["3.9", "3.10", "3.11", "3.12", "3.13"]
11
18
  steps:
12
19
  - name: Checkout
13
- uses: actions/checkout@v3
20
+ uses: actions/checkout@v4
14
21
 
15
22
  - name: Set up Python
16
23
  id: setup-python
17
- uses: actions/setup-python@v4
24
+ uses: actions/setup-python@v5
18
25
  with:
19
26
  python-version: "${{ matrix.python }}"
20
27
 
21
28
  - name: Set up poetry
22
- uses: abatilo/actions-poetry@v2
29
+ uses: abatilo/actions-poetry@v3
23
30
 
24
31
  - name: Cache
25
- uses: actions/cache@v3
32
+ uses: actions/cache@v4
26
33
  with:
27
34
  path: ~/.cache/pypoetry/virtualenvs
28
35
  key: ${{ runner.os }}-build-${{ matrix.python }}-${{ hashFiles('**/poetry.lock') }}
@@ -51,8 +58,8 @@ jobs:
51
58
  run: poetry run poe coverage-xml
52
59
 
53
60
  - name: Upload coverage report to Codecov
54
- if: matrix.python == '3.11'
55
- uses: codecov/codecov-action@v3
61
+ if: matrix.python == '3.13'
62
+ uses: codecov/codecov-action@v4
56
63
  with:
57
64
  token: ${{ secrets.CODECOV_TOKEN }}
58
65
  files: ./coverage.xml
@@ -1,5 +1,6 @@
1
1
  name: Spellcheck
2
- on: [push]
2
+ on:
3
+ - pull_request
3
4
  permissions:
4
5
  contents: read
5
6
  jobs:
@@ -7,7 +8,7 @@ jobs:
7
8
  runs-on: ubuntu-latest
8
9
  steps:
9
10
  - name: Checkout
10
- uses: actions/checkout@v3
11
+ uses: actions/checkout@v4
11
12
 
12
13
  - name: Check spelling
13
14
  uses: crate-ci/typos@master
@@ -1,5 +1,13 @@
1
+ # DO NOT EDIT THIS FILE
2
+ # Generated by gitignore.in
3
+ # Edit .gitignore.in instead of this file
4
+ # Run `gitignore.in` to build .gitignore
5
+ # #!/usr/bin/env bash
6
+ # # `gibo list' and `gi list'
7
+ # -----------------------------------------------------------------------------
8
+ # gibo dump Linux
1
9
  ### Generated by gibo (https://github.com/simonwhitaker/gibo)
2
- ### https://raw.github.com/github/gitignore/e5323759e387ba347a9d50f8b0ddd16502eb71d4/Global/Linux.gitignore
10
+ ### https://raw.github.com/github/gitignore/33243d9491911332228307c915ff95707791a91f/Global/Linux.gitignore
3
11
 
4
12
  *~
5
13
 
@@ -14,10 +22,10 @@
14
22
 
15
23
  # .nfs files are created when an open file is removed but is still being accessed
16
24
  .nfs*
17
-
18
-
25
+ # -----------------------------------------------------------------------------
26
+ # gibo dump Windows
19
27
  ### Generated by gibo (https://github.com/simonwhitaker/gibo)
20
- ### https://raw.github.com/github/gitignore/e5323759e387ba347a9d50f8b0ddd16502eb71d4/Global/Windows.gitignore
28
+ ### https://raw.github.com/github/gitignore/33243d9491911332228307c915ff95707791a91f/Global/Windows.gitignore
21
29
 
22
30
  # Windows thumbnail cache files
23
31
  Thumbs.db
@@ -43,10 +51,10 @@ $RECYCLE.BIN/
43
51
 
44
52
  # Windows shortcuts
45
53
  *.lnk
46
-
47
-
54
+ # -----------------------------------------------------------------------------
55
+ # gibo dump macOS
48
56
  ### Generated by gibo (https://github.com/simonwhitaker/gibo)
49
- ### https://raw.github.com/github/gitignore/e5323759e387ba347a9d50f8b0ddd16502eb71d4/Global/macOS.gitignore
57
+ ### https://raw.github.com/github/gitignore/33243d9491911332228307c915ff95707791a91f/Global/macOS.gitignore
50
58
 
51
59
  # General
52
60
  .DS_Store
@@ -74,10 +82,10 @@ Icon
74
82
  Network Trash Folder
75
83
  Temporary Items
76
84
  .apdisk
77
-
78
-
85
+ # -----------------------------------------------------------------------------
86
+ # gibo dump Python
79
87
  ### Generated by gibo (https://github.com/simonwhitaker/gibo)
80
- ### https://raw.github.com/github/gitignore/e5323759e387ba347a9d50f8b0ddd16502eb71d4/Python.gitignore
88
+ ### https://raw.github.com/github/gitignore/33243d9491911332228307c915ff95707791a91f/Python.gitignore
81
89
 
82
90
  # Byte-compiled / optimized / DLL files
83
91
  __pycache__/
@@ -187,8 +195,10 @@ ipython_config.py
187
195
  #pdm.lock
188
196
  # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
189
197
  # in version control.
190
- # https://pdm.fming.dev/#use-with-ide
198
+ # https://pdm.fming.dev/latest/usage/project/#working-with-version-control
191
199
  .pdm.toml
200
+ .pdm-python
201
+ .pdm-build/
192
202
 
193
203
  # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
194
204
  __pypackages__/
@@ -239,6 +249,5 @@ cython_debug/
239
249
  # and can be added to the global gitignore or merged into this file. For a more nuclear
240
250
  # option (not recommended) you can uncomment the following to ignore the entire idea folder.
241
251
  #.idea/
242
-
243
-
252
+ # -----------------------------------------------------------------------------
244
253
  timevec/_version.py
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: timevec
3
- Version: 0.1.7
3
+ Version: 0.3.0
4
4
  Summary: Get some usable vector representations of datetime
5
5
  Home-page: https://github.com/kitsuyui/python-timevec
6
6
  Author: Yui Kitsu
@@ -8,18 +8,20 @@ Author-email: kitsuyui+github@kitsuyui.com
8
8
  License: BSD-3-Clause
9
9
  Classifier: Development Status :: 3 - Alpha
10
10
  Classifier: License :: OSI Approved :: BSD License
11
- Classifier: Programming Language :: Python :: 3.8
12
11
  Classifier: Programming Language :: Python :: 3.9
13
12
  Classifier: Programming Language :: Python :: 3.10
14
13
  Classifier: Programming Language :: Python :: 3.11
14
+ Classifier: Programming Language :: Python :: 3.12
15
+ Classifier: Programming Language :: Python :: 3.13
15
16
  Classifier: Intended Audience :: Developers
16
17
  Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
17
18
  Classifier: Topic :: Software Development :: Libraries
18
19
  Classifier: Typing :: Typed
19
- Requires-Python: >=3.8
20
+ Requires-Python: >=3.9
20
21
  Description-Content-Type: text/markdown
21
- Provides-Extra: numpy
22
22
  License-File: LICENSE
23
+ Provides-Extra: numpy
24
+ Requires-Dist: numpy; extra == "numpy"
23
25
 
24
26
  # timevec
25
27