source: OpenWorkouts-current/setup.py @ 31adfa5

currentfeature/docs
Last change on this file since 31adfa5 was 31adfa5, checked in by borja <borja@…>, 5 years ago

(#14) Timezones support:

  • Added pytz as a new dependency, please install it in your existing envs:

pip install pytz

  • Added a timezone attribute to users, to store in which timezone they are, defaults to 'UTC'. Ensure any users you could have in your database have such attribute. You can add it in pshell:

for user in root.users:

user.timezone = 'UTC'

request.tm.commit()

  • Modified schemas/templates/views to let users choose their timezone based on a list of "common" timezones provided by pytz
  • Added two methods to the Workout model so we can get the start and end dates formatted in the appropiate timezone (all datetime objects are stored in UTC)
  • Modified the templates where we show workout dates and times so the new timezone-formatting methods are used.
  • Property mode set to 100644
File size: 1.7 KB
Line 
1import os
2
3from setuptools import setup, find_packages
4
5here = os.path.abspath(os.path.dirname(__file__))
6with open(os.path.join(here, 'README.txt')) as f:
7    README = f.read()
8with open(os.path.join(here, 'CHANGES.txt')) as f:
9    CHANGES = f.read()
10
11requires = [
12    'plaster_pastedeploy',
13    'pyramid',
14    'pyramid_chameleon',
15    'pyramid_debugtoolbar',
16    'pyramid_retry',
17    'pyramid_tm',
18    'pyramid_zodbconn',
19    'transaction',
20    'ZODB3',
21    'waitress',
22    'repoze.folder',
23    'repoze.catalog==0.8.4',
24    'bcrypt',
25    'FormEncode',
26    'pyramid_simpleform==0.7dev0',  # version needed for python3
27    'unidecode',
28    'gpxpy',
29    'lxml',
30    'pytz'
31]
32
33tests_require = [
34    'WebTest >= 1.3.1',  # py3 compat
35    'pytest',
36    'pytest-cov',
37    'pytest-flakes',
38    'pytest-xdist',
39    'pytest-codestyle',
40]
41
42dependency_links = [
43    'git+https://github.com/WuShell/repoze.catalog.git@0.8.4'
44    '#egg=repoze.catalog-0.8.4'
45]
46
47setup(
48    name='ow',
49    version='0.1',
50    description='OpenWorkouts, tracking your workouts openly',
51    long_description=README + '\n\n' + CHANGES,
52    classifiers=[
53        'Programming Language :: Python',
54        'Framework :: Pyramid',
55        'Topic :: Internet :: WWW/HTTP',
56        'Topic :: Internet :: WWW/HTTP :: WSGI :: Application',
57    ],
58    author='Francisco de Borja Lopez Rio',
59    author_email='borja@codigo23.net',
60    url='https://openworkouts.org',
61    keywords='web pyramid pylons',
62    packages=find_packages(),
63    include_package_data=True,
64    zip_safe=False,
65    dependency_links=dependency_links,
66    extras_require={
67        'testing': tests_require,
68    },
69    install_requires=requires,
70    entry_points={
71        'paste.app_factory': [
72            'main = ow:main',
73        ],
74    },
75)
Note: See TracBrowser for help on using the repository browser.