Commit Graph
6677 Commits
Author SHA1 Message Date
Athanasius 2b957d140c EDDNSender: convert_legacy_file() belongs with "open the database" 2022-11-22 14:02:10 +00:00
Athanasius 0e20f4bc00 EDDNSender: Remove legacy file after migration 2022-11-22 14:02:09 +00:00
Athanasius f3017d40ec EDDNSender: Fill out type hints 2022-11-22 14:02:08 +00:00
Athanasius 51fb90b999 EDDN: Change EDDN.close() to call into EDDNSender.close() 2022-11-22 14:02:07 +00:00
Athanasius c1793ad839 EDDN: Remove EDDN->flush() 2022-11-22 14:02:06 +00:00
Athanasius 09f646a249 EDDNSender: Add delete_message() method
This was tested by temporary code in `convert_legacy_file()` to delete
the last added row once all done.
2022-11-22 14:02:06 +00:00
Athanasius 86ff787aed EDDNSender: Convert all of a legacy file
* I had a `break` in there to only convert the first message.
* Also collapsed the assignment to `cmdr, msg` to not go via `j`.
2022-11-22 14:02:05 +00:00
Athanasius 089c33002c EDDNSender->add_message() returns ID of INSERTed row 2022-11-22 14:02:04 +00:00
Athanasius 80129361fe EDDN: Refactor queue db open/creation to own function 2022-11-22 14:02:03 +00:00
Athanasius 9a660b3b49 EDDN: New class as EDDNSender now, and version the queue database file
* It makes more sense for this new class to be concerned with all the 'send it'
  functionality, not just 'replay', so rename it.
* Athough we're trying to get the schema right *first* time, let's plan ahead
  and version the filename in case of needing to migrations in the future.
2022-11-22 14:02:02 +00:00
Athanasius 424d5f023c EDDNReplay.add_message() is now functional
And that includes the code to handle legacy `replay.json` messages.
2022-11-22 14:02:01 +00:00
Athanasius 03e432034f EDDN: Moving replay functionality into its own class 2022-11-22 14:02:00 +00:00
Athanasius 072eadd893 EDDN: messages.id AUTOINCREMENT, and index created & cmdr
We'll definitely want to query against `cmdr`, and possibly `created`.

We shouldn't need to against other fields, they'll just be checked during
processing of an already selected message.
2022-11-22 14:01:59 +00:00
Athanasius 9faae8b9bc EDDN: Open & create sqlite3 db for replay
* sqlite3 open, and creation of table.
* Change `load_journal_replay()` to `load_journal_replay_file()` and change
  the semantics to just return the `list[str]` loaded from it.  It also now
  catches no exceptions.
* Remove the "lock the journal cache" on init as it's not necessary.

