Skip to content
This repository has been archived by the owner on Jul 19, 2020. It is now read-only.

Commit

Permalink
move to v2.0.0 (#13)
Browse files Browse the repository at this point in the history
* extend tests for RUZ.person_lessons

* [skip ci] move to v1.0.1

* change url for API v2

* [skip ci] move to v1.1.0

* fix email checkers use lower() method before check

* move to v1.1.1

* update gitignore: remove redundant files

* add "hell03end" to license

* move schema from utils to root folder

* move logging from utils to root, update logging

* combine utils to single file, update none_safe decorator, other fixes

* simplify RUZ logic, remove RUZ class, rename to main, remove CamelCase methods, other fixes

* update __init__.py

* refresh tests

* update setup.py (prepare to v2.0.0)

* add find_by_str, remove staff_of_streams

* update tests

* update travis.yml and readme

* add dev requirements

* remove python < 3.5 from supported versions
  • Loading branch information
hell03end authored Feb 11, 2018
1 parent 315afa0 commit 40bec78
Show file tree
Hide file tree
Showing 19 changed files with 891 additions and 1,510 deletions.
107 changes: 9 additions & 98 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,104 +1,15 @@
tmp/
*.dump

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
env/
.vscode/
.cache/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

# SageMath parsed files
*.sage.py

# dotenv
.env

# virtualenv
wiki/
logs/
.venv
venv/
ENV/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site
.env
env/
tmp/

# mypy
.mypy_cache/
*.log
*.py[cod]
6 changes: 2 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@ dist: trusty
sudo: false
language: python
python:
- "3.3"
# - "3.3"
- "3.4"
- "3.5"
- "3.6"
- "nightly"
- "pypy3"
cache:
pip: true # caches $HOME/.cache/pip

branches:
only:
Expand All @@ -19,7 +17,7 @@ branches:
env:
matrix:
allow_failures:
- python: "pypy3"
- python: "3.4"

install:
- pip install -r requirements.txt
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2017 Dmitriy Pchelkin
Copyright (c) 2017 Dmitriy Pchelkin | hell03end

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
14 changes: 3 additions & 11 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,18 @@ Python wrapper for HSE RUZ API.

__ https://github.com/hell03end/hse_ruz/wiki/Changelog

Feel free to contribute.


Requirements
------------

* Python Python 3.3+ or PyPy3
* Python >= 3.5 or latest PyPy3


Installation
------------

.. code-block:: bash
pip install hse_ruz
# or update
pip install -U hse_ruz
Expand All @@ -36,17 +32,13 @@ Usage

.. code-block:: python
from ruz import RUZ
api = RUZ()
assert api.v == 1
assert api.person_lessons("mymail@edu.hse.ru")
import ruz
schedule = ruz.person_lessons("mymail@edu.hse.ru")
Contributing
------------

Please, use type annotations.

.. code-block:: bash
git clone https://github.com/hell03end/hse_ruz.git
Expand Down
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
pytest>=3.2.1
requests==2.11.1
twine==1.9.1
Loading

0 comments on commit 40bec78

Please sign in to comment.