Skip to content

Commit c2640ce

Browse files
committed
remove dateutils from setup and requirements
add start of DatabaseNotes
1 parent cac539c commit c2640ce

File tree

5 files changed

+62
-49
lines changed

5 files changed

+62
-49
lines changed

doc/DatabaseNotes.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Database Notes
2+
==============
3+
4+
Supported Databases:
5+
* sqlite/Spatialite
6+
* Postgres
7+
* MySql
8+
* MsSql
9+
10+
Generic Instructions:
11+
=====================
12+
# create database from Schema in ODM2 https://github.com/ODM2/ODM2/tree/master/src
13+
# determine appropriate connection string
14+
# populate database using the load_cv.py toolkit
15+
# Use YODA Tools.

doc/MySql.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
MySql Notes:
2+
=========
3+
On Linux, you are required to use { lower_case_table_names=1 }. It is suggested that databases should use this setting.
4+
5+
Connection String
6+
=================
7+
8+
Create DB
9+
=========
10+
11+
Populate with CV
12+
===============
13+
14+
15+
Linux Troubleshooting Notes
16+
===========================
17+
On Linux, you are required to use { lower_case_table_names=1 }.
18+
to see if this is set type:
19+
mysql --verbose -e "show variables like 'lower%';" --user=root
20+
--------------
21+
show variables like 'lower%'
22+
--------------
23+
+------------------------+-------+
24+
| Variable_name | Value |
25+
+------------------------+-------+
26+
| lower_case_file_system | OFF |
27+
| lower_case_table_names | 1 |
28+
+------------------------+-------+
29+
30+
If not you can install this line in $HOME/.my.cnf, /etc/my.cnf, or /etc/mysql/my.cnf
31+
32+
[mysqld]
33+
lower-case-table-names = 1
34+
35+
to see what files are being used by mysql:
36+
> strace mysql 2>&1 | grep cnf
37+
38+
stat("/etc/my.cnf", 0x7ffef7c8dca0) = -1 ENOENT (No such file or directory)
39+
stat("/etc/mysql/my.cnf", {st_mode=S_IFREG|0644, st_size=5232, ...}) = 0
40+
open("/etc/mysql/my.cnf", O_RDONLY|O_CLOEXEC) = 3
41+
stat("/etc/mysql/conf.d/mariadb.cnf", {st_mode=S_IFREG|0644, st_size=435, ...}) = 0
42+
open("/etc/mysql/conf.d/mariadb.cnf", O_RDONLY|O_CLOEXEC) = 4
43+
stat("/etc/mysql/conf.d/mysqld_safe_syslog.cnf", {st_mode=S_IFREG|0644, st_size=36, ...}) = 0
44+
open("/etc/mysql/conf.d/mysqld_safe_syslog.cnf", O_RDONLY|O_CLOEXEC) = 4
45+
stat("/etc/mysql/conf.d/tokudb.cnf", {st_mode=S_IFREG|0644, st_size=285, ...}) = 0
46+
open("/etc/mysql/conf.d/tokudb.cnf", O_RDONLY|O_CLOEXEC) = 4
47+
stat("/home/travis/.my.cnf", 0x7ffef7c8dca0) = -1 ENOENT (No such file or directory)

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ sqlalchemy
55
-e git+https://github.com/ODM2/geoalchemy.git@odm2#egg=geoalchemy-0.7.3
66
#https://github.com/ODM2/geoalchemy/archive/v0.7.3.tar.gz
77
shapely
8-
dateutils
98
pandas
109
#psycopg2 # Commented out because I could not pip install it.
1110
#matplotlib

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@
9494
'sqlalchemy',
9595
'geoalchemy>=0.7.3',
9696
'shapely',
97-
'dateutils',
9897
'pandas',
9998
],
10099
# dependency_links- geoalchemy from the ODM repository

tests/test_odm1/test_odmservices/test_edit_service._1_1py

Lines changed: 0 additions & 47 deletions
This file was deleted.

0 commit comments

Comments
 (0)