Skip to content

Commit 55decae

Browse files
author
David Erb
committed
adds mysql support
2 parents 91ac055 + 48b658b commit 55decae

34 files changed

+952
-132
lines changed

.dae-devops/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# ********** Please don't edit this file!
2-
# ********** It has been generated automatically by dae_devops version 0.5.2.
2+
# ********** It has been generated automatically by dae_devops version 0.5.3.
33
# ********** For repository_name dls-normsql
44

55
# ---------------------------------------------------------------------
@@ -69,4 +69,4 @@ publish_docs:
6969
cp -r build/html/* $(DOCS_PUBLISH_ROOT)
7070

7171

72-
# dae_devops_fingerprint 3f13d455c444ad39930aabfc68547c2c
72+
# dae_devops_fingerprint 62bfff1938ace30f8cb33ab30b9c60d5

.dae-devops/docs/conventions.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.. # ********** Please don't edit this file!
2-
.. # ********** It has been generated automatically by dae_devops version 0.5.2.
2+
.. # ********** It has been generated automatically by dae_devops version 0.5.3.
33
.. # ********** For repository_name dls-normsql
44
55
Naming conventions
@@ -31,4 +31,4 @@ repository
3131
lowercase, hyphens
3232

3333

34-
.. # dae_devops_fingerprint 81e582297295ea8d1145aeb4fb60ffef
34+
.. # dae_devops_fingerprint 8a72a4d0ee07d38513ef1273e9f9682e

.dae-devops/docs/developing.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.. # ********** Please don't edit this file!
2-
.. # ********** It has been generated automatically by dae_devops version 0.5.2.
2+
.. # ********** It has been generated automatically by dae_devops version 0.5.3.
33
.. # ********** For repository_name dls-normsql
44
55
Developing
@@ -22,7 +22,6 @@ Make sure to have at least python version 3.9 then::
2222
Install the package in edit mode which will also install all its dependencies::
2323

2424
$ cd dls-normsql
25-
$ export PIP_FIND_LINKS=/dls_sw/apps/bxflow/artifacts
2625
$ pip install -e .[dev]
2726

2827
Now you may begin modifying the code.
@@ -36,4 +35,4 @@ If you plan to modify the docs, you will need to::
3635
3736

3837

39-
.. # dae_devops_fingerprint 550d6069746935ee4e08d958dd046fa2
38+
.. # dae_devops_fingerprint 7b83e003f8bbbf54c27b4bd8141fb0e5

.dae-devops/docs/devops.rst

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
11
.. # ********** Please don't edit this file!
2-
.. # ********** It has been generated automatically by dae_devops version 0.5.2.
2+
.. # ********** It has been generated automatically by dae_devops version 0.5.3.
33
.. # ********** For repository_name dls-normsql
44
55
Devops
66
=======================================================================
77

8-
There exists a a configuration file called ``.dae-devops/project.yaml``.
8+
In the top level of the repository there exists a configuration file called ``.dae-devops/project.yaml``.
99

1010
This file defines the project information needed for CI/CD.
1111

1212
It is parsed by the ``dae_devops.force`` command which creates these files:
1313

1414
- pyproject.toml
15+
- .githib/*
1516
- .gitlab-ci.yml
1617
- .dae-devops/Makefile
1718
- .dae-devops/docs/*
1819

1920
Local CI/CD execution
20-
-----------------------------------------------------------------------
21+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2122

2223
All the CI/CD ops which are run by the git server can be run at the command line.
2324

@@ -32,15 +33,15 @@ Validation of the code::
3233
$ make -f .dae-devops/Makefile validate_pytest
3334
$ make -f .dae-devops/Makefile validate_docs
3435

35-
Packaging::
36+
Packaging (for the Diamond intranet)::
3637

3738
$ make -f .dae-devops/Makefile package_pip
3839

39-
Publishing::
40+
Publishing (for the Diamond intranet)::
4041

4142
$ make -f .dae-devops/Makefile publish_pip
4243
$ make -f .dae-devops/Makefile publish_docs
4344
45+
The Diamond intranet commands are not used for production. The production packaging and publishing are handled in the GitHub Actions workflows mechanism.
4446

45-
46-
.. # dae_devops_fingerprint 35ea37a143cb4560425194afc2bad8ed
47+
.. # dae_devops_fingerprint d9ee7cc6b002b3508a4e55f96193c35e

.dae-devops/docs/docs_structure.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.. # ********** Please don't edit this file!
2-
.. # ********** It has been generated automatically by dae_devops version 0.5.2.
2+
.. # ********** It has been generated automatically by dae_devops version 0.5.3.
33
.. # ********** For repository_name dls-normsql
44
55
About the documentation
@@ -21,4 +21,4 @@ improve most documentation - often immensely.
2121

2222
`More information on this topic. <https://documentation.divio.com>`_
2323

24-
.. # dae_devops_fingerprint 68095839584c6e3455c1bd06350312f4
24+
.. # dae_devops_fingerprint eda941e8a0c3d217a601fb11b90f639b

.dae-devops/docs/installing.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.. # ********** Please don't edit this file!
2-
.. # ********** It has been generated automatically by dae_devops version 0.5.2.
2+
.. # ********** It has been generated automatically by dae_devops version 0.5.3.
33
.. # ********** For repository_name dls-normsql
44
55
Installing
@@ -26,18 +26,17 @@ installation will not interfere with any existing Python software::
2626

2727
You can now use ``pip`` to install the library and its dependencies::
2828

29-
$ export PIP_FIND_LINKS=/dls_sw/apps/bxflow/artifacts
3029
$ python3 -m pip install dls-normsql
3130

3231
If you require a feature that is not currently released you can also install
3332
from git::
3433

3534
$ python3 -m pip install git+https://gitlab.diamond.ac.uk/kbp43231/dls-normsql.git
3635

37-
The library should now be installed and the commandline interface on your path.
36+
The library should now be installed and the commandline should be available.
3837
You can check the version that has been installed by typing::
3938

4039
$ dls-normsql --version
4140
$ dls-normsql --version-json
4241

43-
.. # dae_devops_fingerprint f0f3fa3bcf53a551add4ee39538eb44a
42+
.. # dae_devops_fingerprint a2fe8dfbc79c151a5b899b244a529aa6

.dae-devops/docs/testing.rst

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.. # ********** Please don't edit this file!
2-
.. # ********** It has been generated automatically by dae_devops version 0.5.2.
2+
.. # ********** It has been generated automatically by dae_devops version 0.5.3.
33
.. # ********** For repository_name dls-normsql
44
55
Testing
@@ -11,17 +11,13 @@ If you want to run the tests, first get a copy of the code per the instructions
1111

1212
Then you can run all tests by::
1313

14-
$ pytest
15-
16-
Or this, which is the command used by the CI runner.
17-
18-
$ make -f .dae-devops/Makefile validate_pytest
14+
$ tox -q -e pytest
1915

2016
To run a single test you can do::
2117

2218
$ pytest tests/the_test_you_want.py
2319

24-
If you want to see more output of the test while it's running you can do:
20+
If you want to see more output of the test while it's running you can do::
2521

2622
$ pytest -sv -ra --tb=line tests/the_test_you_want.py
2723

@@ -35,4 +31,4 @@ This allows peeking in there to see what's been written by the test.
3531

3632

3733

38-
.. # dae_devops_fingerprint 16abfa1d4f582c07e1ea9281771b8f4f
34+
.. # dae_devops_fingerprint 1801aaf6bd998d192c9fb4cdd6c3e79f

.dae-devops/prepare_git_dependencies.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22

33
# ********** Please don't edit this file!
4-
# ********** It has been generated automatically by dae_devops version 0.5.2.
4+
# ********** It has been generated automatically by dae_devops version 0.5.3.
55
# ********** For repository_name dls-normsql
66

77
me=${BASH_SOURCE}
@@ -13,4 +13,4 @@ function __install {
1313
}
1414

1515

16-
# dae_devops_fingerprint d2a7e27cfad2e9f2547dc2b0da58fdd1
16+
# dae_devops_fingerprint b7ad9765b7da993eecef6a4ce23802c2

.dae-devops/project.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,8 @@ primary:
1313
dependencies:
1414
- type: pypi
1515
list:
16-
- aiosqlite
1716
- dls-utilpack
17+
- aiosqlite
18+
- aiomysql
19+
# cryptography package is required for aiomysql sha256_password or caching_sha2_password auth methods
20+
- cryptography

.devcontainer/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# ********** Please don't edit this file!
2-
# ********** It has been generated automatically by dae_devops version 0.5.2.
2+
# ********** It has been generated automatically by dae_devops version 0.5.3.
33
# ********** For repository_name dls-normsql
44

55
# This file is for use as a devcontainer and a runtime container
@@ -40,4 +40,4 @@ ENV PATH=/venv/bin:$PATH
4040
ENTRYPOINT ["dls-normsql"]
4141
CMD ["--version"]
4242

43-
# dae_devops_fingerprint 41ae7527130d2727aa06cd91ff8e5702
43+
# dae_devops_fingerprint a5c05253a7982ce4ee2e60abd1a254f0

0 commit comments

Comments
 (0)