There's still a lot more changes to come on this.
2022-11-22 14:01:58 +00:00
Athanasius 4c3ea5fd27 Merge pull request #1706 from EDCD/dependabot/pip/develop/setuptools-65.6.0
build(deps-dev): bump setuptools from 65.5.1 to 65.6.0
2022-11-22 12:17:44 +00:00
Athanasius c9edfe358b Merge pull request #1707 from EDCD/dependabot/pip/develop/flake8-isort-5.0.3
build(deps-dev): bump flake8-isort from 5.0.0 to 5.0.3
2022-11-22 12:17:34 +00:00
Athanasius c3e3e6a0d0 Merge pull request #1702 from EDCD/dependabot/pip/develop/types-requests-2.28.11.5
build(deps-dev): bump types-requests from 2.28.11.2 to 2.28.11.5
2022-11-22 12:17:20 +00:00
dependabot[bot] 3ce5418bc2 build(deps-dev): bump flake8-isort from 5.0.0 to 5.0.3
Bumps [flake8-isort](https://github.com/gforcada/flake8-isort) from 5.0.0 to 5.0.3.
- [Release notes](https://github.com/gforcada/flake8-isort/releases)
- [Changelog](https://github.com/gforcada/flake8-isort/blob/master/CHANGES.rst)
- [Commits](https://github.com/gforcada/flake8-isort/compare/5.0.0...5.0.3)

---
updated-dependencies:
- dependency-name: flake8-isort
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-21 17:04:33 +00:00
dependabot[bot] 4f0a6ee12d build(deps-dev): bump setuptools from 65.5.1 to 65.6.0
Bumps [setuptools](https://github.com/pypa/setuptools) from 65.5.1 to 65.6.0.
- [Release notes](https://github.com/pypa/setuptools/releases)
- [Changelog](https://github.com/pypa/setuptools/blob/main/CHANGES.rst)
- [Commits](https://github.com/pypa/setuptools/compare/v65.5.1...v65.6.0)

---
updated-dependencies:
- dependency-name: setuptools
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-21 17:04:28 +00:00
dependabot[bot] 8e7724d7ca build(deps-dev): bump types-requests from 2.28.11.2 to 2.28.11.5
Bumps [types-requests](https://github.com/python/typeshed) from 2.28.11.2 to 2.28.11.5.
- [Release notes](https://github.com/python/typeshed/releases)
- [Commits](https://github.com/python/typeshed/commits)

---
updated-dependencies:
- dependency-name: types-requests
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-17 17:02:56 +00:00
Athanasius b15d90e844 Merge pull request #1700 from EDCD/dependabot/pip/develop/py2exe-0.13.0.0
build(deps-dev): bump py2exe from 0.12.0.2 to 0.13.0.0
2022-11-17 15:15:18 +00:00
Athanasius 6042a989ef Merge pull request #1697 from EDCD/dependabot/pip/develop/setuptools-65.5.1
build(deps-dev): bump setuptools from 65.5.0 to 65.5.1
2022-11-17 15:13:17 +00:00
Athanasius b45fb9c91f Merge pull request #1698 from EDCD/dependabot/pip/develop/pywin32-305
build(deps-dev): bump pywin32 from 304 to 305
2022-11-17 15:11:24 +00:00
Athanasius 2c438b4105 Merge pull request #1701 from EDCD/dependabot/pip/develop/mypy-0.991
build(deps-dev): bump mypy from 0.982 to 0.991
2022-11-17 15:09:42 +00:00
Athanasius 84813a799e Merge pull request #1695 from EDCD/dependabot/pip/develop/flake8-comprehensions-3.10.1
build(deps-dev): bump flake8-comprehensions from 3.10.0 to 3.10.1
2022-11-17 15:09:28 +00:00
Athanasius 04f49dad4f pre-commit: Update flake8 repo URL
We're using our local version *anyway*, but update this in case we decide
to switch.
2022-11-15 10:22:36 +00:00
dependabot[bot] c5a1ee648f build(deps-dev): bump mypy from 0.982 to 0.991
Bumps [mypy](https://github.com/python/mypy) from 0.982 to 0.991.
- [Release notes](https://github.com/python/mypy/releases)
- [Commits](https://github.com/python/mypy/compare/v0.982...v0.991)

---
updated-dependencies:
- dependency-name: mypy
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-14 17:01:23 +00:00
dependabot[bot] 6d298ae626 build(deps-dev): bump py2exe from 0.12.0.2 to 0.13.0.0
Bumps [py2exe](https://github.com/py2exe/py2exe) from 0.12.0.2 to 0.13.0.0.
- [Release notes](https://github.com/py2exe/py2exe/releases)
- [Changelog](https://github.com/py2exe/py2exe/blob/master/ChangeLog)
- [Commits](https://github.com/py2exe/py2exe/compare/v0.12.0.2...v0.13.0.0)

---
updated-dependencies:
- dependency-name: py2exe
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-08 17:01:02 +00:00
dependabot[bot] 11316c8647 build(deps-dev): bump pywin32 from 304 to 305
Bumps [pywin32](https://github.com/mhammond/pywin32) from 304 to 305.
- [Release notes](https://github.com/mhammond/pywin32/releases)
- [Changelog](https://github.com/mhammond/pywin32/blob/main/CHANGES.txt)
- [Commits](https://github.com/mhammond/pywin32/commits)

---
updated-dependencies:
- dependency-name: pywin32
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-08 17:00:49 +00:00
dependabot[bot] e177e73f67 build(deps-dev): bump setuptools from 65.5.0 to 65.5.1
Bumps [setuptools](https://github.com/pypa/setuptools) from 65.5.0 to 65.5.1.
- [Release notes](https://github.com/pypa/setuptools/releases)
- [Changelog](https://github.com/pypa/setuptools/blob/main/CHANGES.rst)
- [Commits](https://github.com/pypa/setuptools/compare/v65.5.0...v65.5.1)

---
updated-dependencies:
- dependency-name: setuptools
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-08 17:00:46 +00:00
dependabot[bot] a607d45fa3 build(deps-dev): bump flake8-comprehensions from 3.10.0 to 3.10.1
Bumps [flake8-comprehensions](https://github.com/adamchainz/flake8-comprehensions) from 3.10.0 to 3.10.1.
- [Release notes](https://github.com/adamchainz/flake8-comprehensions/releases)
- [Changelog](https://github.com/adamchainz/flake8-comprehensions/blob/main/HISTORY.rst)
- [Commits](https://github.com/adamchainz/flake8-comprehensions/compare/3.10.0...3.10.1)

---
updated-dependencies:
- dependency-name: flake8-comprehensions
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-31 17:05:11 +00:00
Athanasius c15eaaeb71 Merge pull request #1692 from EDCD/dependabot/pip/develop/py2exe-0.12.0.2
build(deps-dev): bump py2exe from 0.12.0.1 to 0.12.0.2
2022-10-29 16:13:29 +01:00
Athanasius e3620dd88e Merge pull request #1694 from EDCD/dependabot/pip/develop/autopep8-2.0.0
build(deps-dev): bump autopep8 from 1.7.0 to 2.0.0
2022-10-29 16:08:07 +01:00
dependabot[bot] 9a209c33ec build(deps-dev): bump autopep8 from 1.7.0 to 2.0.0
Bumps [autopep8](https://github.com/hhatto/autopep8) from 1.7.0 to 2.0.0.
- [Release notes](https://github.com/hhatto/autopep8/releases)
- [Commits](https://github.com/hhatto/autopep8/compare/v1.7.0...v2.0.0)

---
updated-dependencies:
- dependency-name: autopep8
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-29 15:05:59 +00:00
Athanasius 0aa74b8755 tests: journal: Change py LocalPath type to be _pytest.tmpdir.TempPathFactory
This is more correct, and means we don't need the `py` module, which wasn't
in requirements-dev.txt, causing GitHub workflow `pytest` runs to fail.
2022-10-29 16:01:39 +01:00
dependabot[bot] efaa648b3e build(deps-dev): bump py2exe from 0.12.0.1 to 0.12.0.2
Bumps [py2exe](https://github.com/py2exe/py2exe) from 0.12.0.1 to 0.12.0.2.
- [Release notes](https://github.com/py2exe/py2exe/releases)
- [Changelog](https://github.com/py2exe/py2exe/blob/master/ChangeLog)
- [Commits](https://github.com/py2exe/py2exe/compare/v0.12.0.1...v0.12.0.2)

---
updated-dependencies:
- dependency-name: py2exe
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-27 17:04:39 +00:00
Athanasius 05a4922219 Merge pull request #1690 from EDCD/dependabot/pip/develop/pytest-7.2.0
build(deps-dev): bump pytest from 7.1.3 to 7.2.0
2022-10-25 18:07:14 +01:00
dependabot[bot] b8471ab545 build(deps-dev): bump pytest from 7.1.3 to 7.2.0
Bumps [pytest](https://github.com/pytest-dev/pytest) from 7.1.3 to 7.2.0.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/7.1.3...7.2.0)

---
updated-dependencies:
- dependency-name: pytest
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-25 17:05:09 +00:00
Athanasius d386e6d62c Merge pull request #1688 from EDCD/dependabot/pip/develop/setuptools-65.5.0
build(deps-dev): bump setuptools from 65.4.1 to 65.5.0
2022-10-18 14:31:02 +01:00
Athanasius 6f5e7aa8bc python: Bump to version 3.10.8 2022-10-18 14:27:33 +01:00
dependabot[bot] be2b47d4fa build(deps-dev): bump setuptools from 65.4.1 to 65.5.0
Bumps [setuptools](https://github.com/pypa/setuptools) from 65.4.1 to 65.5.0.
- [Release notes](https://github.com/pypa/setuptools/releases)
- [Changelog](https://github.com/pypa/setuptools/blob/main/CHANGES.rst)
- [Commits](https://github.com/pypa/setuptools/compare/v65.4.1...v65.5.0)

---
updated-dependencies:
- dependency-name: setuptools
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-14 17:03:09 +00:00
Athanasius 8d5b283a8c Merge pull request #1687 from EDCD/dependabot/pip/develop/flake8-isort-5.0.0
build(deps-dev): bump flake8-isort from 4.2.0 to 5.0.0
2022-10-11 10:53:35 +01:00
dependabot[bot] c8cd02e47e build(deps-dev): bump flake8-isort from 4.2.0 to 5.0.0
Bumps [flake8-isort](https://github.com/gforcada/flake8-isort) from 4.2.0 to 5.0.0.
- [Release notes](https://github.com/gforcada/flake8-isort/releases)
- [Changelog](https://github.com/gforcada/flake8-isort/blob/master/CHANGES.rst)
- [Commits](https://github.com/gforcada/flake8-isort/compare/4.2.0...5.0.0)

---
updated-dependencies:
- dependency-name: flake8-isort
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-10 17:06:35 +00:00
Athanasius 33ec37f8e1 Merge pull request #1686 from EDCD/dependabot/pip/develop/types-requests-2.28.11.2
build(deps-dev): bump types-requests from 2.28.11.1 to 2.28.11.2
2022-10-10 11:04:22 +01:00
dependabot[bot] 0abecba136 build(deps-dev): bump types-requests from 2.28.11.1 to 2.28.11.2
Bumps [types-requests](https://github.com/python/typeshed) from 2.28.11.1 to 2.28.11.2.
- [Release notes](https://github.com/python/typeshed/releases)
- [Commits](https://github.com/python/typeshed/commits)

---
updated-dependencies:
- dependency-name: types-requests
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-10 10:02:54 +00:00
Athanasius e62768ac35 Merge pull request #1685 from EDCD/dependabot/pip/develop/safety-2.3.1
build(deps-dev): bump safety from 2.2.1 to 2.3.1
2022-10-10 11:02:26 +01:00
dependabot[bot] ac55aca3e7 build(deps-dev): bump safety from 2.2.1 to 2.3.1
Bumps [safety](https://github.com/pyupio/safety) from 2.2.1 to 2.3.1.
- [Release notes](https://github.com/pyupio/safety/releases)
- [Changelog](https://github.com/pyupio/safety/blob/main/CHANGELOG.md)
- [Commits](https://github.com/pyupio/safety/compare/2.2.1...2.3.1)

---
updated-dependencies:
- dependency-name: safety
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-06 17:05:02 +00:00
Athanasius 06c60b8d5f Merge pull request #1683 from EDCD/dependabot/pip/develop/safety-2.2.1
build(deps-dev): bump safety from 2.2.0 to 2.2.1
2022-10-05 18:12:45 +01:00
dependabot[bot] 7c80b9adc6 build(deps-dev): bump safety from 2.2.0 to 2.2.1
Bumps [safety](https://github.com/pyupio/safety) from 2.2.0 to 2.2.1.
- [Release notes](https://github.com/pyupio/safety/releases)
- [Changelog](https://github.com/pyupio/safety/blob/main/CHANGELOG.md)
- [Commits](https://github.com/pyupio/safety/compare/2.2.0...2.2.1)

---
updated-dependencies:
- dependency-name: safety
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-05 17:11:42 +00:00
Athanasius e84bee0cb4 Merge pull request #1681 from EDCD/dependabot/pip/develop/types-requests-2.28.11.1
build(deps-dev): bump types-requests from 2.28.11 to 2.28.11.1
2022-10-04 19:57:32 +01:00