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

Commit 40bec78

Browse files
authored
move to v2.0.0 (#13)
* 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
1 parent 315afa0 commit 40bec78

File tree

19 files changed

+891
-1510
lines changed

19 files changed

+891
-1510
lines changed

.gitignore

Lines changed: 9 additions & 98 deletions
Original file line numberDiff line numberDiff line change
@@ -1,104 +1,15 @@
1-
tmp/
2-
*.dump
3-
4-
# Byte-compiled / optimized / DLL files
51
__pycache__/
6-
*.py[cod]
7-
*$py.class
8-
9-
# C extensions
10-
*.so
11-
12-
# Distribution / packaging
13-
.Python
14-
env/
2+
.vscode/
3+
.cache/
154
build/
16-
develop-eggs/
175
dist/
18-
downloads/
19-
eggs/
20-
.eggs/
21-
lib/
22-
lib64/
23-
parts/
24-
sdist/
25-
var/
26-
wheels/
27-
*.egg-info/
28-
.installed.cfg
29-
*.egg
30-
31-
# PyInstaller
32-
# Usually these files are written by a python script from a template
33-
# before PyInstaller builds the exe, so as to inject date/other infos into it.
34-
*.manifest
35-
*.spec
36-
37-
# Installer logs
38-
pip-log.txt
39-
pip-delete-this-directory.txt
40-
41-
# Unit test / coverage reports
42-
htmlcov/
43-
.tox/
44-
.coverage
45-
.coverage.*
46-
.cache
47-
nosetests.xml
48-
coverage.xml
49-
*.cover
50-
.hypothesis/
51-
52-
# Translations
53-
*.mo
54-
*.pot
55-
56-
# Django stuff:
57-
*.log
58-
local_settings.py
59-
60-
# Flask stuff:
61-
instance/
62-
.webassets-cache
63-
64-
# Scrapy stuff:
65-
.scrapy
66-
67-
# Sphinx documentation
68-
docs/_build/
69-
70-
# PyBuilder
71-
target/
72-
73-
# Jupyter Notebook
74-
.ipynb_checkpoints
75-
76-
# pyenv
77-
.python-version
78-
79-
# celery beat schedule file
80-
celerybeat-schedule
81-
82-
# SageMath parsed files
83-
*.sage.py
84-
85-
# dotenv
86-
.env
87-
88-
# virtualenv
6+
wiki/
7+
logs/
898
.venv
909
venv/
91-
ENV/
92-
93-
# Spyder project settings
94-
.spyderproject
95-
.spyproject
96-
97-
# Rope project settings
98-
.ropeproject
99-
100-
# mkdocs documentation
101-
/site
10+
.env
11+
env/
12+
tmp/
10213

103-
# mypy
104-
.mypy_cache/
14+
*.log
15+
*.py[cod]

.travis.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,12 @@ dist: trusty
33
sudo: false
44
language: python
55
python:
6-
- "3.3"
6+
# - "3.3"
77
- "3.4"
88
- "3.5"
99
- "3.6"
1010
- "nightly"
1111
- "pypy3"
12-
cache:
13-
pip: true # caches $HOME/.cache/pip
1412

1513
branches:
1614
only:
@@ -19,7 +17,7 @@ branches:
1917
env:
2018
matrix:
2119
allow_failures:
22-
- python: "pypy3"
20+
- python: "3.4"
2321

2422
install:
2523
- pip install -r requirements.txt

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2017 Dmitriy Pchelkin
3+
Copyright (c) 2017 Dmitriy Pchelkin | hell03end
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.rst

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,18 @@ Python wrapper for HSE RUZ API.
1212

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

15-
Feel free to contribute.
16-
1715

1816
Requirements
1917
------------
2018

21-
* Python Python 3.3+ or PyPy3
19+
* Python >= 3.5 or latest PyPy3
2220

2321

2422
Installation
2523
------------
2624

2725
.. code-block:: bash
2826
29-
pip install hse_ruz
30-
# or update
3127
pip install -U hse_ruz
3228
3329
@@ -36,17 +32,13 @@ Usage
3632

3733
.. code-block:: python
3834
39-
from ruz import RUZ
40-
api = RUZ()
41-
assert api.v == 1
42-
assert api.person_lessons("mymail@edu.hse.ru")
35+
import ruz
36+
schedule = ruz.person_lessons("mymail@edu.hse.ru")
4337
4438
4539
Contributing
4640
------------
4741

48-
Please, use type annotations.
49-
5042
.. code-block:: bash
5143
5244
git clone https://github.com/hell03end/hse_ruz.git

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
pytest>=3.2.1
2+
requests==2.11.1
3+
twine==1.9.1

0 commit comments

Comments
 (0)