Commit Graph

16 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
xhzhf 17fc96295b H803 hacking have been deprecated
H803 hacking have been removed since hacking 0.10.
https://github.com/openstack-dev/hacking/blob/master/setup.cfg.
Closes-Bug: #1651709

Change-Id: I306242f4e01e895c9aa53eb32e8a06a9447e1fb0
2020-02-13 10:48:15 +00:00
Sean McGinnis a63d1c5e12
Add DTSTAMP and UID values to meeting instances
The iCalendar spec expects a meeting vEvent to include a datetime stamp
and a unique ID for each instance. This adds these values to the
generated output.

Minor cleanup also included since I was touching code around them and
noticed little nits.

Change-Id: I4753571850665a2f28a6799b84ead4c31a275cc7
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2019-06-27 10:30:08 -05:00
Doug Hellmann 913f2d8b37 update the versions of python 3 claimed
We're running at least 3.5 in CI, so start there.

Update tox to set the environments from newest to oldest to avoid
issues with the dbm format selected for the .testrepository database
generated by the tests, to allow it to work for all tox environments
on a local system.

Change-Id: I7cde15039f782bba69ed9e0e44b08e289148019e
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-11-02 13:57:38 -04:00
qingszhao 816a1e4815 fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: I87982923ab6ecda0673008070da6880536783b40
2018-06-12 01:24:30 +08:00
Thierry Carrez 923218b121 Use yaml2ical as CLI, clean up useless const.py
Declare a yaml2ical entry point to replace convert.py.

Clean up the useless const.py and move the only remaining constant to
meeting.py.

Change-Id: I6204aa2c9d96640e50167a9df78686a1cd25e9ec
2015-01-16 17:39:03 +01:00
Thierry Carrez 15d58bbb6d Rename 'arbiter' module to 'yaml2ical'
We'll need to upload this module to PyPI in order to properly integrate
with the OpenStack Infrastructure. Unfortunately, there is already a
module there going by the 'arbiter' name. This switches the module name
to 'yaml2ical', which is not sounding nice, but at least is functionally
correct.

The git repository itself shall be renamed once this is merged.

Change-Id: I896bcbe7be8c6a017015b428c6ff0d39a4974a04
2014-11-21 18:03:14 +01:00
Jenkins ea74452f52 Merge "Ignore H803 for flake8" 2014-10-16 15:34:59 +00:00
Lance Bragstad b854ac4ef2 Ignore H803 for flake8
Change-Id: I10f116f708b9ae115f4099c6b5df8c975c92cb3a
2014-10-16 15:06:16 +00:00
Thierry Carrez a7b57f0790 Support running on py34 environment
Add py34 as supported env. This simplifies testing on systems that are
no longer shipping python 3.3 (think: Ubuntu 14.04 LTS)

Change-Id: Iaac78ef4f40ee564496e731d616e261d2464d8b8
2014-10-15 12:07:42 +02:00
Lance Bragstad 7824569b7c Add biweekly meeting support
This commit allows for convert.py to generate .ics files on an
alternating schedule. This is denoted using alternating schedule
templates in the meeting yaml.

Added a meeting that has a biweekly schedule to test with.

Change-Id: I814eff00695a4925f9ebd6778392cfe78a0cf7b9
2014-10-05 04:07:47 +00:00
Lance Bragstad d95624ed79 Rename files accordingly
The jobs.py module didn't really make sense named the way it was since
the jobs are to be handled by Jenkins. This change renames files
accordingly.

Change-Id: Iaf54202dd0369e41686d134b4b723d4bccef8e54
2014-10-04 05:49:01 +00:00
Lance Bragstad ed99e524a8 Refactor Meeting init and enable unit tests
Previously, there were two load_meetings() methods. One was in util.py
and one was a member of the Meeting object. This commit combines the two
and makes it general enough for both cases.

Update tox.ini as well as .testr.conf so that we can run some basic unit
tests. An initial test has been added so there is something to run.

Change-Id: I44fd693f1a4c0a0efcf99d935123108f22afea36
2014-06-30 16:39:07 +00:00
Mathew Odden d5e980a5f7 Add mkical tox environment for ease of use
Generating the ical files from YAML requires
runtime dependencies to test, which we can easily get
with a tox environment. This makes it easier to test
the current state of the project with a single command.

Change-Id: I6583613aa89e766da5cd0d2824741c89e74c558c
2014-05-30 16:41:44 -05:00
Mathew Odden 520e0dc808 Update tox.ini settings
Pull in minversion for tox and update the
default environments to run

Change-Id: Ia577d175eceb6c67402f50f7f6cc26f5c6b3bf30
2014-05-30 14:47:55 -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