Giter VIP home page Giter VIP logo

calendra's People

Contributors

ajcobo avatar atj01 avatar attilajuhaszhc avatar borfast avatar brunobord avatar brutasse avatar bswck avatar cwittlinger avatar eumiro avatar flix6x avatar fvlima avatar gregn610 avatar hugovk avatar iamsk avatar jack-pace avatar janmalte avatar jaraco avatar kidkarolis avatar ludodedo avatar luismalta avatar macharmi avatar micodls avatar mountinash789 avatar qtheuret avatar roxel avatar shaheedhaque avatar spalac24 avatar tinogis avatar uvchik avatar webknjaz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

calendra's Issues

New collaborator and cut release for v7.0.0

@ShaheedHaque, I've invited you as a collaborator on this project. With the integrated CI, and with the changelog up-to-date, all that's needed to cut a release is to tag it (i.e. git tag -a -m "" v7.0.0). Would you care to do the honors?

Although you don't need access to PyPI in order to cut releases, I'd also like to grant you maintainer access there as well in case a manual release is needed and to reduce the bus factor on the project. Just let me know your userid there.

TypeError in version resolution

When calendra is a zip package, calendra.__package__ resolves to None on Python 3.4 (and probably earlier Pythons), causing the package to be entirely broken, as any import of calendra fails with:

/.eggs/calendra-1.7-py3.4.egg/calendra/__init__.py:6: in <module>
    ???
/usr/local/lib/python3.4/dist-packages/pkg_resources/__init__.py:553: in get_distribution
    raise TypeError("Expected string, Requirement, or Distribution", dist)
E   TypeError: ('Expected string, Requirement, or Distribution', None)

Finnish fixed holidays are moved to the next monday if they occur on the weekend

I'm using calendra 1.1.3 on Python 2.7.8. I'm using the Finnish holiday calendar and have noticed a problem with it.

When using the Finnish calendar, fixed holidays that occur on a weekend are moved to the next working day. Example, the Finnish Independence Day that is the 6th of December:

In [3]: holiday_calendar.is_observed_holiday(date(2014, 12, 8))                                                       
Out[3]: True

In [4]: holiday_calendar.is_observed_holiday(date(2014, 12, 6))                                                       
Out[4]: False

In [7]: holiday_calendar.get_observed_date(date(2014, 12, 6))                                                         
Out[7]: datetime.date(2014, 12, 8)

This also happens with the Labour Day (1st of May). But in Finland the day off is not transferred to the next monday if the day occurs on the weekend. I can't find a source on it though, but you can check other calendars such as http://www.timeanddate.com/holidays/finland/.

This issue can be fixed by setting an observance_shift = dict() for the Finnish calendar, though I arrived at the value of dict() just by random testing (I don't know the format) and I don't know if it has any adverse effects.

Resync with upstream v16.1?

Is there a plan to release something synced to up[stream v16.1.0 (2021-10-01)? I am specifically interested in the UK holiday changes please...

Bosnia

Hello, I'm writing to request the addition of the calendra support for Bosnia and Herzegovina.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.