Skip to content

Commit

Permalink
Makefile settings, custom targets, prepare for pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
rnixx committed Nov 20, 2024
1 parent 58d1620 commit 27a6aa9
Show file tree
Hide file tree
Showing 16 changed files with 91 additions and 376 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Tests

on: [push]

jobs:
build:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
python:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "3.13"

steps:
- uses: actions/checkout@v3

- name: Run Tests
run: make test
18 changes: 7 additions & 11 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
*.egg-info/
*.pyc
/.installed.cfg
/.mr.developer.cfg
/.mxmake/
/bin/
/constraints-mxdev.txt
/coverage/
/develop-eggs/
/devsrc/
/dist/
/eggs/
/include/
/lib/
/local/
/parts/
/pyvenv.cfg
/share/
/src/cone.ldap.egg-info/
/openldap/
/requirements-mxdev.txt
/sources/
/venv/
46 changes: 0 additions & 46 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ License
=======

Copyright (c) 2019-2021, BlueDynamics Alliance, Austria
Copyright (c) 2021-2022, Cone Contributors
Copyright (c) 2021-2024, Cone Contributors
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
14 changes: 7 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ PYTHON_MIN_VERSION?=3.9
# `VENV_ENABLED` and uv is selected, uv is used to create the virtual
# environment.
# Default: pip
PYTHON_PACKAGE_INSTALLER?=pip
PYTHON_PACKAGE_INSTALLER?=uv

# Flag whether to use a global installed 'uv' or install
# it in the virtual environment.
Expand All @@ -103,7 +103,7 @@ VENV_CREATE?=true
# `VENV_CREATE` is false it is expected to point to an existing virtual
# environment. If `VENV_ENABLED` is `false` it is ignored.
# Default: .venv
VENV_FOLDER?=.venv
VENV_FOLDER?=venv

# mxdev to install in virtual environment.
# Default: mxdev
Expand Down Expand Up @@ -171,25 +171,25 @@ ZEST_RELEASER_FULLRELEASE_OPTIONS?=

# Path of directory containing the message catalogs.
# Default: locale
GETTEXT_LOCALES_PATH?=locale
GETTEXT_LOCALES_PATH?=src/cone/ldap/locale

# Translation domain to use.
# No default value.
GETTEXT_DOMAIN?=
GETTEXT_DOMAIN?=cone.ldap

# Space separated list of language identifiers.
# No default value.
GETTEXT_LANGUAGES?=
GETTEXT_LANGUAGES?=en de

## i18n.lingua

# Path of directory to extract translatable texts from.
# Default: src
LINGUA_SEARCH_PATH?=src
LINGUA_SEARCH_PATH?=src/cone/ldap

# Python packages containing lingua extensions.
# No default value.
LINGUA_PLUGINS?=
LINGUA_PLUGINS?=yafowil.lingua

# Command line options passed to `pot-create`
# No default value.
Expand Down
16 changes: 7 additions & 9 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@
:target: https://pypi.python.org/pypi/cone.ldap
:alt: Number of PyPI downloads

.. image:: https://travis-ci.org/bluedynamics/cone.ldap.svg?branch=master
:target: https://travis-ci.org/bluedynamics/cone.ldap

.. image:: https://coveralls.io/repos/github/bluedynamics/cone.ldap/badge.svg?branch=master
:target: https://coveralls.io/github/bluedynamics/cone.ldap?branch=master
.. image:: https://github.com/conestack/cone.ldap/actions/workflows/test.yml/badge.svg
:target: https://github.com/conestack/cone.ldap/actions/workflows/test.yml
:alt: Test cone.ldap

Plugin for `cone.app <http://packages.python.org/cone.app>`_ providing LDAP
integration.
Expand Down Expand Up @@ -46,24 +44,24 @@ On debian based systems install:
Installation
------------

``cone.ldap`` contains a buildout configuration. Download or checkout package
``cone.ldap`` contains a Makefile. Download or checkout package
and run:

.. code-block:: shell
cone.ldap$ ./bootstrap.sh python3
cone.ldap$ make install
Start Test LDAP server with appropriate LDIF layer:

.. code-block:: shell
cone.ldap$ ./bin/testldap start groupOfNames_10_10
cone.ldap$ make start-ldap-gon-10-10
Start the application:

.. code-block:: shell
cone.ldap$ ./bin/pserve cfg/gon_10_10/ldap_gon_10_10.ini
cone.ldap$ make run-gon-10-10
and browse ``http://localhost:8081/``. Default ``admin`` user password is
``admin``.
Expand Down
15 changes: 0 additions & 15 deletions bootstrap.sh

This file was deleted.

35 changes: 0 additions & 35 deletions buildout.cfg

This file was deleted.

81 changes: 0 additions & 81 deletions etc/base.cfg

This file was deleted.

45 changes: 0 additions & 45 deletions etc/ldap.cfg

This file was deleted.

7 changes: 0 additions & 7 deletions etc/versions.cfg

This file was deleted.

Loading

0 comments on commit 27a6aa9

Please sign in to comment.