myldapsync 1.0.3__tar.gz → 1.0.5__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.
Potentially problematic release.
This version of myldapsync might be problematic. Click here for more details.
- myldapsync-1.0.5/PKG-INFO +75 -0
- {myldapsync-1.0.3 → myldapsync-1.0.5}/README.md +1 -1
- {myldapsync-1.0.3 → myldapsync-1.0.5}/myldapsync/__init__.py +2 -0
- {myldapsync-1.0.3 → myldapsync-1.0.5}/myldapsync/config.ini.example +4 -3
- {myldapsync-1.0.3 → myldapsync-1.0.5}/myldapsync/myutils/users.py +4 -4
- myldapsync-1.0.5/myldapsync.egg-info/PKG-INFO +75 -0
- {myldapsync-1.0.3 → myldapsync-1.0.5}/myldapsync.egg-info/entry_points.txt +1 -0
- {myldapsync-1.0.3 → myldapsync-1.0.5}/setup.py +2 -1
- myldapsync-1.0.3/PKG-INFO +0 -77
- myldapsync-1.0.3/myldapsync.egg-info/PKG-INFO +0 -77
- {myldapsync-1.0.3 → myldapsync-1.0.5}/LICENSE +0 -0
- {myldapsync-1.0.3 → myldapsync-1.0.5}/MANIFEST.in +0 -0
- {myldapsync-1.0.3 → myldapsync-1.0.5}/myldapsync/config_default.ini +0 -0
- {myldapsync-1.0.3 → myldapsync-1.0.5}/myldapsync/ldaputils/__init__.py +0 -0
- {myldapsync-1.0.3 → myldapsync-1.0.5}/myldapsync/ldaputils/connection.py +0 -0
- {myldapsync-1.0.3 → myldapsync-1.0.5}/myldapsync/ldaputils/users.py +0 -0
- {myldapsync-1.0.3 → myldapsync-1.0.5}/myldapsync/myutils/__init__.py +0 -0
- {myldapsync-1.0.3 → myldapsync-1.0.5}/myldapsync.egg-info/SOURCES.txt +0 -0
- {myldapsync-1.0.3 → myldapsync-1.0.5}/myldapsync.egg-info/dependency_links.txt +0 -0
- {myldapsync-1.0.3 → myldapsync-1.0.5}/myldapsync.egg-info/requires.txt +0 -0
- {myldapsync-1.0.3 → myldapsync-1.0.5}/myldapsync.egg-info/top_level.txt +0 -0
- {myldapsync-1.0.3 → myldapsync-1.0.5}/requirements.txt +0 -0
- {myldapsync-1.0.3 → myldapsync-1.0.5}/setup.cfg +0 -0
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: myldapsync
|
|
3
|
+
Version: 1.0.5
|
|
4
|
+
Summary: Synchronise LDAP users to MySQL and MariaDB
|
|
5
|
+
Home-page: https://github.com/6eh01der/myldapsync
|
|
6
|
+
Author: Artur Lebedev
|
|
7
|
+
Author-email: ras_atari@mail.ru
|
|
8
|
+
License: MySQL
|
|
9
|
+
Description: # myldapsync - fork of [pgldapsync](https://github.com/EnterpriseDB/pgldapsync) by [EnterpriseDB Corporation](https://www.enterprisedb.com/) adopted for MySQL and MariaDB
|
|
10
|
+
|
|
11
|
+
This Python module allows you to synchronise MySQL or MariaDB users
|
|
12
|
+
with users in an LDAP directory.
|
|
13
|
+
|
|
14
|
+
Require MySQL 8 with installed and configured simple or sasl LDAP Authentication Plugin or PAM plugin (pam also supported in MySQL 5.7 and MariaDB).
|
|
15
|
+
|
|
16
|
+
Percona Server for MySQL:
|
|
17
|
+
|
|
18
|
+
https://docs.percona.com/percona-server/8.0/ldap-authentication
|
|
19
|
+
|
|
20
|
+
https://docs.percona.com/percona-server/8.0/pam-plugin.html
|
|
21
|
+
|
|
22
|
+
MySQL:
|
|
23
|
+
|
|
24
|
+
https://dev.mysql.com/doc/refman/8.0/en/ldap-pluggable-authentication.html
|
|
25
|
+
|
|
26
|
+
https://dev.mysql.com/doc/refman/8.0/en/pam-pluggable-authentication.html
|
|
27
|
+
|
|
28
|
+
MariaDB:
|
|
29
|
+
|
|
30
|
+
https://mariadb.com/kb/en/authentication-plugin-pam/
|
|
31
|
+
|
|
32
|
+
*myldapsync is supported on Python 3.8 or later.*
|
|
33
|
+
|
|
34
|
+
In order to use it, you will need to create a _config.ini_
|
|
35
|
+
file containing the site-specific configuration you require.
|
|
36
|
+
See _config.ini.example_ for a complete list of all the
|
|
37
|
+
available configuration options. This file should be copied to
|
|
38
|
+
create your own configuration.
|
|
39
|
+
|
|
40
|
+
Once configured, simply run myldapsync like so:
|
|
41
|
+
|
|
42
|
+
python3 myldapsync.py /path/to/config.ini
|
|
43
|
+
|
|
44
|
+
In order to test the configuration (and dump the SQL that would
|
|
45
|
+
be executed to stdout), run it like this:
|
|
46
|
+
|
|
47
|
+
python3 myldapsync.py --dry-run /path/to/config.ini
|
|
48
|
+
|
|
49
|
+
## Creating a virtual environment for dev/test
|
|
50
|
+
|
|
51
|
+
python3 -m venv /path/to/myldapsync
|
|
52
|
+
source /path/to/myldapsync/bin/activate
|
|
53
|
+
pip install -r requirements.txt
|
|
54
|
+
|
|
55
|
+
Adapt the first command as required for your environment/Python
|
|
56
|
+
version.
|
|
57
|
+
|
|
58
|
+
## Creating a package
|
|
59
|
+
|
|
60
|
+
To create a package (wheel), run the following in your virtual
|
|
61
|
+
environment:
|
|
62
|
+
|
|
63
|
+
python3 setup.py sdist bdist_wheel
|
|
64
|
+
|
|
65
|
+
Platform: UNKNOWN
|
|
66
|
+
Classifier: Programming Language :: Python :: 3
|
|
67
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
68
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
69
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
70
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
71
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
72
|
+
Classifier: License :: OSI Approved :: GNU General Public License (GPL)
|
|
73
|
+
Classifier: Operating System :: OS Independent
|
|
74
|
+
Requires-Python: >=3.8
|
|
75
|
+
Description-Content-Type: text/markdown
|
|
@@ -234,6 +234,8 @@ def main():
|
|
|
234
234
|
cur.execute('%s' % privilege_list)
|
|
235
235
|
cur.execute('%s' % user_grants)
|
|
236
236
|
cur.execute('%s' % user_admin_grants)
|
|
237
|
+
if (filter_string := config.get('mysql', 'filter_string')) == '(objectClass=group)':
|
|
238
|
+
cur.execute('GRANT PROXY ON "%s" TO ''@'';' % user_name)
|
|
237
239
|
users_added = users_added + 1
|
|
238
240
|
except mysql.connector.Error as exception:
|
|
239
241
|
sys.stderr.write("Error creating user %s: %s" % (user,
|
|
@@ -41,15 +41,16 @@ search_scope = LEVEL
|
|
|
41
41
|
base_dn = CN=Users,dc=example,dc=com
|
|
42
42
|
|
|
43
43
|
# Filter string for the user search. For OpenLDAP, '(cn=*)' may well be enough.
|
|
44
|
-
# For AD, you might use '(objectClass=user)' (REQUIRED)
|
|
44
|
+
# For AD, you might use '(objectClass=user)' for users or '(objectClass=group)' for groups (REQUIRED)
|
|
45
45
|
filter_string = (objectClass=user)
|
|
46
46
|
|
|
47
47
|
# The base DN for the admin user search. This may be the same as the base_dn, or
|
|
48
48
|
# may point to an alternate OU. If empty, no search will be performed.
|
|
49
49
|
admin_base_dn = CN=Users,dc=example,dc=com
|
|
50
50
|
|
|
51
|
-
# The filter string for users that should
|
|
52
|
-
#
|
|
51
|
+
# The filter string for users that should have with "WITH ADMIN OPTION" and "WITH GRANT OPTION"
|
|
52
|
+
# for roles and privileges.
|
|
53
|
+
# With AD you might use a filter
|
|
53
54
|
# such as: (&(objectClass=user)(memberof=CN=MYGROUP,CN=Users,dc=example,dc=com))
|
|
54
55
|
# If, for example on OpenLDAP, your admin users are members of an alternate OU,
|
|
55
56
|
# then a filter of (cn=*) may suffice.
|
|
@@ -68,13 +68,13 @@ def get_filtered_my_users(config, conn):
|
|
|
68
68
|
return users
|
|
69
69
|
|
|
70
70
|
|
|
71
|
-
def get_user_privileges(config, user,
|
|
71
|
+
def get_user_privileges(config, user, with_grant=False):
|
|
72
72
|
"""Generate a list of user privileges to use when creating users
|
|
73
73
|
|
|
74
74
|
Args:
|
|
75
75
|
config (ConfigParser): The application configuration
|
|
76
76
|
user (str): The user name to be granted privileges
|
|
77
|
-
|
|
77
|
+
with_grant (bool): Generate a list of privileges that will have the WITH
|
|
78
78
|
GRANT OPTION specified, if True
|
|
79
79
|
Returns:
|
|
80
80
|
str: A SQL snippet listing the user privileges
|
|
@@ -88,7 +88,7 @@ def get_user_privileges(config, user, with_admin=False):
|
|
|
88
88
|
else:
|
|
89
89
|
database = '*'
|
|
90
90
|
|
|
91
|
-
if config.getboolean('general', 'user_privilege_all') or
|
|
91
|
+
if config.getboolean('general', 'user_privilege_all') or with_grant:
|
|
92
92
|
privilege_list = privilege_list + 'ALL' + ', '
|
|
93
93
|
else:
|
|
94
94
|
if config.getboolean('general', 'user_privilege_create'):
|
|
@@ -132,7 +132,7 @@ def get_user_privileges(config, user, with_admin=False):
|
|
|
132
132
|
|
|
133
133
|
if privilege_list != '':
|
|
134
134
|
sql = 'GRANT %s ON %s.* TO "%s"' % (privilege_list, database, user)
|
|
135
|
-
if
|
|
135
|
+
if with_grant:
|
|
136
136
|
sql = sql + " WITH GRANT OPTION"
|
|
137
137
|
sql = sql + ';'
|
|
138
138
|
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: myldapsync
|
|
3
|
+
Version: 1.0.5
|
|
4
|
+
Summary: Synchronise LDAP users to MySQL and MariaDB
|
|
5
|
+
Home-page: https://github.com/6eh01der/myldapsync
|
|
6
|
+
Author: Artur Lebedev
|
|
7
|
+
Author-email: ras_atari@mail.ru
|
|
8
|
+
License: MySQL
|
|
9
|
+
Description: # myldapsync - fork of [pgldapsync](https://github.com/EnterpriseDB/pgldapsync) by [EnterpriseDB Corporation](https://www.enterprisedb.com/) adopted for MySQL and MariaDB
|
|
10
|
+
|
|
11
|
+
This Python module allows you to synchronise MySQL or MariaDB users
|
|
12
|
+
with users in an LDAP directory.
|
|
13
|
+
|
|
14
|
+
Require MySQL 8 with installed and configured simple or sasl LDAP Authentication Plugin or PAM plugin (pam also supported in MySQL 5.7 and MariaDB).
|
|
15
|
+
|
|
16
|
+
Percona Server for MySQL:
|
|
17
|
+
|
|
18
|
+
https://docs.percona.com/percona-server/8.0/ldap-authentication
|
|
19
|
+
|
|
20
|
+
https://docs.percona.com/percona-server/8.0/pam-plugin.html
|
|
21
|
+
|
|
22
|
+
MySQL:
|
|
23
|
+
|
|
24
|
+
https://dev.mysql.com/doc/refman/8.0/en/ldap-pluggable-authentication.html
|
|
25
|
+
|
|
26
|
+
https://dev.mysql.com/doc/refman/8.0/en/pam-pluggable-authentication.html
|
|
27
|
+
|
|
28
|
+
MariaDB:
|
|
29
|
+
|
|
30
|
+
https://mariadb.com/kb/en/authentication-plugin-pam/
|
|
31
|
+
|
|
32
|
+
*myldapsync is supported on Python 3.8 or later.*
|
|
33
|
+
|
|
34
|
+
In order to use it, you will need to create a _config.ini_
|
|
35
|
+
file containing the site-specific configuration you require.
|
|
36
|
+
See _config.ini.example_ for a complete list of all the
|
|
37
|
+
available configuration options. This file should be copied to
|
|
38
|
+
create your own configuration.
|
|
39
|
+
|
|
40
|
+
Once configured, simply run myldapsync like so:
|
|
41
|
+
|
|
42
|
+
python3 myldapsync.py /path/to/config.ini
|
|
43
|
+
|
|
44
|
+
In order to test the configuration (and dump the SQL that would
|
|
45
|
+
be executed to stdout), run it like this:
|
|
46
|
+
|
|
47
|
+
python3 myldapsync.py --dry-run /path/to/config.ini
|
|
48
|
+
|
|
49
|
+
## Creating a virtual environment for dev/test
|
|
50
|
+
|
|
51
|
+
python3 -m venv /path/to/myldapsync
|
|
52
|
+
source /path/to/myldapsync/bin/activate
|
|
53
|
+
pip install -r requirements.txt
|
|
54
|
+
|
|
55
|
+
Adapt the first command as required for your environment/Python
|
|
56
|
+
version.
|
|
57
|
+
|
|
58
|
+
## Creating a package
|
|
59
|
+
|
|
60
|
+
To create a package (wheel), run the following in your virtual
|
|
61
|
+
environment:
|
|
62
|
+
|
|
63
|
+
python3 setup.py sdist bdist_wheel
|
|
64
|
+
|
|
65
|
+
Platform: UNKNOWN
|
|
66
|
+
Classifier: Programming Language :: Python :: 3
|
|
67
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
68
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
69
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
70
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
71
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
72
|
+
Classifier: License :: OSI Approved :: GNU General Public License (GPL)
|
|
73
|
+
Classifier: Operating System :: OS Independent
|
|
74
|
+
Requires-Python: >=3.8
|
|
75
|
+
Description-Content-Type: text/markdown
|
|
@@ -19,7 +19,7 @@ with open('README.md', 'r', encoding='utf-8') as fh:
|
|
|
19
19
|
|
|
20
20
|
setuptools.setup(
|
|
21
21
|
name="myldapsync",
|
|
22
|
-
version="1.0.
|
|
22
|
+
version="1.0.5",
|
|
23
23
|
author="Artur Lebedev",
|
|
24
24
|
author_email="ras_atari@mail.ru",
|
|
25
25
|
description="Synchronise LDAP users to MySQL and MariaDB",
|
|
@@ -36,6 +36,7 @@ setuptools.setup(
|
|
|
36
36
|
'Programming Language :: Python :: 3.9',
|
|
37
37
|
'Programming Language :: Python :: 3.10',
|
|
38
38
|
'Programming Language :: Python :: 3.11',
|
|
39
|
+
'Programming Language :: Python :: 3.12',
|
|
39
40
|
"License :: OSI Approved :: GNU General Public License (GPL)",
|
|
40
41
|
"Operating System :: OS Independent",
|
|
41
42
|
],
|
myldapsync-1.0.3/PKG-INFO
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: myldapsync
|
|
3
|
-
Version: 1.0.3
|
|
4
|
-
Summary: Synchronise LDAP users to MySQL and MariaDB
|
|
5
|
-
Home-page: https://github.com/6eh01der/myldapsync
|
|
6
|
-
Author: Artur Lebedev
|
|
7
|
-
Author-email: ras_atari@mail.ru
|
|
8
|
-
License: MySQL
|
|
9
|
-
Classifier: Programming Language :: Python :: 3
|
|
10
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
11
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
12
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
13
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
14
|
-
Classifier: License :: OSI Approved :: GNU General Public License (GPL)
|
|
15
|
-
Classifier: Operating System :: OS Independent
|
|
16
|
-
Requires-Python: >=3.8
|
|
17
|
-
Description-Content-Type: text/markdown
|
|
18
|
-
License-File: LICENSE
|
|
19
|
-
Requires-Dist: ldap3>=2.9.1
|
|
20
|
-
Requires-Dist: mysql-connector-python>=8.0.31
|
|
21
|
-
Requires-Dist: pyasn1>=0.4.8
|
|
22
|
-
|
|
23
|
-
# myldapsync - fork of [pgldapsync](https://github.com/EnterpriseDB/pgldapsync) by [EnterpriseDB Corporation](https://www.enterprisedb.com/) adopted for MySQL and MariaDB
|
|
24
|
-
|
|
25
|
-
This Python module allows you to synchronise MySQL or MariaDB users
|
|
26
|
-
with users in an LDAP directory.
|
|
27
|
-
|
|
28
|
-
Require MySQL 8 with installed and configured simple or sasl LDAP Authentication Plugin or PAM plugin (pam also supported in MySQL 5.7 and MariaDB).
|
|
29
|
-
|
|
30
|
-
Percona Server for MySQL:
|
|
31
|
-
|
|
32
|
-
https://docs.percona.com/percona-server/8.0/ldap-authentication
|
|
33
|
-
|
|
34
|
-
https://docs.percona.com/percona-server/8.0/pam-plugin.html
|
|
35
|
-
|
|
36
|
-
MySQL:
|
|
37
|
-
|
|
38
|
-
https://dev.mysql.com/doc/refman/8.0/en/ldap-pluggable-authentication.html
|
|
39
|
-
|
|
40
|
-
https://dev.mysql.com/doc/refman/8.0/en/pam-pluggable-authentication.html
|
|
41
|
-
|
|
42
|
-
MariaDB:
|
|
43
|
-
|
|
44
|
-
https://mariadb.com/kb/en/authentication-plugin-pam/
|
|
45
|
-
|
|
46
|
-
*myldapsync is supported on Python 3.8 or later.*
|
|
47
|
-
|
|
48
|
-
In order to use it, you will need to create a _config.ini_
|
|
49
|
-
file containing the site-specific configuration you require.
|
|
50
|
-
See _config.ini.example_ for a complete list of all the
|
|
51
|
-
available configuration options. This file should be copied to
|
|
52
|
-
create your own configuration.
|
|
53
|
-
|
|
54
|
-
Once configured, simply run myldapsync like so:
|
|
55
|
-
|
|
56
|
-
python3 myldapsync.py /path/to/config.ini
|
|
57
|
-
|
|
58
|
-
In order to test the configuration (and dump the SQL that would
|
|
59
|
-
be executed to stdout), run it like this:
|
|
60
|
-
|
|
61
|
-
python3 myldapsync.py --dry-run /path/to/config.ini
|
|
62
|
-
|
|
63
|
-
## Creating a virtual environment for dev/test
|
|
64
|
-
|
|
65
|
-
python3 -m venv /path/to/myldapsync
|
|
66
|
-
source /path/to/myldapsync/bin/activate
|
|
67
|
-
pip install -r requirements.txt
|
|
68
|
-
|
|
69
|
-
Adapt the first command as required for your environment/Python
|
|
70
|
-
version.
|
|
71
|
-
|
|
72
|
-
## Creating a package
|
|
73
|
-
|
|
74
|
-
To create a package (wheel), run the following in your virtual
|
|
75
|
-
environment:
|
|
76
|
-
|
|
77
|
-
python3 setup.py sdist bdist_wheel --universal
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: myldapsync
|
|
3
|
-
Version: 1.0.3
|
|
4
|
-
Summary: Synchronise LDAP users to MySQL and MariaDB
|
|
5
|
-
Home-page: https://github.com/6eh01der/myldapsync
|
|
6
|
-
Author: Artur Lebedev
|
|
7
|
-
Author-email: ras_atari@mail.ru
|
|
8
|
-
License: MySQL
|
|
9
|
-
Classifier: Programming Language :: Python :: 3
|
|
10
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
11
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
12
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
13
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
14
|
-
Classifier: License :: OSI Approved :: GNU General Public License (GPL)
|
|
15
|
-
Classifier: Operating System :: OS Independent
|
|
16
|
-
Requires-Python: >=3.8
|
|
17
|
-
Description-Content-Type: text/markdown
|
|
18
|
-
License-File: LICENSE
|
|
19
|
-
Requires-Dist: ldap3>=2.9.1
|
|
20
|
-
Requires-Dist: mysql-connector-python>=8.0.31
|
|
21
|
-
Requires-Dist: pyasn1>=0.4.8
|
|
22
|
-
|
|
23
|
-
# myldapsync - fork of [pgldapsync](https://github.com/EnterpriseDB/pgldapsync) by [EnterpriseDB Corporation](https://www.enterprisedb.com/) adopted for MySQL and MariaDB
|
|
24
|
-
|
|
25
|
-
This Python module allows you to synchronise MySQL or MariaDB users
|
|
26
|
-
with users in an LDAP directory.
|
|
27
|
-
|
|
28
|
-
Require MySQL 8 with installed and configured simple or sasl LDAP Authentication Plugin or PAM plugin (pam also supported in MySQL 5.7 and MariaDB).
|
|
29
|
-
|
|
30
|
-
Percona Server for MySQL:
|
|
31
|
-
|
|
32
|
-
https://docs.percona.com/percona-server/8.0/ldap-authentication
|
|
33
|
-
|
|
34
|
-
https://docs.percona.com/percona-server/8.0/pam-plugin.html
|
|
35
|
-
|
|
36
|
-
MySQL:
|
|
37
|
-
|
|
38
|
-
https://dev.mysql.com/doc/refman/8.0/en/ldap-pluggable-authentication.html
|
|
39
|
-
|
|
40
|
-
https://dev.mysql.com/doc/refman/8.0/en/pam-pluggable-authentication.html
|
|
41
|
-
|
|
42
|
-
MariaDB:
|
|
43
|
-
|
|
44
|
-
https://mariadb.com/kb/en/authentication-plugin-pam/
|
|
45
|
-
|
|
46
|
-
*myldapsync is supported on Python 3.8 or later.*
|
|
47
|
-
|
|
48
|
-
In order to use it, you will need to create a _config.ini_
|
|
49
|
-
file containing the site-specific configuration you require.
|
|
50
|
-
See _config.ini.example_ for a complete list of all the
|
|
51
|
-
available configuration options. This file should be copied to
|
|
52
|
-
create your own configuration.
|
|
53
|
-
|
|
54
|
-
Once configured, simply run myldapsync like so:
|
|
55
|
-
|
|
56
|
-
python3 myldapsync.py /path/to/config.ini
|
|
57
|
-
|
|
58
|
-
In order to test the configuration (and dump the SQL that would
|
|
59
|
-
be executed to stdout), run it like this:
|
|
60
|
-
|
|
61
|
-
python3 myldapsync.py --dry-run /path/to/config.ini
|
|
62
|
-
|
|
63
|
-
## Creating a virtual environment for dev/test
|
|
64
|
-
|
|
65
|
-
python3 -m venv /path/to/myldapsync
|
|
66
|
-
source /path/to/myldapsync/bin/activate
|
|
67
|
-
pip install -r requirements.txt
|
|
68
|
-
|
|
69
|
-
Adapt the first command as required for your environment/Python
|
|
70
|
-
version.
|
|
71
|
-
|
|
72
|
-
## Creating a package
|
|
73
|
-
|
|
74
|
-
To create a package (wheel), run the following in your virtual
|
|
75
|
-
environment:
|
|
76
|
-
|
|
77
|
-
python3 setup.py sdist bdist_wheel --universal
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|