Commit Graph

9 Commits

Author SHA1 Message Date
Takashi Kajinami 3f37303231 Modernize python versions
The versions listed in setup.cfg are quite old. Also fix the broken
unit tests and add the appropriate job template.

Depends-on: https://review.opendev.org/c/openstack/project-config/+/909494
Change-Id: Ifca330011b49af8a92bcf222760dd7fe0c873d30
2024-02-20 13:55:11 +09:00
John L. Villalovos 23cff676d1 Manual sync to global-requirements
Update requirements.txt and test-requirements.txt to correspond with
what is in openstack/requirements global-requirements.txt

Change-Id: Ib624d339bdb979e87f98bb02000e33bd9cce9601
2016-08-23 16:37:12 -07:00
Andreas Jaeger 0559b4c660 Remove argparse from requirements
argparse was external in python 2.6 but not anymore, remove it from
requirements.

This should help with pip 8.0 that gets confused in this situation.
Installation of the external argparse is not needed.

Change-Id: Ib7e74912b36c1b5ccb514e31fac35efeff57378d
2016-01-20 19:31:59 +01:00
Thierry Carrez 8bc6cf87c5 Add ability to generate a meeting index
Adding optional parameters -t and -w used to generate an index of
meetings using a Jinja2 template.

Refactor output file/dir preparation so that index generation can make
use of it.

Expose UTC time in the Schedule object and human-friendly description of
the recurrence in the Recurrence objects, so that they are directly
usable in the templates.

Change-Id: I103ac552f43a02a0b6e2e3ad6e5f52a6877efa68
2015-02-27 16:08:24 +01:00
Longgeek c4d0f8e576 Bump minimum pbr version to 0.6
Matches Global Requirements.In the gerrit-powered-agenda project pbr version does
not match the global requirements.

Change-Id: I10f44cd4d8b80b3d1d8666440fbbff191d678766
2014-06-27 22:51:15 +08:00
Mathew Odden edd18b7bf6 Fix missing runtime pbr requirement
Guess this is needed in requirements.txt after
all, since we depend on it for runtime version
determination.

Change-Id: I15512ce84f667abbf7b56cb1503db388995bc733
2014-05-30 17:18:39 -05:00
Mathew Odden 1462d82787 Remove pbr from requirements.txt
We already get this from setup.py requires.

Change-Id: I3e8f85efb2c73028d3df26674911a0db09f1daed
2014-05-30 16:22:42 -05:00
Josh Tan e6ec82a4c9 Add support for command-line arguments and options
Previously, the YAML and iCal directories needed to be specified in
const.py. The locations specified in const.py have been modified to
represent the default locations, if no command-line options are
provided to override them.

In addition, parameters have provided to execute the script in one of
two modes:

  * To execute the script in Jenkins test job mode, the -t/--test
    parameters can be used. Valid values include 'check', 'gate',
    and 'post'.

  * To execute the script in YAML-iCal conversion mode, the
    -c/--convert parameter can be used. This can be combined with
    the -m/--meetings parameter, to specify a list of meetings
    to process. The meeting list file should contain the filenames
    of meetings that correspond to meeting files in the YAML
    directory, and should be separated by newlines.

Support for command line options was implemented using the argparse
module. This module has been added to requirements.txt.

Change-Id: I9e5e8f123d7a28997cbd8eb8e67b246d68c97260
2014-05-04 19:03:33 -05:00
Josh Tan 8451dcbbc7 Make code PEP8-compliant and add PEP8 test files
In order to run PEP8-compliance tests using PBR, the setup.py, setup.cfg,
requirements.txt, and tox.ini files must exist in the base directory of
this project. These files have been created and specified accordingly.

The specific environments to be tested using tox are specified in
requirements.txt and include the py33 and pep8 environments. Package
requirements are specified in requirements.txt and include pyyaml and
icalendar. Additional package requirements for testing are specified in
test-requirements.txt and include pbr and hacking.

Existing Python source code has been modified to pass PEP8-compliance
checks. This included adding docstrings and limiting line length.

Lastly, the README file has been renamed and files have been added
for the project license and manifest.

Change-Id: I51a50d64c579212c5c7fa756bb1d34e774666be9
2014-04-03 18:50:40 -05:00